Outputting SOLIDWORKS files to different formats using SOLIDWORKS eDrawings API
eDrawings enables exporting of the SOLIDWORKS files to the foreign format listed below:
{ width=450 }
Export can be performed via IEModelViewControl::Save eDrawings API method.
In addition to the above opened file can be printed via IEModelViewControl::Print5 eDrawings API method.
Both the exporting and printing APIs are asynchronous. It is required to track the corresponding finish events to find when the process is completed. Use the OnFinishedPrintingDocument and OnFinishedSavingDocument for tracking the finishing of printing and saving respectively.
The finish events will not be sent in case of an error. In this scenario it is required to handle the OnFailedSavingDocument and OnFailedPrintingDocument events.