beginplot event
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
beginplot event

 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA
Author Message
natanz
Guest





Posted: Mon Aug 08, 2005 8:10 am    Post subject: beginplot event Reply with quote

I have read through the newsgroup on this topic, but i am still at a
loss. I have written a small program that i want to run whenever a
user plots. I know the code works, but it only seems to work when it
is in a module in the active drawing. It seems like i may be missing
something about initializing events in a class module. Can someone
explain, or send me to resources where i can get even more dangerous?

thanks.

Back to top
humberto



Joined: 26 Aug 2005
Posts: 6

Posted: Fri Aug 26, 2005 9:19 am    Post subject: re:beginplot event Reply with quote

Put this in thisdrawing model

Private Sub AcadDocument_BeginPlot(ByVal DrawingName As String)
'call your program
End Sub
Back to top
View user's profile Send private message
Mahersy



Joined: 23 Jan 2006
Posts: 1

Posted: Mon Jan 23, 2006 6:16 am    Post subject: Reply with quote

You could set up a class module and add this

Public WithEvents AcadApp As AcadApplication ' Use with Application

Then use the event

Private Sub AcadApp_BeginPlot(ByVal DrawingName As String)

To capture the plot.

Note: that in 2004 on if you want to capture the event background plot will have to be turned off.
To grab the object you could use the getobject method or thisdrawing.application method to set acadapp

Back to top
View user's profile Send private message
 
Post new topic   Reply to topic    CADForums.net Forum Index -> VBA All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB