::mdlArray

This command creates a CheckBox widget that is tied to a data member of an existing entity in the model.

Syntax

::model::mdlArray path entityHandle dm args

Application

MotionView Tcl GUI

Description

This command creates a CheckBox widget that is tied to a data member of an existing entity in the model.

Inputs

path
The full path to the newly created widget.
entityHandle
A handle pointing to the entity that contains the data member.
dm
The name of the data member that will hold the value.
args
A list of '-' separated flags to configure the Array widget's behavior.

Example

To create an mdlArray widget:
::model::GetClientHandle clnt
clnt GetModelHandle mdl
clnt ReleaseHandle
mdl InterpretEntity entArray SolverArray s_0 "\"Array 0\"" "IC"
mdl ReleaseHandle

set dlg [toplevel .dlg]
set frm [frame $dlg.frm -padx 10 -pady 10]
grid $frm -row 0 -column 0 -sticky nesw

set array [::model::mdlArray .dlg.frm.array entArray "ic_value" ]
grid $array -row 0 -column 0

entArray ReleaseHandle

Errors

Returns the path to a mdlArray widget if successful, otherwise an error code.