9.0

291
SetNaturalText 1
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
.
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.
Any previous Structured State will be deactivated together with associated commands.
ShellExecute
Loads an application. If a copy of the application is already running, it loads a new instance of the application.
Syntax
ShellExecute "commandLine"[, windowStyle[, "directory" ["applicationName"]]]
Argument Description
commandLine Specifies the executable file to run and any command line arguments. You do
not have to include the application's .exe extension. If commandLine does not
specify a full file path, the application must be in the the Dragon
NatuallySpeaking Program folder or in a directory that is searched when
Windows starts a program. You cannot use long file names or include spaces in
the executable path.
windowStyle Controls how the window appears when you activate the application. Must be
one of the following:
1, 5, or 9 default window size; active (default)
2 minimized window; active
3 maximized window; active
4 or 8 default window size; not active
6 or 7 minimized window; not active
directory Assigns a working directory for the application. The default is the directory