Add-in

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am new to the Visual Basic.Net circuit. I have worked with VBA in Access and Inventor and Inventor's ilogic in the past. I have ilogic code that opens .dwgs for all compontents - assemblies, parts, anything that does not have "skel" in the name. A second piece of code then saves all the parts, prints the .pdfs of the drawings and closes all referenced files. It workes great, but my manager asked me to create an add-in for this. So, over the course of the last two weeks I have did multiple tutorials learning to program in VB.Net. I was went through the plug-in tutorials present on one of the posts. I successfully got a plug-in to work.
My next step was to try to get an add-in working correctly. I have hit some snags though. I found the "Inventor Add-in" for VBA and installed it on my computer. I am using VB 2010 Express, so I had to go through the alternate steps. After doing a build I have a .dll file, but no Add-in Definition File and no Manifest file either. How do I get this set up so it will installed corrrectly on the ribbon? The file types created in the bin folder were XML Document - No Name. A .dll with the project name, .pdb with the project name and .tlb with the project name.
How to Register/Unregister
=======================
1) Build Project;
2) Copy add-in dll file to one of following locations:
a) Anywhere, then *.addin file <Assembly> setting should be updated to the full path including the dll name
b) Inventor <InstallPath>\bin\ folder, then *.addin file <Assembly> setting should be the dll name only: <AddInName>.dll
c) Inventor <InstallPath>\bin\XX folder, then *.addin file <Assembly> setting shoule be a relative path: XX\<AddInName>.dll
3) Copy.addin manifest file to one of following locations:
a) Inventor Version Dependent
Windows XP:
C:\Documents and Settings\All Users\Application Data\Autodesk\Inventor 2012\Addins\
Windows7/Vista:
C:\ProgramData\Autodesk\Inventor 2012\Addins\
b) Inventor Version Independent
Windows XP:
C:\Documents and Settings\All Users\Application Data\Autodesk\Inventor Addins\
Windows7/Vista:
C:\ProgramData\Autodesk\Inventor Addins\
c) Per User Override
Windows XP:
C:\Documents and Settings\<user>\Application Data\Autodesk\Inventor 2012\Addins\
Windows7/Vista:
C:\Users\<user>\AppData\Roaming\Autodesk\Inventor 2012\Addins\
4) Startup Inventor, the AddIn should be loaded
To unregister the AddIn, remove the Autodesk.<AddInName>.Inventor.addin from above mentioned .addin manifest file locations directly. I would be most grateful if anyone can point me in a good direction.