mdlIObject Delete
Deletes an object/entity.
Syntax
mdlIObject_handle Delete
Application
MotionView Tcl Modify
Description
This command deletes an object/entity. Grab/get the appropriate entity (body, point, vector, marker, etc.) which you want to delete. Once the handle of that particular object/entity is reached, you can delete the entity.
Example
hwi OpenStack
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
set activePageNum [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $activePageNum
set activeWinNum [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $activeWinNum
myWindowName GetClientHandle myClientName
myClientName GetModelHandle myModelName
myModelName BeginFlatListFastGet Point
myModelName GetChildHandleByIdx point_handle 2
set pointvar [point_handle GetLabel]
point_handle Delete
tk_messageBox -message "The point $pointvar has been deleted"
point_handle ReleaseHandle
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack
Errors
Returns 0 if successful, otherwise an error code.