I have gone through the "My First Addin" tutorial and created the addin in VB. But what is not clear from the tutorial is, where do I place the compiled program? I know that for Vault Pro 2012, it goes in this folder:
C:\ProgramData\Autodesk\Vault 2012\Extensions and when Vault starts up, it loads automatically.
What about Inventor 2012? Where do the extensions need to be put? And how can it be disabled later - is this done by deleting the file from the said folder?
There is an explanation in Inventor API help doc. I copied it below for you:
The contents of a default .addin file are shown below.
<!--Created for Autodesk Inventor Version 16.0-->
The common things to change are the DisplayName and Description which are both used in the Add-In Manager. The field youíll need to edit is the value for the Assembly element. This needs to be the full path to your add-in dll. In the example above it is InventorAddIn1.dll but it needs to be changed to C:\MyAddIns\AddIn1\InventorAddIn1.dll, or whatever the actual path and name of your add-in is.
The final step in getting your add-in to run is to place the files in the correct location. Your add-in dll can exist in any location since the .addin file specifies the location of the add-in. The .addin file must be copied to a specific directory. You have different options depending on the loading behavior you want.
Copying your .addin file to the locations listed below will allow your add-in to be loaded for all versions of Inventor. Inventor will read the ìSupportedVersionVersionXXX? portion of your .addin file to determine which versions of Inventor should load the addin.
Windows XP C:\Documents and Settings\All Users\Application Data\Autodesk\Inventor Addins\
Windows 7/Vista C:\ProgramData\Autodesk\Inventor Addins\
Copying your .addin file to the locations listed below will cause your add-in to be loaded only for that version of Inventor. The value of the ìSupportedSoftwareVersionXXX? setting in the .addin file is ignored, if present.
Windows XP C:\Documents and Settings\All Users\Application Data\Autodesk\Inventor 2012\Addins\
Windows 7/Vista C:\ProgramData\Autodesk\Inventor 2012\Addins\
Copying the .addin file to the locations list below will cause the add-in to only be loaded for that particular user. If a user uses the Add-In Manager to make a change to how an add-in loads and the .addin file exists in one of the directories described above, the .addin file is copied to this per-user directory and updated with the changes specified in the Add-In Manager. This will override the settings in the orginal .addin file.
Windows XP C:\Documents and Settings\Application Data\Autodesk\Inventor 2012\Addins\
Windows 7/Vista C:\Users\AppData\Roaming\Autodesk\Inventor 2012\Addins\
As long as the manifest is embedded in your add-inís dll, your .addin file is in one of the directories specified above, and the .addin file correctly points to the location of your addin dll it should load.
In brief, you can save your .dll anywhere, but its path should be write in Assembly element in .addin file, and .addin file should be saved in specified place depends on it's version independent/version dependent/Per User.
Yes. The file name format is Autodesk.SampleAddin.Inventor.addin.
Replace above "SampleAddin" with your addin application name.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.