Inventor 2025 brings us a big change. The API has migrated from .Net Framework to .Net core 8. And it's recommended to port all our addins to ".Net Core 8". I migrated a couple of my addins using a guideline but it was not as complete as I would like. Therefore I wrote down what worked for me in this post. (The official Autodesk article can be found here.)
This tutorial is about writing your own addin. There are other tutorials out there. This tutorial is not about doing it the most simple way. There are Visual Studio templates out there that will set up most stuff for you (https://ekinssolutions.com/nifty_addin_template/). In this tutorial, we will set up everything manually. I want to show you all the settings. That has the advantage that you are not limited to specific settings, Inventor/Visual Studio versions or programming language.
This tutorial is about writing your own addin. There are other tutorials out there. This tutorial is not about doing it the most simple way. There are Visual Studio templates out there that will set up most stuff for you (https://ekinssolutions.com/nifty_addin_template/). In this tutorial, we will set up everything manually. I want to show you all the settings. That has the advantage that you are not limited to specific settings, Inventor/Visual Studio versions or programing language.
This is a follow-up of my tutorial: ”Creating an Inventor addin”. In one of the chapters I wrote how to add a button to your addin. But I left out how to add an icon to that button. Because it need some explanation and I did find the tutorial already quite long.
This is a follow-up of my tutorial: "Creating an Inventor Addin". Writing code usually involves a lot of testing. In the case of writing addins this can become a pain. Each time you want to test your addon you need to restart Inventor and maybe open a document.
This is a follow-up on my tutorials on creating an addin. In the 1e part, we created an addin that searches all iLogic rules. We used an inputbox to get input from the user. We used notepad to show the results to the user. We can do this in a more elegant way by creating a custom form (window).
Every once and a while someone comes to the forum with the same problem: "My addin will not load." Figuring out what the problem is without the code is hard. But this is the checklist that I use to figure out what the problem is.
In the post "Adding a form to your addin." we created a simple form/window. But there are problems with those windows. They are never a part of Inventor and therefore always in the way of your Inventor screen or the other way around. (They are in front or at the back of your Inventor Window.) A dockable window can help in those situations.
Brian Ekins wrote a great article on this topic. You can find it here:
https://modthemachine.typepad.com/my_weblog/2015/09/improving-your-programs-performance.html
I’m not going to repeat his article here. But I found a couple of other ways to optimize my code.
I maintain some add-ins and some tools. Most of those addins and tools deal with parameters and iProperties. I have been putting it for a long time but lately, I have been updating these tools to work with model states. In this post, I want to share some key learnings. I found that there are some things that you always need to consider when working with model data (like parameters and iProperies) in combination with model states.
Next year the company I work for will migrate to Inventor 2025. Although this might seem early, I want to start updating my add-ins now. However, there are some challenges. Until we migrate I need to support Inventor 2023. This means I need to support Inventor 2023 with .Net framework 4.7.2 and Inventor 2025 with .Net core 8.0. Now I have discovered that it's possible to target multiple .NET versions in a single project. This allows you to compile and debug for both .NET Framework and .NET Core.
Autodesk Inventor, Vault, Git, C#, vb, .net, php HTML, css, js
University computer science.
HBO Mechanical engineer.
MBO Fine mechanics.
Programmer and
Mechanical engineer
at Kelvion
(2016 - 20..)
Mechanical engineer
at Strukton
(2009 - 2016)
Mechanical engineer
at RDG-engineering
(2007 - 2009)
CNC Programmer
at VMC
(2005 - 2007)
volunteer
at Taizé
(2007)
Objectgeoriënteerd analyseren en ontwerpen, Objectgeoriënteerd programmeren in Java, Webapplicaties: de clientkant, Databases, Security Aware Programmer, Web Security Specialist