Captureing Events

Jan 24, 2006 3 Replies

I am new to event programming and am having problems figuring out how to create a program that will run another program whenever the save or saveas command is used. Does anyone know of sample code that would point me in the right direction?



Thanks, Kyle



There's an example for events on SW-site...that's a good start. I think it was for VB.

If you want to constantly monitor for events, you should make an add-in. Keeping a macro on to monitor events eats up a lot of processor bandwidth and is not as reliable.

Get familiar with the "Withevents" option when defining object variables. You need to specify this, or you simply will have no access to an object's event triggers.

I have a VB6 template for creating addins from macros. It is on my website somewhere, . (I can't remember the exact link, I am in China at the moment and can not get access to my own site over the "Great Firewall of China".)

You can also download the SW2006 SDK from solidworks this will automatically setup an addin and gives you the options to setup events and the like

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required