mdlIFlexbody GetInterfaceNodeCoordByIndex

Retrieves the coordinates of interface node at the given index.

Syntax

mdlIFlexbody_Handle GetInterfaceNodeCoordByIndex index, option

Application

MotionView Tcl Query

Description

This command retrieves the coordinates of interface node at the given index.

Inputs

index
The index of the interface 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 GetInterfaceNodeCoordByIndex 0 global_space
bflex ReleaseHandle;
m ReleaseHandle;
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;
hwi CloseStack;

Errors

None.