|
<< Click to Display Table of Contents >> Navigation: Programming Mechworks PDM > DBWCommandShell > Commands Reference > CADSystem > SWSaveAs |
Saves with a specified name the currently opened SolidWorks file.
call DBWShell("SWSaveAs NewFile [SaveAsCopy[PDFExportInColor[PDFExportEmbedFonts[PDFExportHighQuality[PDFExportPrintHeaderFooter[PDFExportUseCurrentPrintLineWeights[SaveAs3DPDF[EDrawingSaveAllSheets]]]]]]]]" )
NewFile |
Full path of a new SolidWorks file. |
|---|---|
SaveAsCopy |
Optional. |
PDFExportInColor |
Optional. |
PDFExportEmbedFonts |
Optional. |
PDFExportHighQuality |
Optional. |
PDFExportPrintHeaderFooter |
Optional. |
PDFExportUseCurrentPrintLineWeights |
Optional. |
SaveAs3DPDF |
Optional. |
EDrawingSaveAllSheets |
Optional. |
Please note the use of "|" (vertical bar) characters instead of blanks in the file name.
the swSaveAs is used by the OnCreateMasterDrawing.lst for creating the initial PDF for the Master Drawing Mode.
The OnCreateMasterDrawing.lst may be adapted for adding/removing the new PDF parameters added to the swSaveAs command
@SWSAVEAS_SOLIDWORKS_ERROR |
the error code number |
|---|---|
@SWSAVEAS_SOLIDWORKS_ERROR_STRING |
the error description |
@SWSAVEAS_SOLIDWORKS_WARNING |
an optional warning code number |
The error and warning code numbers are the same as documented in the swFileSaveError_e and swFileSaveWarning_e Enumerations of the SolidWorks API Help file.
See SWSave command
Sub main()
DBWShell("SWSaveAs C:\temp\PDFtest.PDF 0 0 0 1 0 1 0")
End Sub