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