Description
Occurs when a new drawing is about to be created.
Syntax
Visual Basic |
---|
Public Event NewDrawing() |
Example
The following example illustrates using the NewDrawing event with an Application object. To use the NewDrawing 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_NewDrawing()
' This example receives an Application NewDrawing event.
' This event occurs immediately before a new drawing is created.
' To fire this event:
' 1) Run init() function to initialize App variable.
' 2) Create a new drawing.
MsgBox "A new drawing is about to be created."
End Sub