::GetCurrentSelectionVarname

This command will be used to get the varname of the entity to which the collector is resolved.

Syntax

::model::mdlTempCollector::GetCurrentSelectionVarname argFrm

Application

MotionView Tcl

Description

This command will be used to get the varname of the entity to which the collector is resolved.

Inputs

argFrm
You need to pass the path of the mdlTempCollector in the above argument, for which you need to get the varname.

Example

set selected_point ""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set point_col [::model::mdlTempCollector $colFrm.ptcol ::selected_point "Point" "Point" ]
pack $point_col
# Resolve the collector to the Ground Body 
::model::mdlTempCollector::GetCurrentSelectionVarname $point_col

Errors

On successful execution of the command, if the mdlTempCollector is resolved then it will return the varname of the resolved entity or else it returns a blank.