Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

DWG Export Macro Displaying File Dialogs for Each Sheet in Inventor 2019

Anonymous

DWG Export Macro Displaying File Dialogs for Each Sheet in Inventor 2019

Anonymous
Not applicable

I have a VBA macro in inventor that performs some formatting operations before exporting the current drawing as an AutoCAD DWG.  The export operation is accomplished with the TranslatorAddIn.SaveCopyAs() method.  The copy was copied from the DWG translator sample in the API documentation.

 

We just updated from Inventor 2016 to Inventor 2019 a few days ago.  This macro was developed and worked fine (and still does) on Inventor 2016.  However, in Inventor 2019, the SaveCopyAs() method brings up a file dialog for each sheet asking to confirm the filename.  I don't want any dialogs to come up during the export process.  Has something changed in 2019 that makes this not work the way it used to?

 

I have attached the *.ini file that is being used for the export options by the macro.

0 Likes
Reply
466 Views
3 Replies
Replies (3)

Anonymous
Not applicable

I tried adding:

ThisApplication.SilentOperation = True

before my SaveCopyAs() call.  But that had no effect.

0 Likes

Anonymous
Not applicable

I'm still looking for a solution to this.  I haven't been able to find any answers on how to fix this.

0 Likes

skyngu
Collaborator
Collaborator

have you tried "doc.saveas"?

 

SaveAs(FileName As String, SaveCopyAs As Boolean)

Autodesk Inventor Professional 2019
0 Likes