Captureing Events

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
Reply to
kmcdermot
Loading thread data ...
There's an example for events on SW-site...that's a good start. I think it was for VB.
Reply to
Markku Lehtola
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".)
Reply to
That70sTick
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
Reply to
CS

PolyTech Forum website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.