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 f6a1820 commit 613cd7d
Show file tree
Hide file tree
Showing 9 changed files with 775 additions and 1,048 deletions.
15 changes: 9 additions & 6 deletions nodes/3.x/Document.BuiltInCategories.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nimport System\r\nclr.AddReference('RevitAPI')\r\nclr.AddReference('RevitAPIUI')\r\nfrom Autodesk.Revit.DB import *\r\nimport Autodesk\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\n\r\ndynamoCatsOnly = IN[0]\r\nbiclist = System.Enum.GetValues(BuiltInCategory)\r\ncdata = []\r\nfor bic in biclist:\r\n\ttry: cdata.append((bic, ElementId(bic), Revit.Elements.Category.ById(ElementId(bic).IntegerValue)))\r\n\texcept:\r\n\t\tif not dynamoCatsOnly: cdata.append((bic, ElementId(bic), None))\r\nOUT = map(list, zip(*cdata))",
"Code": "import clr\r\nimport System\r\nclr.AddReference('RevitAPI')\r\nclr.AddReference('RevitAPIUI')\r\nfrom Autodesk.Revit.DB import *\r\nimport Autodesk\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\n\r\ndynamoCatsOnly = IN[0]\r\nbiclist = System.Enum.GetValues(BuiltInCategory)\r\ncdata = []\r\nfor bic in biclist:\r\n\ttry: cdata.append((System.Enum.GetName(BuiltInCategory, bic), ElementId(bic), Revit.Elements.Category.ById(ElementId(bic).IntegerValue)))\r\n\texcept:\r\n\t\tif not dynamoCatsOnly: cdata.append((bic, ElementId(bic), None))\r\nOUT = map(list, zip(*cdata))",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "c85271f43fac4cf58fd1a805b217e591",
"Inputs": [
Expand All @@ -60,7 +61,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
Expand Down Expand Up @@ -129,7 +130,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -150,7 +151,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand Down Expand Up @@ -207,13 +208,15 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.3.8810",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
Expand Down
57 changes: 30 additions & 27 deletions nodes/3.x/Document.BuiltInParameters.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nimport System\r\nclr.AddReference('RevitAPI')\r\nclr.AddReference('RevitAPIUI')\r\nfrom Autodesk.Revit.DB import *\r\nimport Autodesk\r\n\r\nbips = System.Enum.GetValues(BuiltInParameter)\r\npdata = list()\r\nfor bip in bips:\r\n\ttry:\r\n\t\tpdata.append((bip,ElementId(bip),LabelUtils.GetLabelFor(bip)))\r\n\texcept:\r\n\t\tpass\r\nOUT = pdata",
"Code": "import clr\r\nimport System\r\nclr.AddReference('RevitAPI')\r\nclr.AddReference('RevitAPIUI')\r\nfrom Autodesk.Revit.DB import *\r\nimport Autodesk\r\n\r\nbips = System.Enum.GetValues(BuiltInParameter)\r\npdata = list()\r\nfor bip in bips:\r\n\ttry:\r\n\t\tpdata.append((System.Enum.GetName(BuiltInParameter, bip),ElementId(bip),LabelUtils.GetLabelFor(bip)))\r\n\texcept:\r\n\t\tpass\r\nOUT = pdata",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "aa76fbcd35544037b00a86e0d094e928",
"Inputs": [],
Expand All @@ -29,7 +30,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -50,7 +51,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -61,7 +62,7 @@
{
"Id": "29cc1e3bc14c462eb4e0ea545e4ec1ff",
"Name": "lists",
"Description": "A list of lists to be transposed.\n\nvar[]..[]",
"Description": "Liste der umzustellenden Listen\n\nvar[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -72,15 +73,15 @@
{
"Id": "1874f26685684b0696efa33c742653d6",
"Name": "lists",
"Description": "A list of transposed lists.",
"Description": "Liste der umgestellten Listen",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Swaps rows and columns in a list of lists. If there are some rows that are shorter than others, null values are inserted as place holders in the resultant array such that it is always rectangular.\n\nList.Transpose (lists: var[]..[]): var[]..[]"
"Description": "Vertauscht Zeilen und Spalten in einer Liste von Listen. Wenn einige Zeilen kürzer als die übrigen sind, werden Nullwerte als Platzhalter in das resultierende Array eingefügt, sodass dieses immer rechteckig ist.\n\nList.Transpose (lists: var[]..[]): var[]..[]"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CodeBlockNodeModel, DynamoCore",
Expand All @@ -102,7 +103,7 @@
{
"Id": "9e7f214d76e64571bc6fa18296758e54",
"Name": "",
"Description": "Value of expression at line 1",
"Description": "Wert des Ausdrucks in Zeile 1",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -111,7 +112,7 @@
{
"Id": "e2ef29799db74ee2b99a42ca24836948",
"Name": "",
"Description": "Value of expression at line 2",
"Description": "Wert des Ausdrucks in Zeile 2",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -120,15 +121,15 @@
{
"Id": "668795cb3cac4c7c90f9ca7c013fd930",
"Name": "",
"Description": "Value of expression at line 3",
"Description": "Wert des Ausdrucks in Zeile 3",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Allows for DesignScript code to be authored directly"
"Description": "Ermöglicht die direkte Erstellung von DesignScript-Code."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -149,7 +150,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -170,7 +171,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
}
],
"Connectors": [
Expand Down Expand Up @@ -201,18 +202,20 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.1.5055",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"Name": "Hintergrundvorschau",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
Expand All @@ -225,61 +228,61 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "aa76fbcd35544037b00a86e0d094e928",
"IsSetAsInput": true,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 155.947569398254,
"Y": 50.5354122466512
"Y": 50.535412246651191
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "216124e00da349c29b29726d2e6b661a",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 789.947569398254,
"Y": -14.8912544200155
},
{
"ShowGeometry": true,
"Name": "List.Transpose",
"Id": "0de29d7be79c4aaa9b70ad15dd3c748e",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "List.Transpose",
"ShowGeometry": true,
"Excluded": false,
"X": 349.947569398254,
"Y": 50.5354122466512
},
{
"ShowGeometry": true,
"Name": "Code Block",
"Id": "1ec64c75da3f4ff3aefc33918c2d8f98",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Code Block",
"ShowGeometry": true,
"Excluded": false,
"X": 561.947569398254,
"Y": 54.7487455799845
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "ecc7ba2a9045432e8959330893ec169d",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 789.947569398254,
"Y": 68.1087455799845
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "2e7388b8f08b419fba3e41538be7d485",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 789.947569398254,
"Y": 151.108745579984
Expand Down
19 changes: 11 additions & 8 deletions nodes/3.x/Document.ComputeVolumes.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\nimport Autodesk\r\n\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\nclr.ImportExtensions(Revit.Elements)\r\n\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\n\r\ninputdoc = UnwrapElement(IN[1])\r\nif inputdoc == None:\r\n\tdoc = DocumentManager.Instance.CurrentDBDocument\r\nelif inputdoc.GetType().ToString() == \"Autodesk.Revit.DB.RevitLinkInstance\":\r\n\tdoc = inputdoc.GetLinkDocument()\r\nelif inputdoc.GetType().ToString() == \"Autodesk.Revit.DB.Document\":\r\n\tdoc = inputdoc\r\nelse: doc = None\r\n\r\nOUT = AreaVolumeSettings.GetAreaVolumeSettings(doc).ComputeVolumes",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "1cbe60f1372c48b5a73fb2051756fa65",
"Inputs": [
Expand Down Expand Up @@ -48,7 +49,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -69,7 +70,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -95,7 +96,7 @@
}
],
"Replication": "Disabled",
"Description": "A function parameter, use with custom nodes.\r\n\r\nYou can specify the type and default value for parameter. E.g.,\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -121,7 +122,7 @@
}
],
"Replication": "Disabled",
"Description": "A function parameter, use with custom nodes.\r\n\r\nYou can specify the type and default value for parameter. E.g.,\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
"Description": "Ein Funktionsparameter zur Verwendung mit benutzerdefinierten Blöcken.\r\n\r\nSie können den Typ und den Vorgabewert für den Parameter angeben, z. B.\r\n\r\ninput : var[]..[]\r\nvalue : bool = false"
}
],
"Connectors": [
Expand All @@ -142,18 +143,20 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.3.8810",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"Name": "Hintergrundvorschau",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
Expand Down Expand Up @@ -207,8 +210,8 @@
}
],
"Annotations": [],
"X": -15.0,
"Y": 99.0,
"X": -615.0,
"Y": 69.399999999999977,
"Zoom": 1.0
}
}
Loading

0 comments on commit 613cd7d

Please sign in to comment.