5 Replies Latest reply on Jun 19, 2018 5:19 AM by Deepak Gupta

    How to export special Sheets of a drawing to PDF?

    Langenberg Janik

      I tried to export a defined array of sheets of a drawing like shown here: 2013 SOLIDWORKS API Help - Save File as PDF Example (VBA)


      But with the following code value always gets FALSE:


      strSheetName(0) = "Blatt1"

      strSheetName(1) = "DXF"


      varSheetName = strSheetName

      value = IExportPDFDataObject.SetSheets(swExportData_ExportSpecifiedSheets, varSheetName)


      The names of the sheets is correct. Instead of an automatic export I get a litte windows to select the sheets in the futher program.

      Is it generally possible?