I am creating a 3D PDF using the IModelDocExtension.SaveAs method.
If you operate as follows, it is in trouble that results different from the expected result are returned.
- Open the drawing file.
- Save the drawing file as fileneme.PDF in the IModelDocExtension.SaveAs method.
- Close the drawing file.
- Start up Acrobat Reader DC and open filename.PDF.
- Open part file with SOLIDWORKS.
- Save the part file as fileneme.PDF in the IModelDocExtension.SaveAs method.
When the sixth operation is performed in the above procedure, since filename.PDF is opened in Acrobat Reader DC, it can not be overwritten with exclusive control.
However, the Return Value of SaveAs method is True (success), Errors and Warnings are both 0.
If filename.PDF was opened by another application, the return value of the method must be False.
Is this a bug?
SOLIDWORKS version is 2016 SP 5.0.