::mdlFileName

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

Syntax

::model::mdlFileName path entityHandle dm args

Application

MotionView Tcl GUI

Description

This command creates an mdlFileName widget that is tied to a FileName 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 mdlFileName widget's behavior.

Example

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

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

set fn [::model::mdlFileName .dlg.frm.fn entArray "ic_file.value" -editbar ""]
grid $fn -row 0 -column 0

entArray ReleaseHandle

Errors

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