::hwp::getCurrentSimulation

Returns the current simulation.

Syntax

::hwp::getCurrentSimulation

Application

HyperWorks Tcl Query

Description

This procedure implements minus options.

This procedure returns the list of subcases in the model.

If no window or page is given, then the active window and the active page are used.

Mandatory Arguments

None.

Optional Arguments

-page "pageID"
The page ID of where to add the model.
-type "name or id"
Names or IDs returned by the command (the default return type is ID). The ID is the index in the simulation list. This is unique for simulations.
-window "windowID"
The window ID of where to add the model.

Returns

The current subcase.

Example

set currentSimulationName [::hwp::getCurrentSimulation -type name]