GetState
Returns the name of the active Structured State. The state of the commands are specified during their creation, so that at runtime, the groups of commands may be activated or deactivated using the SetState scripting command or the ActiveState property of the DgnEngineControl object in the MyCommands Advanced Scripting editor.
Syntax
GetState() As String
The GetState function returns the string containing the name of the active state. If there is no state active, the returned value is an empty string.