Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Oct 12, 2024
1 parent be88062 commit f0b075c
Show file tree
Hide file tree
Showing 5 changed files with 186 additions and 243 deletions.
29 changes: 16 additions & 13 deletions nodes/3.x/CurtainPanel.HostPanel.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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 @@ -60,12 +60,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\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\nclr.ImportExtensions(Revit.Elements)\r\n\r\ndef GetHostPanel(item):\r\n\tif hasattr(item, \"FindHostPanel\"):\r\n\t\thpId = item.FindHostPanel()\r\n\t\tif hpId.IntegerValue > 0: return item.Document.GetElement(hpId).ToDSType(True)\r\n\t\telse: return item\r\n\telse: return item\r\n\r\nitems = UnwrapElement(IN[0])\r\n\r\nif isinstance(IN[0], list): OUT = [GetHostPanel(x) for x in items]\r\nelse: OUT = GetHostPanel(items)",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "0ef11c3959d84b1780ce6817d210a323",
"Inputs": [
Expand All @@ -91,7 +92,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
}
],
"Connectors": [
Expand All @@ -107,18 +108,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 @@ -131,31 +134,31 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Input",
"Id": "43b8291026374de6a425e535efc29a37",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 200.691302478035,
"Y": -59.0
"X": 87.89130247803493,
"Y": -61.399999999999977
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "bb04f9eca5fc49e38429de049bda8ce3",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 653.691302478035,
"Y": -59.0
},
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "0ef11c3959d84b1780ce6817d210a323",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 429.691302478035,
"Y": -59.0
Expand Down
25 changes: 14 additions & 11 deletions nodes/3.x/CurtainPanel.IsPhantomPanel.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\n\r\ndef IsPhantomPanel(item):\r\n\ttry: \r\n\t\tif item.get_Parameter(BuiltInParameter.HOST_AREA_COMPUTED).HasValue: return False\r\n\t\telse: return True\r\n\texcept: return False\r\n\r\nitems = UnwrapElement(IN[0])\r\n\r\nif isinstance(IN[0], list): OUT = [IsPhantomPanel(x) for x in items]\r\nelse: OUT = IsPhantomPanel(items)",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "6a4bc0c3cd434560889ec92d3e3775e1",
"Inputs": [
Expand All @@ -39,7 +40,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 @@ -65,7 +66,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 @@ -86,7 +87,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
}
],
"Connectors": [
Expand All @@ -102,18 +103,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 @@ -126,31 +129,31 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "6a4bc0c3cd434560889ec92d3e3775e1",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 250.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Input",
"Id": "bd0534986d8a4db19fd817096d5f9a2c",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 0.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "10a437228e2a4f4da59fcb1460085eaf",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 449.0,
"Y": 0.0
Expand Down
11 changes: 7 additions & 4 deletions nodes/3.x/Element.CurtainGridLines.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"Outputs": [
{
"Id": "b85af31939d547469c0464062b106d47",
"Name": "last",
"Name": "item",
"Description": "Das letzte Element in der Liste",
"UsingDefaultValue": false,
"Level": 2,
Expand All @@ -44,6 +44,7 @@
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\nclr.ImportExtensions(Revit.Elements)\r\n\r\ndef GetCurtainGridLines(host):\r\n\tif hasattr(host, \"CurtainGrid\"):\r\n\t\treturn GetCurtainGridLinesByGrid(host.CurtainGrid, host)\r\n\telif hasattr(host, \"CurtainGrids\"):\r\n\t\treturn map(list, zip(*[GetCurtainGridLinesByGrid(x, host) for x in host.CurtainGrids]))\t\r\n\telse: return []\r\n\r\ndef GetCurtainGridLinesByGrid(grid, host):\r\n\tif grid:\r\n\t\tuGrids = [host.Document.GetElement(x) for x in grid.GetUGridLineIds()]\r\n\t\tvGrids = [host.Document.GetElement(x) for x in grid.GetVGridLineIds()]\r\n\t\treturn uGrids, vGrids\r\n\telse: return list()\r\n\r\nitems = UnwrapElement(IN[0])\r\n\r\nif isinstance(IN[0], list): OUT = [GetCurtainGridLines(x) for x in items]\r\nelse: OUT = GetCurtainGridLines(items)",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "c1a24582708b48808a1f30c4a5edd7a4",
"Inputs": [
Expand All @@ -69,7 +70,7 @@
}
],
"Replication": "Disabled",
"Description": "Führt ein eingebettetes IronPython-Skript aus."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand Down Expand Up @@ -198,13 +199,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 Expand Up @@ -239,7 +242,7 @@
"IsSetAsOutput": false,
"Excluded": false,
"X": 224.159887456105,
"Y": 53.2755487420498
"Y": 53.275548742049807
},
{
"ShowGeometry": true,
Expand Down
11 changes: 7 additions & 4 deletions nodes/3.x/Element.Panels.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,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 @@ -55,12 +55,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\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\nclr.AddReference(\"RevitNodes\")\r\nimport Revit\r\nclr.ImportExtensions(Revit.Elements)\r\n\r\ndef GetCurtainPanels(host):\r\n\tif hasattr(host, \"CurtainGrid\"):\r\n\t\treturn GetCurtainPanelsByGrid(host.CurtainGrid, host)\r\n\telif hasattr(host, \"CurtainGrids\"):\r\n\t\treturn [GetCurtainPanelsByGrid(x, host) for x in host.CurtainGrids]\r\n\telse: return []\r\n\r\ndef GetCurtainPanelsByGrid(grid, host):\r\n\tif grid:\r\n\t\tif organizeInRows:\r\n\t\t\tuGrids = [ElementId.InvalidElementId]\r\n\t\t\t[uGrids.append(x) for x in grid.GetUGridLineIds()]\r\n\t\t\tvGrids = [ElementId.InvalidElementId]\r\n\t\t\t[vGrids.append(x) for x in grid.GetVGridLineIds()]\r\n\t\t\tpanels = []\r\n\t\t\tfor u in uGrids:\r\n\t\t\t\trow = []\r\n\t\t\t\tfor v in vGrids:\r\n\t\t\t\t\tpanel = grid.GetPanel(u,v)\r\n\t\t\t\t\tif hasattr(panel, \"FindHostPanel\"):\r\n\t\t\t\t\t\thostpanelid = panel.FindHostPanel()\r\n\t\t\t\t\t\tif hostpanelid.IntegerValue != -1: panel = host.Document.GetElement(hostpanelid)\r\n\t\t\t\t\trow.append(panel)\r\n\t\t\t\tpanels.append(row)\r\n\t\t\treturn panels\r\n\t\telse:\r\n\t\t\tpanellist = [host.Document.GetElement(x) for x in grid.GetPanelIds()]\r\n\t\t\tfor panel in panellist:\r\n\t\t\t\tif hasattr(panel, \"FindHostPanel\"):\r\n\t\t\t\t\thostpanelid = panel.FindHostPanel()\r\n\t\t\t\t\tif hostpanelid.IntegerValue != -1:\r\n\t\t\t\t\t\tpanellist[panellist.index(panel)] = host.Document.GetElement(hostpanelid)\r\n\t\t\treturn [x.ToDSType(True) for x in panellist]\r\n\telse: return list()\r\n\r\nitems = UnwrapElement(IN[0])\r\norganizeInRows = IN[1]\r\n\r\nif isinstance(IN[0], list): OUT = [GetCurtainPanels(x) for x in items]\r\nelse: OUT = GetCurtainPanels(items)",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "628c73c0897a40a699145fafa11df794",
"Inputs": [
Expand Down Expand Up @@ -95,7 +96,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 Down Expand Up @@ -142,13 +143,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
Loading

0 comments on commit f0b075c

Please sign in to comment.