poISystem SetOrientationByNode

Sets the orientation of the coordinate system using three nodes.

Syntax

system_handle SetOrientationByNodenode1 node2 node3

Application

HyperView Tcl Modify

Description

This command sets the orientation of the coordinate system using the coordinates of three nodes. The orientation can be set for user-defined systems only! Node1 defines the origin of the system, the vector between node1 and node2 defines the X-axis of the system, and node3 defines a point on the XY plane.

Inputs

node1
The ID of node1.
node2
The ID of node2.
node3
The ID of node3.

Example

To set the orientation of a user-defined system using nodes:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetClientHandle client_handle
client_handle GetModelHandle model_handle [client_handle GetActiveModel]

model_handle GetUserDefinedSystemHandle sys1 “UserSystem 2”
sys1 SetOrientationByNode “Node 100” “Node 200” “Node 300”

hwi CloseStack

Errors

Returns a non-zero value if there is an error.