create add-in with vb.net code

create add-in with vb.net code

mindaV3J2J
Enthusiast Enthusiast
1,302 Views
4 Replies
Message 1 of 5

create add-in with vb.net code

mindaV3J2J
Enthusiast
Enthusiast

I have working vb.net code for autodesk inventor and I want to make it run through an add-in on inventor. How can i do this? Most examples online make local buttons with VBA.

0 Likes
Accepted solutions (2)
1,303 Views
4 Replies
Replies (4)
Message 2 of 5

Curtis_Waguespack
Consultant
Consultant
Accepted solution

Hi @mindaV3J2J 

 

  • Go to this folder where 20xx is your version of Inventor:
    • C:\Users\Public\Documents\Autodesk\Inventor 20xx\SDK
  • If you have not run the "developertools.msi" before then double click on it to extract the contents.
  • Once you have done that you will have a folder called "DeveloperTools"
  • Go to:
    • C:\Users\Public\Documents\Autodesk\Inventor 20xx\SDK\DeveloperTools\Samples\VB.NET\AddIns\SimpleAddIn
  • In that folder, see the file called: Readme.txt
  • Follow the instructions in that file to load the add-in and see how it works.
    • It creates a pair of buttons in the sketch tab of the part environment
  • Then load the solution called "SimpleAddIn.sln" and examine the code to see how the button is set up, etc.

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

 

 

EESignature

0 Likes
Message 3 of 5

mindaV3J2J
Enthusiast
Enthusiast
Accepted solution

Hi,

 

I've begun this process already; however, it wont let me run the file due to the error below. I may have downloaded something beforehand messing something up. Do you know how I can fix this?

 

mindaV3J2J_0-1692110826935.png

 

0 Likes
Message 4 of 5

mindaV3J2J
Enthusiast
Enthusiast

actually i figured it out. Thanks! I had to uninstall certain files I just didn't know their names beforehand.

0 Likes
Message 5 of 5

Frederick_Law
Mentor
Mentor

The SDK only see older version of VS and it won't do anything for Community.

Attached my VS template.  Borrowed codes from lots of places.

This is one of them: https://modthemachine.typepad.com/

Here is my Github: https://github.com/Pineapple-RX93