VB.net After print event

VB.net After print event

pball
Mentor Mentor
385 Views
1 Reply
Message 1 of 2

VB.net After print event

pball
Mentor
Mentor

I have part of my addin adding info to a drawing when it's printed or exported using the user event on activate command. It works quite well and now I would just like a method to remove that info after it is printed or exported.

 

I've looked at the user events for on start and stop command but I can't make heads or tails if that's what I really need. The only parameter those events include is the CommandID as CommandIDEnum and I can't find any info on those ID numbers.

 

What is a good way to run something after printing? I know there is an addin that does something similar so I'm sure there is a way. Thanks

Check out my style edits for the Autodesk forums
pball's Autodesk Forum Style
0 Likes
Accepted solutions (1)
386 Views
1 Reply
Reply (1)
Message 2 of 2

pball
Mentor
Mentor
Accepted solution
Well who'd of though on terminate command would be the compliment of on activate command. Joking aside that event is triggered when a command finishes or is canceled. So that lets me add my info and remove it after it's printed or exported and it also removes it if you cancel doing printing/exporting also.

Chalk up another self answered question lol
Check out my style edits for the Autodesk forums
pball's Autodesk Forum Style
0 Likes