hwi GetSessionHandle

Gets a handle to the current session.

Syntax

hwi GetSessionHandle sessionhandle

Application

HyperWorks Tcl Query

Description

This command retrieves a handle to the current session.
Note: An hwi instance is always available.

Inputs

sessionhandle
The user-defined name of the session handle that you want to create with this command.

Example

To get a session handle with the name "mySession":
hwi GetSessionHandle mySession

Error

Returns the session handle name if successful; otherwise, an error message.