Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.
Hello all,
I found that the add-in we've been maintaining for the last 10+ years was still referencing Autodesk.Inventor.Interop.dll v16.0. I tried updating it to v24.2, and while everything compiles just fine, the OnFileSaveAsDialog event is not longer being caught. Other events (document save, document open, document initialize, etc.) all seem to be fine. I tried using several other API versions, going all the way back to 17.0 and they all appear to have this issue.
Some other posts reporting similar issues:
https://forums.autodesk.com/t5/inventor-customization/onfilesaveasdialog-event-problem/m-p/8151528
I'm using Inventor 2020 and VB.NET.
Based on the first link above, I thought I might try disabling all of the additional add-ins. This didn't fix the issue. Other than the add-in I develop, no other 3rd party add-ins are installed anyway.
My symptoms were a little different than the second link above (the add-in loads on startup automatically just fine), but I tried updating the GUID as a long shot. No change.
Any ideas?
Thanks,
Kerry
Solved! Go to Solution.
Solved by etckerry. Go to Solution.
can you upload the vb.net project with the add-in?
Regards,
Arthur Knoors
Autodesk Affiliations:
Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!
! For administrative reasons, please mark a "Solution as solved" when the issue is solved !
It took a bit to thin it out, but the attached project does demonstrate the issue. To reproduce:
1. Create new file -> observe message box for "OnActivate" appear twice
2. Click save -> expect message box for "OnFileSaveAsDialog" but instead get standard save as dialog
Thanks,
Kerry
After some experimenting, I was able to determine the cause of my issue, although I still don't understand why. In case it helps anyone, I had to switch the "Embed Interop Types" option to "False" for the autodesk.inventor.interop reference.
This is done by expanding "References" under the relevant project in the Solution Explorer pane, then selecting "autodesk.inventor.interop." In the Properties pane (if not docked, right-click on "autodesk.inventor.interop" and choose "Properties"), switch "Embed Interop Types" to "False."
-Kerry
Thanks for this! I feel like an idiot because I have run into this in the past when moving to a more recent API version. Much hair pulling averted by your follow-up.
Can't find what you're looking for? Ask the community or share your knowledge.