Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andydandy74 committed Oct 22, 2024
1 parent bd0688e commit 41a54a1
Show file tree
Hide file tree
Showing 4 changed files with 252 additions and 297 deletions.
45 changes: 24 additions & 21 deletions nodes/3.x/BoundingBox.FromDynamoBoundingBox.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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 @@ -60,7 +60,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand Down Expand Up @@ -90,7 +90,7 @@
}
],
"Replication": "Auto",
"Description": "The minimum point\n\nBoundingBox.MinPoint: Point"
"Description": "Der Minimalpunkt\n\nBoundingBox.MinPoint: Point"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand Down Expand Up @@ -120,12 +120,13 @@
}
],
"Replication": "Auto",
"Description": "The maximum point\n\nBoundingBox.MaxPoint: Point"
"Description": "Der Maximalpunkt\n\nBoundingBox.MaxPoint: Point"
},
{
"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\ndef MakeBoundingBox(min, max):\r\n\ttry:\r\n\t\tnewbox = BoundingBoxXYZ()\r\n\t\tnewbox.Max = max.ToXyz()\r\n\t\tnewbox.Min = min.ToXyz()\r\n\t\treturn newbox\r\n\texcept: return None\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\nif isinstance(IN[0], list): OUT = [MakeBoundingBox(x, y) for x, y in zip(IN[0], IN[1])]\r\nelse: OUT = MakeBoundingBox(IN[0], IN[1])\r\nTransactionManager.Instance.TransactionTaskDone()",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "583480e3c3694a6ab0c1bf5a73ac8606",
"Inputs": [
Expand Down Expand Up @@ -160,7 +161,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
}
],
"Connectors": [
Expand Down Expand Up @@ -191,18 +192,20 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.1.5055",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"Name": "Hintergrundvorschau",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
Expand All @@ -215,59 +218,59 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Input",
"Id": "869b2c812a0c4c2fa636de6b0aee396b",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 72.1149545631895,
"Y": 202.350974916414
"X": -143.08504543681056,
"Y": 209.550974916414
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "fa745a47f3a045dda5fb5a06583a1c80",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 1014.11495456319,
"Y": 189.350974916414
},
{
"ShowGeometry": true,
"Name": "BoundingBox.MinPoint",
"Id": "8c3c2b23a2dd4b5aa182d533d10bc7ef",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "BoundingBox.MinPoint",
"ShowGeometry": true,
"Excluded": false,
"X": 458.114954563189,
"Y": 148.350974916414
},
{
"ShowGeometry": true,
"Name": "BoundingBox.MaxPoint",
"Id": "5df189c2d56740f3a6407193e11ec783",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "BoundingBox.MaxPoint",
"ShowGeometry": true,
"Excluded": false,
"X": 458.114954563189,
"Y": 256.350974916414
},
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "583480e3c3694a6ab0c1bf5a73ac8606",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 790.114954563189,
"Y": 189.350974916414
}
],
"Annotations": [],
"X": 333.885045436811,
"Y": 63.899025083586,
"X": -258.91495456318893,
"Y": 12.699025083585951,
"Zoom": 1.0
}
}
59 changes: 31 additions & 28 deletions nodes/3.x/Color.FromDynamoColor.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,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 @@ -60,7 +60,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -81,16 +81,16 @@
"Outputs": [
{
"Id": "202d7eb73861437696a5d57d069246b3",
"Name": "red",
"Description": "int between 0 and 255 inclusive.",
"Name": "int",
"Description": "Rot-Wert für RGB-Farbmodell, Ganzzahl zwischen 0 und 255 (inklusiv).",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Find the red component of a color, 0 to 255.\n\nColor.Red: int"
"Description": "Rote Komponente der Farbe ermitteln: 0 bis 255\n\nColor.Red: int"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -111,16 +111,16 @@
"Outputs": [
{
"Id": "35d3150c89da42f0aa7c06748655aff3",
"Name": "green",
"Description": "int between 0 and 255 inclusive.",
"Name": "int",
"Description": "Grün-Wert für RGB-Farbmodell, Ganzzahl zwischen 0 und 255 (inklusiv).",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Find the green component of a color, 0 to 255.\n\nColor.Green: int"
"Description": "Grüne Komponente der Farbe ermitteln: 0 bis 255\n\nColor.Green: int"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -141,21 +141,22 @@
"Outputs": [
{
"Id": "cf24897906bf415ab42a971edf9d18d5",
"Name": "blue",
"Description": "int between 0 and 255 inclusive.",
"Name": "int",
"Description": "Blau-Wert für RGB-Farbmodell, Ganzzahl zwischen 0 und 255 (inklusiv).",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Find the blue component of a color, 0 to 255.\n\nColor.Blue: int"
"Description": "Blaue Komponente der Farbe ermitteln: 0 bis 255\n\nColor.Blue: int"
},
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "import clr\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\nfrom Autodesk.Revit import *\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\nred = IN[0]\r\ngreen = IN[1]\r\nblue = IN[2]\r\n\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\nif isinstance(IN[0], list): OUT = [Color(r, g, b) for r, g, b in zip(red, green, blue)]\r\nelse: OUT = Color(red, green, blue)\r\nTransactionManager.Instance.TransactionTaskDone()",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "5ba390045c2447dbb05ddf3ceb50029f",
"Inputs": [
Expand Down Expand Up @@ -199,7 +200,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
}
],
"Connectors": [
Expand Down Expand Up @@ -240,18 +241,20 @@
}
],
"Dependencies": [],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.1.5055",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
"Camera": {
"Name": "Background Preview",
"Name": "Hintergrundvorschau",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
Expand All @@ -264,69 +267,69 @@
},
"NodeViews": [
{
"ShowGeometry": true,
"Name": "Input",
"Id": "76acdd8b181e42d2977f2ee3fbeeab3e",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Input",
"ShowGeometry": true,
"Excluded": false,
"X": 133.201638065528,
"Y": 179.594500032098
},
{
"ShowGeometry": true,
"Name": "Output",
"Id": "a4be3bb9a2d14ec289d33d6259b55824",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Output",
"ShowGeometry": true,
"Excluded": false,
"X": 985.201638065528,
"Y": 153.594500032098
},
{
"ShowGeometry": true,
"Name": "Color.Red",
"Id": "81aeaaac38164c45ba65ba3c10be6d8c",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Color.Red",
"ShowGeometry": true,
"Excluded": false,
"X": 477.201638065528,
"Y": 71.5945000320981
},
{
"ShowGeometry": true,
"Name": "Color.Green",
"Id": "5171b9d2a2554e58a185cdc1d01f1080",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Color.Green",
"ShowGeometry": true,
"Excluded": false,
"X": 477.201638065528,
"Y": 179.594500032098
},
{
"ShowGeometry": true,
"Name": "Color.Blue",
"Id": "3cedf26e115a429597d97694bb1dffb5",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Color.Blue",
"ShowGeometry": true,
"Excluded": false,
"X": 477.201638065528,
"Y": 287.594500032098
},
{
"ShowGeometry": true,
"Name": "Python Script",
"Id": "5ba390045c2447dbb05ddf3ceb50029f",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Name": "Python Script",
"ShowGeometry": true,
"Excluded": false,
"X": 761.201638065528,
"Y": 153.594500032098
}
],
"Annotations": [],
"X": 209.755933586795,
"Y": 65.748802095697,
"X": -166.24406641320505,
"Y": 52.948802095697047,
"Zoom": 0.97676875
}
}
Loading

0 comments on commit 41a54a1

Please sign in to comment.