AnsweredAssumed Answered

Bug in IModelDocExtension.SaveAs method

Question asked by Koji Eguchi on Nov 8, 2017
Latest reply on Nov 12, 2017 by Koji Eguchi

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.

  1. Open the drawing file.
  2. Save the drawing file as fileneme.PDF in the IModelDocExtension.SaveAs method.
  3. Close the drawing file.
  4. Start up Acrobat Reader DC and open filename.PDF.
  5. Open part file with SOLIDWORKS.
  6. 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.

Outcomes