::Update

This command updates the display value in an mdlFileName widget from the value in the data member.

Syntax

::model::mdlFileName::Update path

Application

MotionView Tcl GUI

Description

This command updates the display value in an mdlFileName widget from the value in the data member.

Inputs

path
The full path to the mdlFileName widget of interest. This argument is the return value of the ::model::mdlFileName procedure used to create an mdlFileName.

Example

To update the value of 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

::model::GetHandleFromFullVarname text_handle MODEL.sa_0.ic_file.value
text_handle SetRawExpression "c:/temp.txt"

model::mdlFileName::Update $fn

text_handle ReleaseHandle
entArray ReleaseHandle

Errors

None.