diff --git a/NodeList.xlsx b/NodeList.xlsx index d678af17..0648ccf8 100644 Binary files a/NodeList.xlsx and b/NodeList.xlsx differ diff --git a/nodes/2.x/Roof.SlabShapeHasBeenModified.dyf b/nodes/2.x/Element.SlabShapeHasBeenModified.dyf similarity index 83% rename from nodes/2.x/Roof.SlabShapeHasBeenModified.dyf rename to nodes/2.x/Element.SlabShapeHasBeenModified.dyf index fc862de8..6e8c0014 100644 --- a/nodes/2.x/Roof.SlabShapeHasBeenModified.dyf +++ b/nodes/2.x/Element.SlabShapeHasBeenModified.dyf @@ -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": {} }, @@ -14,7 +14,7 @@ "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore", "NodeType": "InputNode", "Parameter": { - "Name": "roof", + "Name": "element", "TypeName": "var", "TypeRank": -1, "DefaultValue": null, @@ -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", @@ -110,7 +110,7 @@ "Dynamo": { "ScaleFactor": 1.0, "HasRunWithoutCrash": false, - "IsVisibleInDynamoLibrary": false, + "IsVisibleInDynamoLibrary": true, "Version": "2.12.1.8246", "RunType": "Manual", "RunPeriod": "1000" @@ -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 } } \ No newline at end of file diff --git a/nodes/2.x/Floor.SlabShapeHasBeenModified.dyf b/nodes/2.x/Floor.SlabShapeHasBeenModified.dyf deleted file mode 100644 index 8574ce69..00000000 --- a/nodes/2.x/Floor.SlabShapeHasBeenModified.dyf +++ /dev/null @@ -1,175 +0,0 @@ -{ - "Uuid": "9eb6949f-375f-493c-ba62-9198c69c249e", - "IsCustomNode": true, - "Category": "Clockwork.Revit.Elements.Query", - "Description": "Checks if the shape of a floor slab has been modified with the shape editing tools", - "Name": "Floor.SlabShapeHasBeenModified", - "ElementResolver": { - "ResolutionMap": { - "Floor": { - "Key": "Revit.Elements.Floor", - "Value": "RevitNodes.dll" - }, - "Autodesk.Point": { - "Key": "Autodesk.DesignScript.Geometry.Point", - "Value": "ProtoGeometry.dll" - } - } - }, - "Inputs": [], - "Outputs": [], - "Nodes": [ - { - "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore", - "FunctionSignature": "5522a73c-f9bd-45b1-a63b-5c2262fe1f98", - "FunctionType": "Graph", - "NodeType": "FunctionNode", - "Id": "eedb1efd0971449d960e6bf5ea064cbc", - "Inputs": [ - { - "Id": "d1042737fd61443ab57d3d687ac73a68", - "Name": "roof", - "Description": "Input #1", - "UsingDefaultValue": false, - "Level": 2, - "UseLevels": false, - "KeepListStructure": false - } - ], - "Outputs": [ - { - "Id": "8b4a4da7479d4fc88d0b667725268d38", - "Name": "bool", - "Description": "Output #1", - "UsingDefaultValue": false, - "Level": 2, - "UseLevels": false, - "KeepListStructure": false - } - ], - "Replication": "Auto", - "Description": "Checks if the shape of a roof slab has been modified with the shape editing tools" - }, - { - "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore", - "NodeType": "InputNode", - "Parameter": { - "Name": "floor", - "TypeName": "var", - "TypeRank": -1, - "DefaultValue": null, - "Description": "" - }, - "Id": "7b0b7ffe62d84bab937ccfb11b96881b", - "Inputs": [], - "Outputs": [ - { - "Id": "390014759d144501bdb694f79e9fb598", - "Name": "", - "Description": "Symbol", - "UsingDefaultValue": false, - "Level": 2, - "UseLevels": false, - "KeepListStructure": false - } - ], - "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" - }, - { - "ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore", - "NodeType": "OutputNode", - "ElementResolver": null, - "Symbol": "bool", - "Id": "a568c430d2b345329e8a3f10c1d3abe2", - "Inputs": [ - { - "Id": "139af4a1f1e74dd085205c580194df4f", - "Name": "", - "Description": "", - "UsingDefaultValue": false, - "Level": 2, - "UseLevels": false, - "KeepListStructure": false - } - ], - "Outputs": [], - "Replication": "Disabled", - "Description": "A function output, use with custom nodes" - } - ], - "Connectors": [ - { - "Start": "8b4a4da7479d4fc88d0b667725268d38", - "End": "139af4a1f1e74dd085205c580194df4f", - "Id": "3fcd068b03e94cc7b54957c4cb524d65" - }, - { - "Start": "390014759d144501bdb694f79e9fb598", - "End": "d1042737fd61443ab57d3d687ac73a68", - "Id": "79ea75edc8f4419dbe5c821adaff14f9" - } - ], - "Dependencies": [ - "5522a73c-f9bd-45b1-a63b-5c2262fe1f98" - ], - "Bindings": [], - "View": { - "Dynamo": { - "ScaleFactor": 1.0, - "HasRunWithoutCrash": false, - "IsVisibleInDynamoLibrary": true, - "Version": "2.0.1.5055", - "RunType": "Manual", - "RunPeriod": "1000" - }, - "Camera": { - "Name": "Background Preview", - "EyeX": -17.0, - "EyeY": 24.0, - "EyeZ": 50.0, - "LookX": 12.0, - "LookY": -13.0, - "LookZ": -58.0, - "UpX": 0.0, - "UpY": 1.0, - "UpZ": 0.0 - }, - "NodeViews": [ - { - "Id": "eedb1efd0971449d960e6bf5ea064cbc", - "IsSetAsInput": false, - "IsSetAsOutput": false, - "Name": "Roof.SlabShapeHasBeenModified", - "ShowGeometry": true, - "Excluded": false, - "X": 175.0, - "Y": 0.0 - }, - { - "Id": "7b0b7ffe62d84bab937ccfb11b96881b", - "IsSetAsInput": false, - "IsSetAsOutput": false, - "Name": "Input", - "ShowGeometry": true, - "Excluded": false, - "X": 0.0, - "Y": 0.0 - }, - { - "Id": "a568c430d2b345329e8a3f10c1d3abe2", - "IsSetAsInput": false, - "IsSetAsOutput": false, - "Name": "Output", - "ShowGeometry": true, - "Excluded": false, - "X": 493.0, - "Y": 0.0 - } - ], - "Annotations": [], - "X": 30.0, - "Y": 313.709302325581, - "Zoom": 1.4561717352415 - } -} \ No newline at end of file diff --git a/nodes/2.x/python/Roof.SlabShapeHasBeenModified.py b/nodes/2.x/python/Roof.SlabShapeHasBeenModified.py deleted file mode 100644 index 445303b4..00000000 --- a/nodes/2.x/python/Roof.SlabShapeHasBeenModified.py +++ /dev/null @@ -1,16 +0,0 @@ -import clr -clr.AddReference('RevitAPI') -from Autodesk.Revit.DB import * - -def SlabShapeHasBeenModified(item): - if hasattr(item, "SlabShapeEditor"): - if hasattr(item.SlabShapeEditor, "SlabShapeCreases") and hasattr(item.SlabShapeEditor, "SlabShapeVertices"): - if item.SlabShapeEditor.SlabShapeCreases.IsEmpty == True or item.SlabShapeEditor.SlabShapeVertices.IsEmpty == True: return False - else: return True - else: return False - else: return False - -items = UnwrapElement(IN[0]) - -if isinstance(IN[0], list): OUT = [SlabShapeHasBeenModified(x) for x in items] -else: OUT = SlabShapeHasBeenModified(items) \ No newline at end of file