::SetDCButtonState

This command will be used to enable or disable the direction cosine button within the mdlOrientation widget.

Syntax

::model::mdlOrientation::SetDCButtonStatet argFrm argState

Application

MotionView Tcl

Description

This command will be used to enable or disable the direction cosine button within the mdlOrientation widget.

Inputs

argFrm
We need to pass the path of the mdlOrientation widget as the above argument, where we need to enable or disable the DC button.
argState
We need to pass either true or false to this argument to enable or disable the DC button.

Example

::model::GetClientHandle client
client GetModelHandle mod
mod InterpretEntity mrk Marker mrk_0 "\"Marker 0\"" "" ""
set top [toplevel .test]
set colFrm [frame $top.tmpFrm1 ]
pack $colFrm
set ornt [::model::mdlOrientation $colFrm.ornt mrk]
pack $ornt
client ReleaseHandle
mod ReleaseHandle
mrk ReleaseHandle
::model::mdlOrientation::SetDCButtonState $ornt true

Errors

On successful execution of the command, it will enable or disable the DC button in the mdlOrientation widget.