Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Dec 25, 2024
1 parent a24db6d commit 3a117bd
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
12 changes: 6 additions & 6 deletions nodes/3.x/Element.SlabShapeByPoints.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
"NodeType": "InputNode",
"Parameter": {
"Name": "roof",
"Name": "element",
"TypeName": "var",
"TypeRank": -1,
"DefaultValue": null,
Expand Down Expand Up @@ -172,8 +172,8 @@
{
"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.GeometryConversion)\r\n\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndef AddPointToSlabShape(item, point):\r\n\tif hasattr(item, \"SlabShapeEditor\"): sle = item.SlabShapeEditor\r\n\telif hasattr(item, \"GetSlabShapeEditor\"): sle = item.GetSlabShapeEditor()\r\n\telse: return False\r\n\tif hasattr(point, \"ToXyz\"):\r\n\t\ttry:\r\n\t\t\tsle.DrawPoint(point.ToXyz())\r\n\t\t\treturn True\r\n\t\texcept: return False\r\n\telse: return False\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nitems = UnwrapElement(IN[1])\r\n\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\nif isinstance(IN[1], list):\r\n\tif isinstance(IN[0], list):\r\n\t\tOUT = []\r\n\t\tfor item, points in zip(items, IN[0]):\r\n\t\t\tif isinstance(points, list): OUT.append((item, [AddPointToSlabShape(item, x) for x in points]))\r\n\t\t\telse: OUT.append((item, AddPointToSlabShape(item, points)))\r\n\telse: OUT = [(x, AddPointToSlabShape(x, IN[0])) for x in items]\r\n\tOUT = map(list, zip(*OUT))\r\nelse:\r\n\tif isinstance(IN[0], list): OUT = items, [AddPointToSlabShape(items, x) for x in IN[0]]\r\n\telse: OUT = items, AddPointToSlabShape(items, IN[0])\r\nTransactionManager.Instance.TransactionTaskDone()",
"Engine": "IronPython2",
"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.GeometryConversion)\r\n\r\nclr.AddReference(\"RevitServices\")\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\ndef AddPointToSlabShape(item, point):\r\n\tif hasattr(item, \"SlabShapeEditor\"): sle = item.SlabShapeEditor\r\n\telif hasattr(item, \"GetSlabShapeEditor\"): sle = item.GetSlabShapeEditor()\r\n\telse: return False\r\n\ttry:\r\n\t\tsle.DrawPoint(point.ToXyz())\r\n\t\treturn True\r\n\texcept: return False\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nitems = UnwrapElement(IN[1])\r\n\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\nif isinstance(IN[1], list):\r\n\tif isinstance(IN[0], list):\r\n\t\tOUT = []\r\n\t\tfor item, points in zip(items, IN[0]):\r\n\t\t\tif isinstance(points, list): OUT.append((item, [AddPointToSlabShape(item, x) for x in points]))\r\n\t\t\telse: OUT.append((item, AddPointToSlabShape(item, points)))\r\n\telse: OUT = [(x, AddPointToSlabShape(x, IN[0])) for x in items]\r\n\tOUT = map(list, zip(*OUT))\r\nelse:\r\n\tif isinstance(IN[0], list): OUT = items, [AddPointToSlabShape(items, x) for x in IN[0]]\r\n\telse: OUT = items, AddPointToSlabShape(items, IN[0])\r\nTransactionManager.Instance.TransactionTaskDone()",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "c7afee10e85146dda85d7ec0c9fb92f5",
"Inputs": [
Expand Down Expand Up @@ -341,8 +341,8 @@
}
],
"Annotations": [],
"X": 181.65083339914645,
"Y": 256.39195273264011,
"Zoom": 0.8736912533723532
"X": 437.47852380565035,
"Y": 279.81818455515167,
"Zoom": 0.3401619154376509
}
}
6 changes: 3 additions & 3 deletions nodes/3.x/Element.SlabShapeHasBeenModified.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\n\r\ndef SlabShapeHasBeenModified(item):\r\n\tsle = None\r\n\tif hasattr(item, \"SlabShapeEditor\"): sle = item.SlabShapeEditor\r\n\telif hasattr(item, \"GetSlabShapeEditor\"): sle = item.GetSlabShapeEditor()\r\n\telse: return False\r\n\tif hasattr(sle, \"SlabShapeCreases\") and hasattr(sle, \"SlabShapeVertices\"):\r\n\t\tif sle.SlabShapeCreases.IsEmpty == True or sle.SlabShapeVertices.IsEmpty == True: return False\r\n\t\telse: return True\r\n\telse: return False\r\n\r\nitems = UnwrapElement(IN[0])\r\n\r\nif isinstance(IN[0], list): OUT = [SlabShapeHasBeenModified(x) for x in items]\r\nelse: OUT = SlabShapeHasBeenModified(items)",
"Engine": "IronPython2",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "705e800a799e46d4959009d28ea5ff0c",
"Inputs": [
Expand Down Expand Up @@ -155,8 +155,8 @@
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 71.0,
"Y": 0.0
"X": 73.38567594826327,
"Y": -0.79522531608773761
}
],
"Annotations": [],
Expand Down
48 changes: 24 additions & 24 deletions package_samples/3.x/dynamo/Revit.Elements.Roof.dyn
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
},
{
"ConcreteType": "CoreNodeModels.Watch, CoreNodeModels",
"WatchWidth": 200.0,
"WatchWidth": 49.6,
"WatchHeight": 200.0,
"Id": "b6608f2512ee41dd922fc1cc46e11bf9",
"NodeType": "ExtensionNode",
Expand Down Expand Up @@ -136,7 +136,7 @@
{
"Id": "4c6564a7501c4919966a441e8bf7d419",
"Name": "list",
"Description": "List to get the first item from.\n\nvar[]..[]",
"Description": "Liste, deren erstes Element abgerufen werden soll\n\nvar[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -147,7 +147,7 @@
{
"Id": "f23e9bf496504470b9eb9a5b2b843fe2",
"Name": "item",
"Description": "First item in the list.",
"Description": "Das erste Element in der Liste",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -156,7 +156,7 @@
],
"FunctionSignature": "DSCore.List.FirstItem@var[]..[]",
"Replication": "Auto",
"Description": "Returns the first item in a list.\n\nList.FirstItem (list: var[]..[]): var[]..[]"
"Description": "Gibt das erste Element in einer Liste zurück.\n\nList.FirstItem (list: var[]..[]): var[]..[]"
},
{
"ConcreteType": "CoreNodeModels.Input.IntegerSlider, CoreNodeModels",
Expand Down Expand Up @@ -282,7 +282,7 @@
},
{
"ConcreteType": "CoreNodeModels.Watch, CoreNodeModels",
"WatchWidth": 117.6,
"WatchWidth": 49.6,
"WatchHeight": 38.4,
"Id": "e655b58007764d85a2fec3384f6a4b8d",
"NodeType": "ExtensionNode",
Expand Down Expand Up @@ -375,7 +375,7 @@
},
{
"ConcreteType": "CoreNodeModels.Watch, CoreNodeModels",
"WatchWidth": 200.0,
"WatchWidth": 49.6,
"WatchHeight": 200.0,
"Id": "a26b5ce2671c408dad89258a2001bf72",
"NodeType": "ExtensionNode",
Expand Down Expand Up @@ -406,7 +406,7 @@
},
{
"ConcreteType": "CoreNodeModels.Watch, CoreNodeModels",
"WatchWidth": 200.0,
"WatchWidth": 49.6,
"WatchHeight": 200.0,
"Id": "d31e57ebc1a14ae9be647283b52afe4b",
"NodeType": "ExtensionNode",
Expand Down Expand Up @@ -453,7 +453,7 @@
},
{
"Id": "512a4d94343f41a5b56570b3599b813f",
"Name": "roof",
"Name": "element",
"Description": "var[]..[]",
"UsingDefaultValue": false,
"Level": 2,
Expand Down Expand Up @@ -579,7 +579,7 @@
},
{
"ConcreteType": "CoreNodeModels.Watch, CoreNodeModels",
"WatchWidth": 117.6,
"WatchWidth": 49.6,
"WatchHeight": 38.4,
"Id": "e5d37f1026e3492e870382e85cd58482",
"NodeType": "ExtensionNode",
Expand Down Expand Up @@ -749,7 +749,7 @@
{
"Id": "492bad553f4043f999db799649f4859e",
"Name": "list0",
"Description": "Lists to join into one.\n\nvar[]..[]",
"Description": "Die zu einer Liste zu verkettenden Listen\n\nvar[]..[]",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -769,15 +769,15 @@
{
"Id": "62aa4264b50047e398ecdcb15dff94af",
"Name": "list",
"Description": "Joined list.",
"Description": "Verbundene Liste",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Concatenates all given lists into a single list.\n\nList.Join (lists: var[]..[]): var[]..[]"
"Description": "Verkettet alle angegebenen Listen zu einer einzelnen Liste.\n\nList.Join (lists: var[]..[]): var[]..[]"
},
{
"ConcreteType": "CoreNodeModels.Watch, CoreNodeModels",
Expand Down Expand Up @@ -963,7 +963,7 @@
"NodeLibraryDependencies": [
{
"Name": "Clockwork for Dynamo 2.x",
"Version": "2.6.0",
"Version": "2.12.2",
"ReferenceType": "Package",
"Nodes": [
"a1226f7b457b402e86265b8733c4ee0c",
Expand Down Expand Up @@ -1006,7 +1006,7 @@
"ScaleFactor": 1.0,
"HasRunWithoutCrash": true,
"IsVisibleInDynamoLibrary": true,
"Version": "3.2.1.5366",
"Version": "3.3.0.6316",
"RunType": "Manual",
"RunPeriod": "1000"
},
Expand Down Expand Up @@ -1302,7 +1302,7 @@
"HasNestedGroups": false,
"Left": 616.8579572257164,
"Top": -1068.782947476737,
"Width": 639.4,
"Width": 488.9999999999999,
"Height": 370.60000000000014,
"FontSize": 36.0,
"GroupStyleId": "00000000-0000-0000-0000-000000000000",
Expand All @@ -1325,7 +1325,7 @@
"HasNestedGroups": false,
"Left": 606.4859402360084,
"Top": -648.0081845350574,
"Width": 568.4000000000001,
"Width": 418.0,
"Height": 370.59999999999997,
"FontSize": 36.0,
"GroupStyleId": "00000000-0000-0000-0000-000000000000",
Expand Down Expand Up @@ -1355,7 +1355,7 @@
"FontSize": 36.0,
"GroupStyleId": "00000000-0000-0000-0000-000000000000",
"InitialTop": -173.40619687687573,
"InitialHeight": 439.00000000000006,
"InitialHeight": 297.0,
"TextblockHeight": 62.4,
"Background": "#FFFF7BAC"
},
Expand All @@ -1374,12 +1374,12 @@
"HasNestedGroups": false,
"Left": 610.9483406534603,
"Top": 343.8181854266452,
"Width": 576.0,
"Width": 508.0,
"Height": 360.6,
"FontSize": 36.0,
"GroupStyleId": "00000000-0000-0000-0000-000000000000",
"InitialTop": 416.21818542664516,
"InitialHeight": 438.0,
"InitialHeight": 296.6,
"TextblockHeight": 62.4,
"Background": "#FFFF7BAC"
},
Expand All @@ -1404,7 +1404,7 @@
"FontSize": 36.0,
"GroupStyleId": "00000000-0000-0000-0000-000000000000",
"InitialTop": -108.8441949103181,
"InitialHeight": 461.668099984367,
"InitialHeight": 631.668099984367,
"TextblockHeight": 62.4,
"Background": "#FF848484"
},
Expand All @@ -1428,7 +1428,7 @@
"FontSize": 36.0,
"GroupStyleId": "00000000-0000-0000-0000-000000000000",
"InitialTop": 297.9951021479534,
"InitialHeight": 145.00000000000003,
"InitialHeight": 145.0,
"TextblockHeight": 62.4,
"Background": "#FF48B9FF"
},
Expand All @@ -1453,8 +1453,8 @@
"Background": "#FFC1D676"
}
],
"X": 158.33957390549102,
"Y": 381.9410012908187,
"Zoom": 0.3175674039280439
"X": 140.63070246736902,
"Y": 375.2154987871243,
"Zoom": 0.27374802571161616
}
}

0 comments on commit 3a117bd

Please sign in to comment.