::GetValue

Syntax

::model::mdlSymCheckBox::GetValue frmPath

Application

MotionView Tcl

Description

This command will return the value of the given mdlSymCheckBox path. It will return 1 if checked and 0 if unchecked.

Inputs

frmPath
This argument takes the frame of the mdlSymCheckBox widget that you are retrieving the value for.

Example

::model::GetClientHandle client
client GetModelHandle mod
mod InterpretEntity pbshandle PointMassBodyPair pb_0 "\"PointMassBody0\""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set sym_cb [::model::mdlSymCheckBox $colFrm.sym_cb pbshandle -items { "mass" }]
pack $sym_cb
::model::mdlSymCheckBox::GetValue $sym_cb
client ReleaseHandle
mod ReleaseHandle
pbshandle ReleaseHandle

Errors

On successful execution of the command, it will return the current value of the mdlSymCheckBox (1 or 0).