

#DRAWING FOR DUMMIES PDF PDF#
Now to use the Save SOLIDWORKS Drawing to PDF macro efficiently you will need to customize a Macro button/hotkey within SOLIDWORKS: Running the Macro with a Quick Access Button: Replace the default code with the “Sample Code” shown above and S ave.Ĭongratulations! You have just created a usable macro from the source code. Once you have saved the macro, a Visual Basic for Applications Dialog box will open with the default code below:.Workaround: Send them the code, so they can create the macro on their own local machine.IF your coworkers are using a DIFFERENT version of SOLIDWORKS, or a different installation directory – It may cause reference errors If this macro is being shared with others within your network, make sure to save it in a Shared network location.This brings up the Folder browser dialog prompting you to save the file.Launch SOLIDWORKS and navigate to Tools > Macro > New The above code was altered so that along with saving the Drawing file, it also exports a PDF of that drawing using the system default settings. strFilename, 0, 0, swExportPDFData, 0, 0 Set swExportPDFData = swApp.GetExportFileData(1) StrFilename = Left(strFilename, Len(strFilename) - 6) & "pdf" Status = swModel.Save3(swSaveAsOptions_e.swSaveAsOptions_Silent, errors, warnings) Create a Macro button and a hotkey for the Macroĭim swExportPDFData As SldWorks.ExportPdfData.Modify the macro to integrate it within your process workflow.Let’s take a look at one particular Macro - Save SOLIDWORKS Drawing to PDF

A lot of these Macros are published online by various users, but be mindful as the code published is SPECIFIC to their machine and environment and might not be the same for you. Usually when we want to speed up process tasks in SOLIDWORKS, we tend to search for Macros that can do the task for us so we can decrease our process time.
