From 1705a411cfcc278a486d600395eff8f82e42637c Mon Sep 17 00:00:00 2001 From: "GMP-AD\\adieckmann" Date: Mon, 4 Sep 2023 18:41:20 +0200 Subject: [PATCH] fixed #382 --- nodes/2.x/Roof.SlabShapeHasBeenModified.dyf | 78 ++++----------------- 1 file changed, 13 insertions(+), 65 deletions(-) diff --git a/nodes/2.x/Roof.SlabShapeHasBeenModified.dyf b/nodes/2.x/Roof.SlabShapeHasBeenModified.dyf index 372c1879..fc681ed5 100644 --- a/nodes/2.x/Roof.SlabShapeHasBeenModified.dyf +++ b/nodes/2.x/Roof.SlabShapeHasBeenModified.dyf @@ -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", @@ -55,12 +55,14 @@ ], "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\ndef SlabShapeHasBeenModified(item):\r\n\tif hasattr(item, \"SlabShapeEditor\"):\r\n\t\tif item.SlabShapeEditor.SlabShapeCreases.IsEmpty == True or item.SlabShapeEditor.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)", + "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)", + "Engine": "IronPython2", + "EngineName": "IronPython2", "VariableInputPorts": true, "Id": "705e800a799e46d4959009d28ea5ff0c", "Inputs": [ @@ -86,79 +88,25 @@ } ], "Replication": "Disabled", - "Description": "Runs an embedded IronPython script." + "Description": "Führt ein eingebettetes Python-Skript aus." } ], "Connectors": [ { "Start": "44cfa51ddcf14af8b136407820e6813d", "End": "7c29fd2786ba4cefae9a8649ae88a1ae", - "Id": "e4f132c53cba476a84e21ab4a2af11e6" + "Id": "e4f132c53cba476a84e21ab4a2af11e6", + "IsHidden": "False" }, { "Start": "f9c08118545e45a59da634d76366d8f6", "End": "be8ff006d4a9409c970ed9b272d176e5", - "Id": "c0e09de2d2454458aa13c4df5a5e496c" + "Id": "c0e09de2d2454458aa13c4df5a5e496c", + "IsHidden": "False" } ], "Dependencies": [], - "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": "8140bed925774b5784f88195304bdd55", - "IsSetAsInput": false, - "IsSetAsOutput": false, - "Name": "Input", - "ShowGeometry": true, - "Excluded": false, - "X": 208.75, - "Y": 28.5 - }, - { - "Id": "4a19ace111264eebbaecf8f1677b06bd", - "IsSetAsInput": false, - "IsSetAsOutput": false, - "Name": "Output", - "ShowGeometry": true, - "Excluded": false, - "X": 595.75, - "Y": 28.5 - }, - { - "Id": "705e800a799e46d4959009d28ea5ff0c", - "IsSetAsInput": false, - "IsSetAsOutput": false, - "Name": "Python Script", - "ShowGeometry": true, - "Excluded": false, - "X": 371.75, - "Y": 28.5 - } - ], - "Annotations": [], - "X": 149.0, - "Y": 204.0, - "Zoom": 1.0 - } + "NodeLibraryDependencies": [], + "Author": "None provided", + "Bindings": [] } \ No newline at end of file