Structural, content-preserving transformations from PDF to PDF.Įxtraction and analysis tool, handles corrupt and malicious PDF documents. Import from PDF (with restrictions) (after installing an extension), export as PDF including PDF/A.Ĭonverts PDF to other file format (text, images, html).Ĭonverts PostScript to (other) vector graphics file format. Import from PDF (extension included by default), export as PDF including PDF/A. View, create, manipulate, print and manage files in PDF.Ĭonverts PDF to raster images and vice versa. Converters – to allow users to convert PDF files to other formats.Editors – to allow users to edit or otherwise modify PDF files.Readers – to allow users to open, read and print PDF files.Creators – to allow users to convert other file formats to PDF.Now Control P will save a PDF if a drawing file is open.Press any combination you want, in this case we will do (Ctrl + P) for Printing to PDF.Right click on the Task bar > Customize > Keyboard Tab > Scroll to the very bottom until you see the row for the Macro button.If there is more than one method select the appropriate method from the list. Beside Macro Textbox, Click the browse button > select the macro.
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.