Skip to content

Commit

Permalink
Merge pull request #394 from denizmaral/patch-3
Browse files Browse the repository at this point in the history
Update Element.MoveToPoint.dyf
  • Loading branch information
andydandy74 authored Apr 2, 2024
2 parents 467130a + abf687d commit 95cff21
Showing 1 changed file with 90 additions and 77 deletions.
167 changes: 90 additions & 77 deletions nodes/2.x/Element.MoveToPoint.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}
],
"Replication": "Disabled",
"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"
"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.Symbol, DynamoCore",
Expand All @@ -65,7 +65,7 @@
}
],
"Replication": "Disabled",
"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"
"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",
Expand All @@ -86,7 +86,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
"Description": "A function output, use with custom nodes"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Output, DynamoCore",
Expand All @@ -107,46 +107,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
"NodeType": "FunctionNode",
"FunctionSignature": "Revit.Elements.Element.MoveByVector@Autodesk.DesignScript.Geometry.Vector",
"Id": "63bed823f83a42efaba096d15f0f437c",
"Inputs": [
{
"Id": "9fbbad3a6534415a8b745e06e9ced731",
"Name": "element",
"Description": "Revit.Elements.Element",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "98f2388b305c4778a050f43db6de58f9",
"Name": "vector",
"Description": "Verschiebungsvektor\n\nVector",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "477c010f3e544da8b96cd3fa03edaf0b",
"Name": "void",
"Description": "void",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Verschiebt ein Revit-Element mithilfe eines Vektors.\n\nElement.MoveByVector (vector: Vector): void"
"Description": "A function output, use with custom nodes"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand Down Expand Up @@ -185,7 +146,7 @@
}
],
"Replication": "Auto",
"Description": "Bildet einen Vektor durch zwei Endpunkte. Das Ergebnis ist ein Vektor vom Startpunkt zum Endpunkt.\n\nVector.ByTwoPoints (start: Point, end: Point): Vector"
"Description": "Form a Vector by two end points. The result is a vector from the start to the end point.\n\nVector.ByTwoPoints (start: Point, end: Point): Vector"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -207,15 +168,15 @@
{
"Id": "f09fbb3bfcda4951bac1a491eeff5b1d",
"Name": "Geometry",
"Description": "Geometrie der Position",
"Description": "Location Geometry",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Ruft die Position eines bestehenden Elements ab.\n\nElement.GetLocation ( ): Geometry"
"Description": "Get an existing element's location\n\nElement.GetLocation ( ): Geometry"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand All @@ -237,15 +198,15 @@
{
"Id": "f8ce22002ab5432a92f72992b3e29c26",
"Name": "Geometry",
"Description": "Geometrie der Position",
"Description": "Location Geometry",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Auto",
"Description": "Ruft die Position eines bestehenden Elements ab.\n\nElement.GetLocation ( ): Geometry"
"Description": "Get an existing element's location\n\nElement.GetLocation ( ): Geometry"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Function, DynamoCore",
Expand Down Expand Up @@ -277,7 +238,7 @@
{
"Id": "797c2c75dc114595836f19f7a2a455d2",
"Name": "passThrough",
"Description": "Rückgabewert",
"Description": "return value",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand Down Expand Up @@ -324,7 +285,48 @@
}
],
"Replication": "Auto",
"Description": "Überprüft, ob die beiden Objekte dieselbe Darstellungsgeometrie oder dieselben numerischen Werte aufweisen.\n\nGeometry.IsAlmostEqualTo (other: Geometry): bool"
"Description": "Check if the two objects have the same representational geometry or numerical values\n\nGeometry.IsAlmostEqualTo (other: Geometry): bool"
},
{
"ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
"NodeType": "PythonScriptNode",
"Code": "# Phython-Standard- und DesignScript-Bibliotheken laden\r\nimport sys\r\nimport clr\r\nclr.AddReference('RevitNodes', 'RevitServices')\r\nfrom RevitServices.Transactions import TransactionManager\r\nfrom RevitServices.Persistence import DocumentManager\r\nimport Revit\r\nclr.ImportExtensions(Revit.GeometryConversion)\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\n\r\nelements = UnwrapElement(IN[0])\r\npoints = UnwrapElement(IN[1])\r\n\r\nif not hasattr(elements, \"__iter__\"):\r\n\telements = [element]\r\nif not hasattr(points, \"__iter__\"):\r\n\telements = [points]\r\n\t\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\nOUT = []\r\nfor element, point in zip(elements, points):\r\n try:\r\n \tres = element.Location.Move(point.ToXyz(True))\r\n \tOUT.append([element, res])\r\n except: OUT.append([element, False])\r\nTransactionManager.Instance.TransactionTaskDone()",
"Engine": "IronPython2",
"VariableInputPorts": true,
"Id": "d1ff0250c1774cbab36878cfdd319a46",
"Inputs": [
{
"Id": "57dc4b91e29d4e37b846a6cb733eb6f3",
"Name": "IN[0]",
"Description": "Input #0",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
},
{
"Id": "0638e2074a62400cbe684c6d2ea5f49a",
"Name": "IN[1]",
"Description": "Input #1",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Outputs": [
{
"Id": "eeb51ee5018249bbb0b3dd527f861a79",
"Name": "OUT",
"Description": "Ergebnis des Python-Skripts",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
"KeepListStructure": false
}
],
"Replication": "Disabled",
"Description": "Runs an embedded Python script."
}
],
"Connectors": [
Expand All @@ -335,13 +337,13 @@
},
{
"Start": "3d5e8076a11f49b2900401aa3e4f1a64",
"End": "9fbbad3a6534415a8b745e06e9ced731",
"Id": "712dae382325422293192484fc3bb1ab"
"End": "32e80f58944548709976bfe1d029972b",
"Id": "b34a7e41f3d548f18f5599fd226df12d"
},
{
"Start": "3d5e8076a11f49b2900401aa3e4f1a64",
"End": "32e80f58944548709976bfe1d029972b",
"Id": "b34a7e41f3d548f18f5599fd226df12d"
"End": "57dc4b91e29d4e37b846a6cb733eb6f3",
"Id": "cf31f16ede5e43139e4a9f5594bbfdb8"
},
{
"Start": "e9de3fffca894b9ea12b68c49b3ae7b0",
Expand All @@ -353,15 +355,10 @@
"End": "ecf57eb4f4cf4760a1cab9501a6ef07b",
"Id": "a9a7d0995b2f40aaa79c47807b8a8905"
},
{
"Start": "477c010f3e544da8b96cd3fa03edaf0b",
"End": "1fa3c9f45f154fe08ae9d5b07e299860",
"Id": "9f7544a901414d038fff2597025b8924"
},
{
"Start": "2325043731b24c45a64d31903e92f94e",
"End": "98f2388b305c4778a050f43db6de58f9",
"Id": "c6bc0652796240459201d1c8e3f574c6"
"End": "0638e2074a62400cbe684c6d2ea5f49a",
"Id": "cf5469e255924e008b667eed1011c10b"
},
{
"Start": "f09fbb3bfcda4951bac1a491eeff5b1d",
Expand All @@ -387,23 +384,39 @@
"Start": "3d4667468b524a03b3c70849ba5a879f",
"End": "b9d936a5b659403c9271b7e247b70408",
"Id": "6afb1fbc89f64f2ea26d7598e30cc791"
},
{
"Start": "eeb51ee5018249bbb0b3dd527f861a79",
"End": "1fa3c9f45f154fe08ae9d5b07e299860",
"Id": "59566b9650e04fed9948f3fd3f449465"
}
],
"Dependencies": [
"ecce77dc-1290-438e-a056-970b256fd553"
],
"NodeLibraryDependencies": [
{
"Name": "Clockwork for Dynamo 2.x",
"Version": "2.4.0",
"ReferenceType": "Package",
"Nodes": [
"76cfc6ce556b492591dfeb0bb8893e6c"
]
}
],
"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"
},
"Camera": {
"Name": "Hintergrundvorschau",
"Name": "Background Preview",
"EyeX": -17.0,
"EyeY": 24.0,
"EyeZ": 50.0,
Expand Down Expand Up @@ -455,16 +468,6 @@
"X": 2064.18711149978,
"Y": 672.17774882303
},
{
"ShowGeometry": true,
"Name": "Element.MoveByVector",
"Id": "63bed823f83a42efaba096d15f0f437c",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 759.18711149977992,
"Y": 656.17774882303
},
{
"ShowGeometry": true,
"Name": "Vector.ByTwoPoints",
Expand Down Expand Up @@ -514,11 +517,21 @@
"Excluded": false,
"X": 1760.1871114997798,
"Y": 672.17774882303
},
{
"ShowGeometry": true,
"Name": "Python Script: Element.MoveByVector",
"Id": "d1ff0250c1774cbab36878cfdd319a46",
"IsSetAsInput": false,
"IsSetAsOutput": false,
"Excluded": false,
"X": 716.09013936180679,
"Y": 718.2768849755862
}
],
"Annotations": [],
"X": 143.67894901426985,
"Y": 76.334314187115922,
"Zoom": 0.4545091156709794
"X": 72.837248160310878,
"Y": -127.32354041704866,
"Zoom": 0.72583335096494017
}
}
}

0 comments on commit 95cff21

Please sign in to comment.