mdlIFlexbody GetNodeCoordById

Retrieves the coordinates of the node at the given index.

Syntax

mdlIFlexbody_Handle GetNodeCoordByIdid, option

Application

MotionView Tcl Query

Description

This command retrieves the coordinates of the node with the given ID.

Inputs

id
The ID of the node whose coordinates are to be retrieved.
option
Use global_space if coordinates are needed in global space.

Example

Copy the file slider_crank_gmesh.mdl into the present working directory.

The present working directory can be identified by using the pwd command in the command window.
hwi OpenStack
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl CreateModel "slider_crank_gmesh.mdl"
mc GetModelHandle m
m GetChildHandle bflex b_3.flex
bflex GetNodeCoordById 25229 global_space
bflex ReleaseHandle;
m ReleaseHandle;
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;
hwi CloseStack;

Errors

None.