Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Oct 11, 2024
1 parent 1e2e14b commit 9138e6d
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 77 deletions.
15 changes: 9 additions & 6 deletions nodes/3.x/FilledRegionType.FillPatterns.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\ndef GetFillPatterns(frt):\r\n\tforeground = None\r\n\tbackground = None\r\n\tif hasattr(frt, \"ForegroundPatternId\"):\r\n\t\tif frt.ForegroundPatternId.IntegerValue > 0:\r\n\t\t\tforeground = frt.Document.GetElement(frt.ForegroundPatternId)\r\n\t\tif frt.BackgroundPatternId.IntegerValue > 0:\r\n\t\t\tbackground = frt.Document.GetElement(frt.BackgroundPatternId)\r\n\telif hasattr(frt, \"FillPatternId\"):\t\r\n\t\tif frt.FillPatternId.IntegerValue > 0:\r\n\t\t\tforeground = frt.Document.GetElement(frt.FillPatternId)\r\n\treturn foreground, background\r\n\r\nfilledregiontypes = UnwrapElement(IN[0])\r\n\r\nif isinstance(IN[0], list): OUT = list(map(list, zip(*[GetFillPatterns(x) for x in filledregiontypes])))\r\nelse: OUT = GetFillPatterns(filledregiontypes)",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "9736b5cda68b48c3a4f65bc0fae39b64",
"Inputs": [
Expand All @@ -44,7 +45,7 @@
}
],
"Replication": "Disabled",
"Description": "Führt ein eingebettetes IronPython-Skript aus."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand Down Expand Up @@ -142,7 +143,7 @@
"Outputs": [
{
"Id": "bed2d5020256457fb2cea11a4a4f048b",
"Name": "last",
"Name": "item",
"Description": "Das letzte Element in der Liste",
"UsingDefaultValue": false,
"Level": 2,
Expand Down Expand Up @@ -203,13 +204,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 @@ -243,8 +246,8 @@
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 36.0,
"Y": 137.5
"X": -128.00000000000006,
"Y": 138.3
},
{
"ShowGeometry": true,
Expand Down Expand Up @@ -288,7 +291,7 @@
}
],
"Annotations": [],
"X": 475.0,
"X": -323.4,
"Y": 163.0,
"Zoom": 1.0
}
Expand Down
Loading

0 comments on commit 9138e6d

Please sign in to comment.