::SetState
This command will enable or disable the list collector widget based on the input value.
Syntax
::model::mdlListCollector::SetState argFrm argState
Application
MotionView Tcl
Description
This command will enable or disable the list collector widget based on the input value.
Inputs
- argFrm
- We need to pass the path of the list collector which needs to be enabled or disabled as the above argument.
- argState
- We need to pass either true or false to this argument to enable or disable the list collector widget.
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
::model::mdlListCollector::SetState $list_col false
Errors
On successful execution of the command, the list collector will be enabled or disabled.