::UpdateCurrentPanel
This command reloads the current panel for the current solver mode if a current panel is displayed. If there was no panel displayed when this procedure is called, nothing happens. If the solver mode was changed while a panel was displayed, this procedure will reload the panel for the updated solver mode (in case the panel was solver-specific).
Syntax
::model::UpdateCurrentPanel
Application
MotionView Tcl GUI
Description
This command reloads the current panel for the current solver mode if a current panel is displayed. If there was no panel displayed when this procedure is called, nothing happens. If the solver mode was changed while a panel was displayed, this procedure will reload the panel for the updated solver mode (in case the panel was solver-specific).
Example
hwi GetSessionHandle sess1
sess1 GetProjectHandle pro1
sess1 ReleaseHandle
pro1 GetPageHandle pa1 [pro1 GetActivePage]
pro1 ReleaseHandle
pa1 GetWindowHandle win1 [pa1 GetActiveWindow]
pa1 ReleaseHandle
win1 GetClientHandle mcl
win1 ReleaseHandle
mcl GetRootObjectHandle mo
mo InterpretEntity dfs DeformableSurface defsur_0 "\"DefSurface 0\"" NATURAL 1 1 MARKER
dfs ReleaseHandle
mo ReleaseHandle
mcl SetSolverMode "MotionSolve"
::model::SelectItems MODEL.defsur_0
tk_messageBox –message "Now, the solver mode will change and the panel should get updated ... "
mcl SetSolverMode "ADAMS"
mcl ReleaseHandle
::model::UpdateCurrentPanel
Errors
Returns 0 if successful, otherwise an error code.