Multi-Save Macro?

In my workplace, we save CAD to different locations, with different formats.

EX. One machining center requires a dwg vs another machining center requiring dxf.

I have kindergarten level knowledge when it comes to API and macros but I've trying to figure out if its possible to create a user form macro to save in the varying locations, with the correct formats, with as few clicks as possible. Any ideas?

Answers 3
AT
AT 2021-05-03 Best Answer

This macro does just that: https://www.codestack.net/solidworks-api/import-export/export-multi-formats/. 

 

There are no user form as you can setup naming template with variables, such as property name. But you can tweak the macro to have form if needed.

MP
MP 2021-05-03

Its definitely possible. you'll want to take a look at this page of the api. There's a couple of examples attached.
http://help.solidworks.com/2016/english/api/sldworksapi/SOLIDWORKS.Interop.sldworks~SOLIDWORKS.Interop.sldworks.IModelDocExtension~SaveAs.html

AR
AR 2021-05-03

Thank you for the lead!  It is really appreciated.