- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So, I'm just getting started with Inventor API. I have built my first successful add-in, which creates a sketch with a circle that is defined by inputs from a form. When I first launched it, Visual Studio kicked back an error saying that the text in the text boxes in the form (I set the default values to 0 when designing the form), could not be converted to double, so for the time being so I could test it, I commented out the lines that Dim the values and replaced them with hard set numeric values and it worked. I guess I'll have to convert the strings to doubles, but that's not a big deal, I know how to do that.
The issue I'm having now is that when I make the changes to the VB code, save it, rebuild it, then launch the add-in through the debugger, Inventor launches and when I press the button for the add-in, it runs the old version, it did not update. Regardless of what I put in the form, it uses the hard set values that I had before. I did not change the name of anything, so it didn't create a new add-in, and when I went to the Inventor 2022 Addins folder, the time stamps on the files did reflect the time that I rebuilt the solution. I tried deleting all of the files in that folder and tried again, and it replaced all of the files as I was expecting, but the add-in still ignores the form values and uses the hard set values that aren't in the project anymore at all.
What do I have to do to get Inventor to get use the new version of the add-in? The project setting for Compile still shows the build output path for the one they showed to use on the KetivAVA video, which is:
C:\ProgramData\Inventor Addins\TestAddin
This folder one shows the currently compiled .dll file, but the one in
C:\Users\xxxx\AppData\Roaming\Autodesk\ApplicationPlugins\TestAddin
This folder only shows the first successful run where I unblocked it, it hasn't been getting updated. Am I sending these to the wrong folder, or is there a way to force Inventor to fetch the updated .dll file from the ProgramData folder? I tried unloading, reloading, blocking, unblocking, and restarting Inventor and it is still using the old version. I wouldn't think I would have to manually copy and replace the file in that folder each time I make a change.
Thank you for any information you can provide.
Solved! Go to Solution.