VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA - BEGIN PLOT - MESSAGE BOX

1 REPLY 1
Reply
Message 1 of 2
dimsag
392 Views, 1 Reply

VBA - BEGIN PLOT - MESSAGE BOX

Hi, 

Fisrt of all, i am not expirienced with VBA at all..

 

The problem is that i forget to check some things before begin to plot.

So I want, when i press Plot command, to appear a Message box  which tells me what i have to check before.

 

For example:

 

ATTENTION

 

"Hey dummy, I hope you checked ..."

1 REPLY 1
Message 2 of 2
norman.yuan
in reply to: dimsag

Well, with VBA, showing messagebox when Plotting is to start is one thing, one easy thing, but if the user is able to stop the plotting is another thing, not possible thing.

 

You can add code in AcadDocument.BeginPlot to ckeck something with the drawiing, and then show a messagebox to call the user a "dumb axx", however, the user could do nothing to stop the started plotting, so, not only the user is dumb, the coder of this prompt now is also dumb.

 

With VBA there is no way to stop the plotting process once the BeginPlot event is reached.

 

Your options would be to overrite the built-in plot/print command with your own; or use ObjectARX/.NET API, where you can easily intercept into "Plot/Print" command and veto it if something is not up to requirement.

Norman Yuan

Drive CAD With Code

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost