Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Oct 26, 2024
1 parent 7c0315e commit 2032df3
Show file tree
Hide file tree
Showing 3 changed files with 450 additions and 65 deletions.
116 changes: 116 additions & 0 deletions nodes/3.x/python/Document.Enums.dyf
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"Uuid": "210d5eb1-8d30-4e0b-931b-08b9bcecbc7a",
"IsCustomNode": true,
"Category": "Clockwork.Revit.Application.Query",
"Description": "Retrieves all Enums from the Revit API",
"Name": "Document.Enums",
"ElementResolver": {
"ResolutionMap": {}
},
"Inputs": [],
"Outputs": [],
"Nodes": [
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nimport System\r\nclr.AddReference('RevitAPI')\r\nclr.AddReference('RevitAPIUI')\r\nimport Autodesk\r\n\r\nrAssembly = [x for x in System.AppDomain.CurrentDomain.GetAssemblies() if x.GetName().Name == 'RevitAPI'][0]\r\nOUT = [x.Name for x in rAssembly.GetTypes() if x.Namespace is not None and x.Namespace.startswith(\"Autodesk.Revit.\") and str(x.BaseType) == \"System.Enum\"]\r\nOUT = sorted(OUT, key=str.lower)",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "5464962aec8c4dd0923a8b4bc61c212d",
"Inputs": [],
"Outputs": [
{
"Id": "31c56f78255442e3a873b7334625fd63",
"Name": "OUT",
"Description": "Result of the python script",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
"NodeType": "OutputNode",
"ElementResolver": null,
"Symbol": "enumNames",
"Id": "5bbf29748cc24696830188ef0e5aedf2",
"Inputs": [
{
"Id": "b2a5304b7ef34a72a84b4a217845fd43",
"Name": "",
"Description": "",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [],
"Replication": "Disabled",
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
}
],
"Connectors": [
{
"Start": "31c56f78255442e3a873b7334625fd63",
"End": "b2a5304b7ef34a72a84b4a217845fd43",
"Id": "8fdcff0e49ad46f3959fb4694b2a6180"
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Hintergrundvorschau",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
"LookX": 12.0,
"LookY": -13.0,
"LookZ": -58.0,
"UpX": 0.0,
"UpY": 1.0,
"UpZ": 0.0
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "5464962aec8c4dd0923a8b4bc61c212d",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 250.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "5bbf29748cc24696830188ef0e5aedf2",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 419.0,
"Y": 0.0
}
],
"Annotations": [],
"X": 0.0,
"Y": 0.0,
"Zoom": 1.0
}
}
Loading

0 comments on commit 2032df3

Please sign in to comment.