IntelliCAD 11.1 Object Library | |
BeginCommand Event | |
See Also |
- CommandName
- The name of the command.
Application Object : BeginCommand Event |
Description
Occurs when receives a command.
Syntax
Visual Basic |
---|
Public Event BeginCommand( _ ByVal CommandName As String _ ) |
Parameters
- CommandName
- The name of the command.
Example
The following example illustrates using the BeginCommand event with an Application object. To use the BeginCommand 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_BeginCommand(CommandName)
' This example receives an Application BeginCommand event.
' This event occurs immediately after a command is called.
' To fire this event:
' 1) Run init() function to initialize App variable.
' 2) Call a command.
MsgBox "A command was just called."
End Sub