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 b318314 commit 4bdd304
Show file tree
Hide file tree
Showing 2 changed files with 187 additions and 218 deletions.
103 changes: 49 additions & 54 deletions nodes/3.x/RoomSequence.ToDoorSequence.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\n\r\nrooms = IN[0]\r\ndoors = IN[1]\r\nfromroom = IN[2]\r\ntoroom = IN[3]\r\nelementlist = list()\r\n\r\ni = 0\r\nwhile i < (len(rooms)-1):\r\n\tj = 0\r\n\twhile j < len(doors):\r\n\t\tif (rooms[i] == fromroom[j] and rooms[i+1] == toroom[j]) or (rooms[i+1] == fromroom[j] and rooms[i] == toroom[j]):\r\n\t\t\telementlist.append(doors[j])\r\n\t\tj += 1\r\n\ti += 1\r\nOUT = elementlist",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "d7ab72b5bd8141319ecb30341a812add",
"Inputs": [
Expand Down Expand Up @@ -66,7 +67,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 @@ -77,8 +78,8 @@
"Inputs": [
{
"Id": "fd62397219ef4abdae4ef96abaae3936",
"Name": "ID/UniqueId : var[]..[]",
"Description": "Input #1",
"Name": "IdOrUniqueId",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -87,7 +88,7 @@
{
"Id": "0c9a9a9bcdd94c2ca83e04cc07d8653e",
"Name": "docOrRevitLinkInstance",
"Description": "Input #2",
"Description": " Use only if you want to query a linked model\n\nvar\nVorgabewert : null",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
Expand All @@ -98,24 +99,15 @@
{
"Id": "a80aa3972a6a42ddaa03a4322bd9f502",
"Name": "element",
"Description": "Output #1",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "dd2fa50eb3d0440ea7fdeb7f4e6bf147",
"Name": "unmatched",
"Description": "Output #2",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Gets the Revit element(s) for a list of IDs (or a single ID)"
"Description": "Gets the Revit element(s) for a list of IDs (or a single ID). Unlike the OOTB node, it supports elements from linked models as well."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
Expand All @@ -127,7 +119,7 @@
{
"Id": "ec5111bc79b9415eb29f97da66f0acba",
"Name": "door",
"Description": "Input #1",
"Description": "FamilyInstance[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -136,7 +128,7 @@
{
"Id": "70d9df16b1724417ab2f23d59edc2091",
"Name": "phase",
"Description": "Input #2",
"Description": " If no phase is specified, the node will use the last phase in the project\n\nvar\nVorgabewert : null",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
Expand All @@ -147,7 +139,7 @@
{
"Id": "211e97c28dd54fb1ad714c1167a80cdf",
"Name": "fromRoom",
"Description": "Output #1",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -156,7 +148,7 @@
{
"Id": "7dc053a3fa9043c985ace87c1373eb3b",
"Name": "toRoom",
"Description": "Output #2",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -165,15 +157,15 @@
{
"Id": "4c2ddad9f73e403db0c10c02cbc2ccfa",
"Name": "roomCount",
"Description": "Output #3",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Gets the rooms that are connected by a given door or a window"
"Description": "Gets the rooms that are connected by a given door"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
Expand All @@ -196,7 +188,7 @@
{
"Id": "50c95bc654974a0a8462d8995ee83b39",
"Name": "seq",
"Description": "return value",
"Description": "Rückgabewert",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand Down Expand Up @@ -225,7 +217,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 @@ -251,7 +243,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.CodeBlockNodeModel, DynamoCore",
Expand Down Expand Up @@ -309,7 +301,7 @@
{
"Id": "4ec9c2cf2da54122a4d1d61d52e4c37e",
"Name": "",
"Description": "Value of expression at line 2",
"Description": "Wert des Ausdrucks in Zeile 2",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -318,7 +310,7 @@
{
"Id": "4a4a1cea258b47cbb3706cf4bd6adfb5",
"Name": "",
"Description": "Value of expression at line 3",
"Description": "Wert des Ausdrucks in Zeile 3",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -327,7 +319,7 @@
{
"Id": "d606b91ae6ca4934a5d3362401d38c8c",
"Name": "",
"Description": "Value of expression at line 4",
"Description": "Wert des Ausdrucks in Zeile 4",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -336,20 +328,21 @@
{
"Id": "9032d7fe8e914c08a32f03ebaf300704",
"Name": "",
"Description": "Value of expression at line 5",
"Description": "Wert des Ausdrucks in Zeile 5",
"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": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import System\r\nimport clr\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\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\n\r\nelementlist = list()\r\ncollector = FilteredElementCollector(doc)\r\ncollector.OfClass(FamilyInstance)\r\ncollector.OfCategory(BuiltInCategory.OST_Doors)\r\n\r\nOUT = collector.ToElements()",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "d620c87bbf4f445d9aa9d8065015229d",
"Inputs": [],
Expand All @@ -365,7 +358,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -391,7 +384,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 Down Expand Up @@ -466,18 +459,20 @@
"22afc586-3029-4a8c-ade8-183c160acd2e",
"cd09ad33-8c34-4850-ac26-24448d92c38f"
],
"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 @@ -490,99 +485,99 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "d7ab72b5bd8141319ecb30341a812add",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 1000.0,
"Y": 123.0
},
{
"ShowGeometry": true,
"Name": "Element.ByID",
"Id": "c9ecd2a02c9a4988bcd9e3399d892095",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Element.ByID",
"ShowGeometry": true,
"Excluded": false,
"X": 1224.0,
"Y": 123.0
},
{
"ShowGeometry": true,
"Name": "Door.Rooms",
"Id": "93f2fee3c4674b699769d9d370b72acc",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Door.Rooms",
"ShowGeometry": true,
"Excluded": false,
"X": 293.559994097751,
"Y": 211.293760458003
},
{
"ShowGeometry": true,
"Name": "TurnIntoList",
"Id": "64c75e804d5444adbf7467d955111f8b",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "TurnIntoList",
"ShowGeometry": true,
"Excluded": false,
"X": 316.899350459621,
"Y": 40.8438736332739
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "4795fae01a0d4b71b7c1e4e0a54eb4a9",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 1573.0,
"Y": 123.0
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "0109029deb174770b8291c67ae30dd5c",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -67.1006495403785,
"Y": 40.8438736332739
},
{
"ShowGeometry": true,
"Name": "Code Block",
"Id": "79378f2e802b4a5cbdd4fcf9d3e7233d",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Code Block",
"ShowGeometry": true,
"Excluded": false,
"X": 658.898396668494,
"Y": 122.501980249201
},
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "d620c87bbf4f445d9aa9d8065015229d",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 132.344744941153,
"Y": 138.384264592901
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "725cb49647e04a0d8b2d043febcf83bb",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -459.353781853454,
"Y": 251.759454078489
}
],
"Annotations": [],
"X": 288.029392925249,
"Y": 194.834838827354,
"Zoom": 0.694517832503723
"X": 74.171981481406078,
"Y": 185.94726052026149,
"Zoom": 0.40982908391416151
}
}
Loading

0 comments on commit 4bdd304

Please sign in to comment.