• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

macro ad evento

  • Thread starter Thread starter strudeldemele
  • Start date Start date

strudeldemele

Guest
Good morning.
I have the need, in solidworks 2017, to run a macro after running the save or save command as. (automatically)
you know if and how can you do it?

thanks for the friendly collaboration
 
by shirokko
thanks for the answer, in fact it could be a solution, the problem is that all I would need to interface with a management program (different , orders etc.) already existing and built around a cad 2d to say little archaic; the intention is to update the exported files of the separate or go fishing the direct values from the components (file properties) or the table of the separate inserted together.
for this thing follows me a programmer who doesn't know solidworks, if there were any way to extract data from some temporary files or otherwise would be the best solution.

thanks for the friendly collaboration
Good day to all
 
You can do it quietly.
you need to create an addin (it is a dll file that is recognized by solidworks as an integral part of the program, then see it in the additions) that reacts to the events "save" and "save with name", manageable in a distinct way in the 3 environments, table, part or together.
to these two events you associate the code to run or the macro to launch.
with this system you no longer care to press buttons because it reacts solidworks to each save.
can be turned off or activated by going into the additions.

is what is triggered by plug-in savebackground 3.0 in the discussionhttps://www.cad3d.it/forum1/threads/solidworks-doppio-salvataggio.46279/page-2where immediately before the rescue event or immediately after (or before and after) one or more macro can be hooked.

savebackground 3.0 is not programmed to react to the saveas event because it is created for other needs.

solidworks is one of the few programs to make available almost all bees so you can get rid of it. .. without having to activate paid licenses access it.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top