mdlIModel GetCurrentAnalysis

Gets the variable name of the current analysis.

Syntax

mdlIModel_handle GetCurrentAnalysis

Application

MotionView Tcl Query

Description

This command retrieves the variable name of the current analysis. If required, the variable name can be stored. This command is useful only when there are analysis entities already present. To check this, go to the SYSTEMS/ANALYSES panel and check to see if there are any analysis entities present.

Example

To get the variable name of the analysis which you are currently working on (load the slider_crank.mdl file):
hwi OpenStack
hwi GetSessionHandle mySessionName 
mySessionName GetProjectHandle myProjectName 
set activePageNum [myProjectName GetActivePage]
myProjectName GetPageHandle myPageName $activePageNum
set activeWinNum [myPageName GetActiveWindow]
myPageName GetWindowHandle myWindowName $activeWinNum
myWindowName GetClientHandle myClientName 
myClientName GetModelHandle myModelName 
myModelName GetCurrentAnalysis
myModelName ReleaseHandle
myClientName ReleaseHandle
myWindowName ReleaseHandle
myPageName ReleaseHandle
myProjectName ReleaseHandle
mySessionName ReleaseHandle
hwi CloseStack

Errors

None.