The Set Document Node Static Transform task will modify the transform of a Node in a DriveWorks 3D Document.
A Node's 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 that you want to set the Transform values on.|
|Position Values||A pipe delimited list of position values in the format X|Y|Z.|
|Scale Values||A pipe delimited list of scale values in the format X|Y|Z.|
|Rotation Values||A pipe delimited list of rotation values in the format X|Y|Z.|
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.|
|Position Values||XPositionReturn & "|0|" & ZPositionReturn||1000|0|500||This sets the Node to be a 1000 millimeters in the X Axis and 500 millimeters in the Z Axis. Units in millimeters.|
|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.|
|Rotation Values||"0|" & YRotationReturn & "|0"||Root\Table\Leg-1||All rotations will remain at 0 degrees apart from in the Y Axis. Units in degrees.|
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.