Inventor Crashes after 2021 update on Opening an idw file with breaks in the view. (VBA)

Inventor Crashes after 2021 update on Opening an idw file with breaks in the view. (VBA)

shastu
Advisor Advisor
423 Views
2 Replies
Message 1 of 3

Inventor Crashes after 2021 update on Opening an idw file with breaks in the view. (VBA)

shastu
Advisor
Advisor

This code worked just fine in Inventor 2019, and in most instances works just fine in 2021.  Some idw files with Breaks in the view crash Inventor.  Other files with Breaks in the view don't cause the crash so I am not sure what the difference is.  I have attached my code in a word document and I have attached some sample files.  If you copy and paste my code into the default.ivb and then open file 5914-446sks.iam.  Then run the code and it will crash.  If you open the idw file there doesn't seem to be anything wrong with it, and if you remove the breaks in the views, then it won't crash.

0 Likes
424 Views
2 Replies
Replies (2)
Message 2 of 3

shastu
Advisor
Advisor

I forgot to mention.  When you run the code you will see a custom save as dialog  box.  Go ahead and change the name and then click on the Save button.  Then it will continue.

0 Likes
Message 3 of 3

shastu
Advisor
Advisor

If I change the line in my code and replace False, with True then it doesn't crash any more but I don't understand why.

Set oDocIDW = ThisApplication.Documents.Open(OrigFileLoc, False)

0 Likes