SetState
Activates the specified Structured State and the commands associated with it as long as their availability also matches the foreground window. The states of the commands are specified during their creation, so that at runtime, the groups of commands can be activated or deactivated using the SetState scripting command or the ActiveState property of the DgnEngineControl object in the MyCommands Advanced Scripting editor.
Any previous Structured State will be deactivated together with associated commands.
Syntax
SetState( NewState As String )
Argument | Description |
---|---|
NewState |
The name of the state to activate. If an empty string is specified, any current active state will be deactivated. Note: The state name cannot contain space or punctuation marks. State names are limited to 33 characters. |