Atuo running a macro after a part has been saved
Atuo running a macro after a part has been saved
(OP)
I want to run a macro after a part has been saved to record the file name in a database. I've got the recording bit working fine I just need to get it to autorun. I'd rather it ran from the standard save and saveas and not need a special save macro. Can anyone point me to some hints?






RE: Atuo running a macro after a part has been saved
Event-triggered routines are best in an addin. You can have a macro constantly running to catch events like a file save, but that takes resources and is prone to trouble.
http://www.EsoxRepublic.com-SolidWorks API VB programming help
RE: Atuo running a macro after a part has been saved
Matt Lorono
CAD Engineer/ECN Analyst
Silicon Valley, CA
Lorono's SolidWorks Resources
Co-moderator of Solidworks Yahoo! Group
and Mechnical.Engineering Yahoo! Group
RE: Atuo running a macro after a part has been saved
Not used add-in before. Is it easy, or even possible?
I did consider the macro button option but it will get missed a few times. I like to make these sort of thing completly invisible to the user rather than adding extra thing to do. I don't mind updating the database often, its pretty solid.
RE: Atuo running a macro after a part has been saved
You can migrate macros to full VB, then write added code for macro functinality. I did a presentation on this once. It is posted on my website.
http://www.EsoxRepublic.com-SolidWorks API VB programming help