mdlIObject CutObject
Cuts the object (which is another way of deleting an entity).
Syntax
mdlIObject_handle CutObject
Application
MotionView Tcl Modify
Description
This command cuts the object (which is another way of deleting an entity).
Example
To cut/delete an
object:
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 InterpretEntity newpt Point test_point "\"Test Point\"";
myModelName InterpretSet SetPoint test_point 50.0 50.0 50.0;
newpt ReleaseHandle;
tk_messageBox -message "Point Created";
myModelName Evaluate
myModelName GetChildHandle point_handle test_point
point_handle GetObjectHandle obj
obj CutObject
obj ReleaseHandle
tk_messageBox -message "Point Cut";
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.