Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Oct 12, 2024
1 parent b48f76a commit c8b9588
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 122 deletions.
15 changes: 9 additions & 6 deletions nodes/3.x/Railing.ByPathTypeAndLevel.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"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\ndoc = DocumentManager.Instance.CurrentDBDocument\r\ncurves = UnwrapElement(IN[0])\r\nrailingtype = UnwrapElement(IN[1])\r\nlvl = UnwrapElement(IN[2])\r\n\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\ncurveloop = CurveLoop.Create([x.ToRevitType() for x in curves])\r\nOUT = Architecture.Railing.Create(doc, curveloop, railingtype.Id, lvl.Id)\r\nTransactionManager.Instance.TransactionTaskDone()",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "00b9f6279780471e92e39e5787ff7ee5",
"Inputs": [
Expand Down Expand Up @@ -66,7 +67,7 @@
}
],
"Replication": "Disabled",
"Description": "Führt ein eingebettetes IronPython-Skript aus."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand Down Expand Up @@ -226,7 +227,7 @@
{
"Id": "b1c123cd50954eeba643f4bd87386868",
"Name": "PolyCurve",
"Description": "PolyCurve",
"Description": "Polykurve aus verbundenen Kurven erstellt",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand Down Expand Up @@ -270,13 +271,15 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.4.12684",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
Expand Down Expand Up @@ -365,8 +368,8 @@
}
],
"Annotations": [],
"X": 594.69071528256018,
"Y": 319.39187192605164,
"Zoom": 1.4425890929331342
"X": 105.95109510039015,
"Y": 339.41021062172138,
"Zoom": 0.77051684820224542
}
}
Loading

0 comments on commit c8b9588

Please sign in to comment.