mdlIModelClient GetObjectPickContextList
Gets the list of objects that can be picked from the Graphic Window.
Syntax
mdlIModelClient_handle GetObjectPickContextList
Application
MotionView Tcl Query
Description
This command retrieves the list of objects that are set in pick context. The objects are set using the SetObjectPickContextList command. In the case where a model is empty (meaning that no entity has yet been added to the model), nothing will be returned. If nothing has been set using the SetObjectPickContextList command for a non-empty model, then MODEL will be returned.
Example
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
win1 GetClientHandle mcl
mcl GetRootObjectHandle mo
mo InterpretEntity en Point p_0 "\"Point 0\""
en ReleaseHandle;
mcl GetObjectPickContextList
mcl SetObjectPickContextList p_0
mcl GetObjectPickContextList
mcl ReleaseHandle;
win1 ReleaseHandle;
pa1 ReleaseHandle;
pro1 ReleaseHandle;
sess1 ReleaseHandle;
Errors
Returns the list of objects that can be picked from the Graphic Window. In the case of a new Model without any entities added, nothing will be returned. If there is an error, an error code will be returned.