AnsweredAssumed Answered

Macro to save PDF in dynamic location

Question asked by Thomas Hotchkin on Jan 14, 2015
Latest reply on Jan 15, 2015 by Thomas Hotchkin

Hi,

 

All the Solidworks (and related) files I use are setup similar to below:

00-Category/00-Product/Parts/00-Subassembly/part.sldprt

00-Category/00-Product/PDFs/00-Subassembly/part.pdf

00-Category/00-Product/Drawings/00-Subassembly/part.slddrw

00-Category/00-Product/DXFs/00-Subassembly/Flat Pattern-Part.dxf

 

I would like to write a macro to update all the PDF and DXF files automatically. So it needs to find all parts in a directory and if its sheet metal export the flat pattern to the same file path but replacing Parts with DXFs. Same for drawings to PDFs. If I could set this up to automatically update files periodically that would be even better.

 

I have some C# experience but have never done anything with macros in Solidworks so would anyone be able to help me out a bit?

Thanks.

Outcomes