mdlIFlexbody GetNodeIdByIndex
Retrieves the number of nodes in the flexbody.
Syntax
mdlIFlexbody_Handle GetNodeIdByIndex index
Application
MotionView Tcl Query
Description
This command retrieves the ID of the node at the given index.
Inputs
- index
- The index of the node whose ID is to be retrieved.
Example
Copy the file slider_crank_gmesh.mdl into the present working directory.
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 GetNodeIdByIndex 0
bflex ReleaseHandle;
m ReleaseHandle;
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;
hwi CloseStack;
Errors
None.