IntelliCAD 11.1 Object Library | |
EndCommand Event | |
See Also |
- CommandName
Document Object : EndCommand Event |
Description
Occurs when a command completed.
Syntax
Visual Basic |
---|
Public Event EndCommand( _ ByVal CommandName As String _ ) |
Parameters
- CommandName
Example
The following example illustrates using the EndCommand event with an Application object. To use the EndCommand event with a Document or Workspace object, you do not need to initialize the App variable.
Public WithEvents App As Application
Sub init()
'To receive and handle events from IntelliCAD, first initialize the App variable.
Set App = ThisWorkspace.Application
End Sub
'Event handler
Private Sub App_EndCommand(CommandName)
' This example receives an Application EndCommand event.
' This event occurs when a command is completed.
' To fire this event:
' 1) Run init() function to initialize App variable.
' 2) Run a command to completion.
MsgBox "A command is finished."
End Sub