::GetCurrentType
This command is used to get the selected entity reference type for the mdlTempListCollector.
Syntax
::model::mdlTempListCollector::GetCurrentType argFrm argType
Application
MotionView Tcl
Description
This command is used to get the selected entity reference type for the mdlTempListCollector.
Inputs
- argFrm
- The path of the mdlTempListCollector for which we want to get the current selected entity reference type.
- argType
- A Tcl variable that is to be set to the current selected entity reference type.
Example
set sel_gra ""
set sel_bd ""
set sel_type ""
set retVar ""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set types {{Graphic Graphic ::sel_gra} {Body Body ::sel_bd}}
set list_col [::model::mdlTempListCollector $colFrm.lcol ::sel_type "$types"]
pack $list_col
::model::mdlTempListCollector::GetCurrentType $list_col retVar
Errors
On successful execution of the command, nothing is returned. Rather, the specified variable is assigned the entity type currently selected for the mdlTempListCollector.