IntelliCAD 11.1 Object Library | |
BeginOpen Event | |
See Also |
- DrawingName
- The name of the drawing to be opened
Application Object : BeginOpen Event |
Description
Occurs when receives a request to open drawing.
Syntax
Visual Basic |
---|
Public Event BeginOpen( _ ByVal DrawingName As String _ ) |
Parameters
- DrawingName
- The name of the drawing to be opened
Remarks
Note that EndOpen occurs when IntelliCAD completes opening the drawing.
Example
The following example illustrates using the BeginOpen event with an Application object. To use the BeginOpen event with a 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_BeginOpen(DrawingName)
' This example receives an Application BeginOpen event.
' This event occurs when a drawing is requested to be opened.
' To fire this event:
' 1) Run init() function to initialize App variable.
' 2) Open a drawing.
MsgBox "A drawing is about to be opened."
End Sub