::GetCurrentSelectionVarname

This command will be used to get the varname of the entity, to which the list collector is resolved (for the current type).

Syntax

::model::mdlListCollector::GetCurrentSelectionVarname argFrm

Application

MotionView Tcl

Description

This command will be used to get the varname of the entity, to which the list collector is resolved (for the current type).

Inputs

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

Example

::model::GetClientHandle client
client GetModelHandle mod
mod InterpretEntity frchandle ActionReactionForce frc_0 "\"Force\"" "SC_ROT" "" "B_Ground" "" "POINT" ""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set types "{POINT Point align_pt1} {VECTOR Vector align_vec1}"
set list_col [::model::mdlListCollector $colFrm.lcol frchandle "align_meth1" "$types" -references { POINT VECTOR }]
pack $list_col
client ReleaseHandle
mod ReleaseHandle
frchandle ReleaseHandle 
# Resolve the collector to the Global origin 
::model::mdlListCollector::GetCurrentSelectionVarname $list_col

Errors

On successful execution of the command, if the collector is resolved then it will return the varname of resolved entity else blank.