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 91c3ef3 commit 09c9e79
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 139 deletions.
31 changes: 17 additions & 14 deletions nodes/3.x/PerspectiveView.OrientToEyeAndTargetPosition.dyf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,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.Elements)\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\nview = UnwrapElement(IN[0])\r\neyeposition = IN[1].ToXyz()\r\nupdirection = IN[2].ToXyz()\r\nforwarddirection = IN[3].ToXyz()\r\n\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\ntry:\r\n\tnewVO = ViewOrientation3D(eyeposition, updirection, forwarddirection)\r\n\tview.SetOrientation(newVO)\r\n\tview.SaveOrientation()\r\n\tOUT = True\r\nexcept:\r\n\tOUT = False\r\nTransactionManager.Instance.TransactionTaskDone()",
"Engine": "CPython3",
"VariableInputPorts": true,
"Id": "d9ec8776ff0141cda52c297fb0ebe385",
"Inputs": [
Expand Down Expand Up @@ -123,7 +124,7 @@
}
],
"Replication": "Disabled",
"Description": "Runs an embedded IronPython script."
"Description": "Führt ein eingebettetes Python-Skript aus."
},
{
"ConcreteType": "Dynamo.Graph.Nodes.CustomNodes.Symbol, DynamoCore",
Expand All @@ -149,7 +150,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.Symbol, DynamoCore",
Expand All @@ -175,7 +176,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.Symbol, DynamoCore",
Expand All @@ -201,7 +202,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 @@ -222,7 +223,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 @@ -311,7 +312,7 @@
}
],
"Replication": "Auto",
"Description": "Ruft den kanonischen Vektor der Z-Achse ab (1,0,0)\n\nVector.ZAxis ( ): Vector"
"Description": "Ruft den kanonischen Vektor der Z-Achse ab (0,0,1)\n\nVector.ZAxis ( ): Vector"
},
{
"ConcreteType": "Dynamo.Graph.Nodes.ZeroTouch.DSFunction, DynamoCore",
Expand Down Expand Up @@ -448,7 +449,7 @@
{
"Id": "dd22222ae27a4d63914259493c8f6f5e",
"Name": "axis",
"Description": "Vector",
"Description": "Rotation axis vector\n\nVector",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand All @@ -457,7 +458,7 @@
{
"Id": "50070a0d35c34d58a28195b348abafd7",
"Name": "degrees",
"Description": "double\nVorgabewert : 0",
"Description": "Number of degrees to rotate\n\ndouble\nVorgabewert : 0",
"UsingDefaultValue": true,
"Level": 2,
"UseLevels": false,
Expand All @@ -468,7 +469,7 @@
{
"Id": "9d04959de1ff4495bb5ca96944ef7504",
"Name": "Vector",
"Description": "Vector",
"Description": "Rotated vector",
"UsingDefaultValue": false,
"Level": 2,
"UseLevels": false,
Expand Down Expand Up @@ -517,7 +518,7 @@
],
"Outputs": [],
"Replication": "Disabled",
"Description": "A function output, use with custom nodes"
"Description": "Eine Funktionsausgabe zur Verwendung mit benutzerdefinierten Blöcken"
}
],
"Connectors": [
Expand Down Expand Up @@ -625,13 +626,15 @@
"Dependencies": [
"2f9c4a7e-aa1d-49da-8132-5fd89adea518"
],
"NodeLibraryDependencies": [],
"Author": "None provided",
"Bindings": [],
"View": {
"Dynamo": {
"ScaleFactor": 1.0,
"HasRunWithoutCrash": false,
"IsVisibleInDynamoLibrary": true,
"Version": "2.0.3.8810",
"Version": "2.12.1.8246",
"RunType": "Manual",
"RunPeriod": "1000"
},
Expand Down Expand Up @@ -800,8 +803,8 @@
}
],
"Annotations": [],
"X": -353.42013242399742,
"Y": 360.41076743527071,
"Zoom": 1.2212287363939358
"X": -106.60313343000553,
"Y": 167.20705388977493,
"Zoom": 0.63208907568336015
}
}
Loading

0 comments on commit 09c9e79

Please sign in to comment.