::mdlSymCheckBox

This command can be used to create a mdlSymCheckBox widget which will be attached to the “sym” data member (by default) of the pair entity passed as an argument. The widget contains the necessary logic to prompt the user regarding copying values (from leader to follower side) and/or breaking symmetry. It also contains common logic that is used to allow or disallow the user from turning the symmetry on or off for an entity.

Syntax

::model::mdlSymCheckBox frmPath entityHandle

Application

MotionView Tcl

Description

This command can be used to create a mdlSymCheckBox widget which will be attached to the “sym” data member (by default) of the pair entity passed as an argument. The widget contains the necessary logic to prompt the user regarding copying values (from leader to follower side) and/or breaking symmetry. It also contains common logic that is used to allow or disallow the user from turning the symmetry on or off for an entity.

Inputs

path
The frame on which the mdlSymCheckBox widget will be created is passed as an argument.
entityHandle
We need to pass the handle of the pair entity whose “sym” data member needs to be modified.

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
client ReleaseHandle
mod ReleaseHandle
pbshandle ReleaseHandle

Errors

On successful execution of the command, it will create an mdlSymCheckBox widget.