AnsweredAssumed Answered

Need macro to save PDF & DXF locally

Question asked by Alex Ernsberger on Jul 11, 2014
Latest reply on Jul 11, 2014 by Alex Ernsberger

Hello I've never written a macro for SW before. I did some google and didn't find what I want. When I'm done creating my solidworks drawing I need to spit out the file as both a PDF and a .DXF. Both files need to be saved in the same folder where I've got the drawing file saved already and will have the same filename as the drawing file which is also the filename for the relevant part/assembly I've got inserted. The problem I've got is the macros I've found all pre-define the save path and filename in the code. I need it to dynamically grab those from my drawing file.


Oh and bonus points to anyone that writes a macro that does this AND opens up the part/assembly I've inserted and saves it out as a .STEP file. I don't have any actual points or cookies though.