Reputation: 23
I would like to know the procedure for creating an Inventor Add-in using C# or VB.NET. Any settings to be made or how?
I've tried using templates from from various sources, but I got an error. If anyone has successfully done the process, it would be so helpful if you would guide me through it.
Thanks in advance.
Upvotes: 0
Views: 6776
Reputation: 495
This is a great resource for learning to create add-ins: Autodesk University: Creating Add-Ins for Inventor by Brian Ekins (AU Las Vagas 2018).
He goes in detail into accessing and navigating the API, getting Visual Studio, getting an add-in template for Visual Studio, creating an add-in, and adding commands to it.
Another great resource is the Inventor API Reference Manual. I use this all the time to navigate the API and understand what various methods and properties do. With the "Objects" node expanded, just use Ctrl+F (Find) and type in what you're looking for. Then use the links to navigate backward and find how to access said object.
Upvotes: 2
Reputation: 1117
I expect you have Inventor (2020) and VisualStudio (2017) installed.
Install DeveloperTools from SDK (C:\Users\Public\Documents\Autodesk\Inventor 2020\SDK). It creates new project templates to VS. Default template is not perfect, but works.
Create new project from template "Autodesk Inventor 2020 Addin".
That's all
Some troubleshooting is described here https://ekinssolutions.com/addins-visualstudio2017/
Upvotes: 2