The Set Document Node Static Transform task will modify the transform of a Node in a DriveWorks 3D Document.
A Nodes Transform includes the Nodes Position (X, Y, Z), as well as Rotation (X, Y, Z) and its Scale (X, Y, Z). This Specification Macro Task can set each of these values on a Node.
From a Macro Button or a 3D Model Click Macro you can position a Model/Node using this task.
The Set Document Node Static Transform task works on a 3D Document within a 3D Preview Control. In order to save changes made by this task you will need to use the Save 3D Document task.
It is advised that you use the Save 3D Document task at the end of a Specification for performance.
The Set Document Node Static Transform task does NOT work on 3D Previews created from SOLIDWORKS and DriveWorks Autopilot, or static DriveWorks 3D Files.
|Preview Control Name||The name of a 3D Preview Control to perform the action on.
This 3D Preview Control must be using a DriveWorks 3D Document.
|Target Node Address||The address of the Node to target.|
|Set World Position||TRUE to set the world position, FALSE to set the local position.|
|Position Values||A pipe delimited list of position values in the format X|Y|Z.|
|Set World Rotation||TRUE to set the world rotation, FALSE to set the local rotation.|
|Rotation Values||A pipe delimited list of rotation values in the format X|Y|Z.|
|Scale Values||A pipe delimited list of scale values in the format X|Y|Z.|
|Include Transform Rules||TRUE to set the transform with rules applied, FALSE to set the static transform.|
When this task is added the properties are static by default.
See How To: Change A Static Property To A Dynamic Property to enable rules to be built on these properties.
|Property Name||Example rule||Example result||Meaning|
|Preview Control Name||"3DPreviewControl"||3DPreviewControl||This task will run on the named Preview Control. If that Preview Control has a DriveWorks 3D Document, then the task will attempt to set the Transform of the specified Node.|
|Target Node Address||"Root\Table\Leg-" & DWConstantSelectedLeg||Root\Table\Leg-1||This is the address of the Node to set the Transform on.|
|Get World Transform||"TRUE" or "FALSE"||This is the position of the specified Nodes parents that will be included in the Position Values data output.|
|Get World Rotation||"TRUE" or "FALSE"||This is the rotation of the specified Nodes parents that will be included in the Rotation Values data output.|
|Position Values||XPositionReturn & "|0|" & ZPositionReturn||1000|0|500||This sets the Node to be 1000 in the X Axis and 500 in the Z Axis.|
|Rotation Values||"0|" & YRotationReturn & "|0"||0|45|0||All rotations will remain at 0 degrees apart from in the Y Axis. Units in degrees.|
|Scale Values||"1|1|1"||1|1|1||The Scale of the Node will remain at 1 in each Axis. This leaves the model at its normal size.|
|Include Transform Rules||"TRUE" or "FALSE"||TRUE to set the transform with rules applied, FALSE to set the static transform.|
All Node Addresses start from the "Root" Node in the DriveWorks 3D Document. This "Root" Node can be renamed, so you may need to enter the renamed Node name.
The address is a hierarchical path and you need to know the address of the model you are transforming.
DWCurrentMacroCaller can be used when clicking a 3D Model in a DriveWorks 3D Document. This Special Variable will return the address of the model clicked.
This task has different types of Outputs. For more information about Outputs see Specification Macros Task Node.
Outputs are only available within Specification Macros. Currently Outputs are not available for Specification Flow.
This task does not currently support Status Output Navigation.
Please check the Specification Report for details of Success/Warnings/Failure.