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