Bharat H S
Bharat H S

Reputation: 23

How to create an AddIn in Autodesk Inventor?

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

Answers (2)

Sigenes
Sigenes

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

Michael Navara
Michael Navara

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".

  • Go to project properties and remove or disable any post-build action (write EXIT to the first line)
  • Compile empty addin.
  • See the Readme.txt in the project and follow instructions for register/unregister addin.
  • Check that the addin can be loaded. You can use Inventor AddIn manager ("C:\Program Files\Autodesk\Inventor 2020\Bin\AddInMgr.exe"). Find and select your addin in the main window and check that the Location box is not empty.
  • Start Inventor and check that your addin is loaded correctly

That's all

Some troubleshooting is described here https://ekinssolutions.com/addins-visualstudio2017/

Upvotes: 2

Related Questions