Skip to content

Commit

Permalink
fixed #382
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Sep 4, 2023
1 parent 528400c commit 1705a41
Showing 1 changed file with 13 additions and 65 deletions.
78 changes: 13 additions & 65 deletions nodes/2.x/Roof.SlabShapeHasBeenModified.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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": [
Expand All @@ -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": []
}

0 comments on commit 1705a41

Please sign in to comment.