Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Nov 9, 2024
1 parent c3bc421 commit 3ce44d5
Show file tree
Hide file tree
Showing 7 changed files with 450 additions and 538 deletions.
95 changes: 55 additions & 40 deletions nodes/3.x/FamilyInstance.AddCoping.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\nimport System\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nfams = UnwrapElement(IN[0])\r\ncutters = UnwrapElement(IN[1])\r\nbooleans = []\r\ncounter = 0\r\n\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\nfor fam in fams:\r\n\ttry:\r\n\t\tfam.AddCoping(cutters[counter])\r\n\t\tbooleans.append(True)\r\n\texcept:\tbooleans.append(False)\r\n\tcounter += 1\r\nTransactionManager.Instance.TransactionTaskDone()\r\n\r\nOUT = (fams,booleans)",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "bd5723c98cff47d0b53ee5f6a5e2a60b",
"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.Function, DynamoCore",
Expand All @@ -60,7 +61,7 @@
{
"Id": "a62dfe4dd66042e986fffe19f6bae752",
"Name": "unknownItem",
"Description": "Input #1",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -69,7 +70,7 @@
{
"Id": "fc200db2dc0c41dba751769d0d53b11e",
"Name": "seq",
"Description": "Input #2",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -80,15 +81,15 @@
{
"Id": "ce1b5b30e4a44a04b1443ccb9091533e",
"Name": "",
"Description": "Output #1",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "If the item in input #1 is not a list, only the first item of the list in input #2 will be returned."
"Description": "If the unknown item is not a list but rather a single item, only the first item of the list (input \"seq\") will be returned."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
Expand All @@ -111,7 +112,7 @@
{
"Id": "babd4c91ec1b4cbd84411de70ff5051f",
"Name": "seq",
"Description": "return value",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand Down Expand Up @@ -142,7 +143,7 @@
{
"Id": "7edf562711bf4c72a1fbb13d48d18fb7",
"Name": "seq",
"Description": "return value",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand Down Expand Up @@ -176,7 +177,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 @@ -202,7 +203,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.Output, DynamoCore",
Expand All @@ -223,7 +224,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.CodeBlockNodeModel, DynamoCore",
Expand All @@ -245,7 +246,7 @@
{
"Id": "5f543b315ace4d2c836b258d4c0c8a8b",
"Name": "",
"Description": "Value of expression at line 1",
"Description": "Wert des Ausdrucks in Zeile 1",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -254,15 +255,15 @@
{
"Id": "f42eb8b4d0d740bb907dfa1466a8e208",
"Name": "",
"Description": "Value of expression at line 2",
"Description": "Wert des Ausdrucks in Zeile 2",
"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 @@ -283,7 +284,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.Function, DynamoCore",
Expand All @@ -295,7 +296,7 @@
{
"Id": "b426684fd36749a9a60cea86c49ae418",
"Name": "unknownItem",
"Description": "Input #1",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -304,7 +305,7 @@
{
"Id": "bb7546fe65f74b7d85e861f1b911a104",
"Name": "seq",
"Description": "Input #2",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -315,15 +316,15 @@
{
"Id": "aa54fd764dc741a4b48e6fbc894ceb89",
"Name": "",
"Description": "Output #1",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "If the item in input #1 is not a list, only the first item of the list in input #2 will be returned."
"Description": "If the unknown item is not a list but rather a single item, only the first item of the list (input \"seq\") will be returned."
}
],
"Connectors": [
Expand Down Expand Up @@ -387,18 +388,32 @@
"44ac4888-4aa4-49a9-9344-23b729c11df9",
"cd09ad33-8c34-4850-ac26-24448d92c38f"
],
"NodeLibraryDependencies": [
{
"Name": "Clockwork for Dynamo 2.x",
"Version": "2.12.2",
"ReferenceType": "Package",
"Nodes": [
"3d9696cc8d754c659dac61a9044a477e",
"02e83145abd54710835ea41097b820be",
"1c98f96f92914379899b670e146716c9",
"09b6209200da4567a129453effee0023"
]
}
],
"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 @@ -411,101 +426,101 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "bd5723c98cff47d0b53ee5f6a5e2a60b",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 390.901240955068,
"Y": 180.123417248616
},
{
"ShowGeometry": true,
"Name": "ReturnListOrSingleValue",
"Id": "3d9696cc8d754c659dac61a9044a477e",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "ReturnListOrSingleValue",
"ShowGeometry": true,
"Excluded": false,
"X": 835.901240955068,
"Y": 107.910083915282
},
{
"ShowGeometry": true,
"Name": "TurnIntoList",
"Id": "02e83145abd54710835ea41097b820be",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "TurnIntoList",
"ShowGeometry": true,
"Excluded": false,
"X": 121.901240955068,
"Y": 235.123417248616
},
{
"ShowGeometry": true,
"Name": "TurnIntoList",
"Id": "1c98f96f92914379899b670e146716c9",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "TurnIntoList",
"ShowGeometry": true,
"Excluded": false,
"X": 121.901240955068,
"Y": 151.123417248616
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "057d2511409f41aa8541acb85dabdb92",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -123.098759044932,
"Y": 151.123417248616
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "3641819eff0b41e2af8e5bce20498cd8",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -123.098759044932,
"Y": 235.123417248616
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "b0803be227ff471fbbe6d4ea6aee8290",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 1098.90124095507,
"Y": 120.910083915282
},
{
"ShowGeometry": true,
"Name": "Code Block",
"Id": "c78c1b207dc74e9780124a2d55194205",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Code Block",
"ShowGeometry": true,
"Excluded": false,
"X": 614.901240955068,
"Y": 184.336750581949
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "db62a78589a14fa1bc1ed80b16f51456",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 1098.90124095507,
"Y": 204.910083915282
},
{
"ShowGeometry": true,
"Name": "ReturnListOrSingleValue",
"Id": "09b6209200da4567a129453effee0023",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "ReturnListOrSingleValue",
"ShowGeometry": true,
"Excluded": false,
"X": 835.901240955068,
"Y": 217.910083915282
Expand Down
Loading

0 comments on commit 3ce44d5

Please sign in to comment.