stop HTML reports appearing when importing STEP file

By Xiaodong Liang

Issue

When importing step file into Inventor programmatically,  sometimes we get HTML pages popping up with issues. Is the any way either programmatically or otherwise to stop these HTM reports appearing ?

Solution
During data translation, Inventor will create a Translation Report to record some translation information, and it’s embedded into the opened file, as following. If there is error during the translation, the report will pop up automatically to remind user of the error. If there is any error in the translation, the translation report (I mean “error report”.) will always pop up, and technically we don’t have any method to block it directly, but have workarounds.

clip_image002

To solve this issue, the only way is to forbid Inventor embedding the translation report, and the behavior is as following snapshot. (Reminder here: if use our workarounds, users are not able to see the report anymore unless roll back. So make sure the customer be aware of this risk.)

clip_image002[5]

 

  1. For Inventor 2009 SP2, Inventor 2010 and its SPs, the user can add an Environment Variable “TRANS_REPORT_OPTION” and set it to 2, and then restart Inventor. (If the user wants to get the report again, just delete the variable and restart Inventor.)

clip_image002[7]

  1. On Inventor 2010 Subscription build and above versions, the users can use the option to control it directly:  “EmbedInDocument”=false.

Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading