Determines if Rhino is currently running a command. Because Rhino allow for transparent commands (commands that can be run from inside of other commands), this method returns the total number of active commands.
Rhino.InCommand ([blnIgnoreRunners])
blnIgnoreRunners |
Optional. Boolean. If true, script running commands, such as LoadScript, RunScript, and ReadCommandFile will not counted. The default is not to count script running command (true). |
Number |
The number of active commands. |
Dim intCommands
intCommands = Rhino.InCommand
if intCommands > 0 Then
Rhino.Print "Rhino is running " & CStr(intCommands) & " command(s)."
Else
Rhino.Print "Rhino is not running any command(s)."
End If