Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Apr 5, 2024
1 parent 2fcad3f commit 4ab4865
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 204 deletions.
Binary file modified NodeList.xlsx
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"Uuid": "5522a73c-f9bd-45b1-a63b-5c2262fe1f98",
"IsCustomNode": true,
"Category": "Clockwork.Revit.Elements.Query",
"Description": "Checks if the shape of a roof slab has been modified with the shape editing tools",
"Name": "Roof.SlabShapeHasBeenModified",
"Description": "Checks if the shape of a roof, floor slab or toposolid has been modified with the shape editing tools",
"Name": "Element.SlabShapeHasBeenModified",
"ElementResolver": {
"ResolutionMap": {}
},
Expand All @@ -14,7 +14,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 @@ -60,7 +60,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\tif hasattr(item, \"SlabShapeEditor\"):\r\n\t\tif hasattr(item.SlabShapeEditor, \"SlabShapeCreases\") and hasattr(item.SlabShapeEditor, \"SlabShapeVertices\"):\r\n\t\t\tif item.SlabShapeEditor.SlabShapeCreases.IsEmpty == True or item.SlabShapeEditor.SlabShapeVertices.IsEmpty == True: return False\r\n\t\t\telse: return True\r\n\t\telse: return False\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)",
"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",
"VariableInputPorts": true,
"Id": "705e800a799e46d4959009d28ea5ff0c",
Expand Down Expand Up @@ -110,7 +110,7 @@
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
Expand All @@ -129,39 +129,39 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Input",
"Id": "8140bed925774b5784f88195304bdd55",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": -204.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "4a19ace111264eebbaecf8f1677b06bd",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 295.0,
"Y": 0.0
},
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "705e800a799e46d4959009d28ea5ff0c",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 71.0,
"Y": 0.0
}
],
"Annotations": [],
"X": 583.30440006882441,
"Y": 261.34116369214871,
"X": 276.1044000688243,
"Y": 267.74116369214875,
"Zoom": 1.0060041900272454
}
}
175 changes: 0 additions & 175 deletions nodes/2.x/Floor.SlabShapeHasBeenModified.dyf

This file was deleted.

16 changes: 0 additions & 16 deletions nodes/2.x/python/Roof.SlabShapeHasBeenModified.py

This file was deleted.

0 comments on commit 4ab4865

Please sign in to comment.