mdlIObject PasteObject

Pastes an object.

Syntax

mdlIObject_handle PasteObject

Application

MotionView Tcl Modify

Description

This command pastes an object, and can be used in cases when an object needs to be shifted from one system to another.

Example

To paste 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 point_handle Point test_point "\"Test Point\"";
myModelName InterpretSet SetPoint test_point 50.0 50.0 50.0;
myModelName Evaluate
point_handle GetObjectHandle obj
obj CutObject
tk_messageBox -message "Object Cut";
myModelName PasteObject
tk_messageBox -message "Object Pasted";

obj ReleaseHandle
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.