Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help with using SDK\DeveloperTools\Samples\VB.NET\AddIns

3 REPLIES 3
Reply
Message 1 of 4
waynehelley
613 Views, 3 Replies

Help with using SDK\DeveloperTools\Samples\VB.NET\AddIns

Hi all,

 

I have done lots of VB.Net programming with the Inventor API but I would like to learn how to create an Add-In which integrates into the Inventor Interface.

 

There are just a few things I don't understand.  The sample projects are Class Libraries, hence will output dll files when build.  How are the 'Visial Studio Add-in definition file's generated?

 

When I try build the sample projects on my machine, the Post-build events are causing an error (exited with code 9009).  What is it that these build events are actually doing?  I have a feeling this question might answer my first question too!

 

call "$(VS110COMNTOOLS)vsvars32.bat"
mt.exe -manifest "$(ProjectDir)My Project\SimpleAddIn.manifest" -outputresource:"$(TargetPath)";#2
tlbexp "$(TargetPath)"

 

Any help explaining the concepts would be much appreciated.  As would any advice on helping to get started.

 

Many thanks,

 

Wayne

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
Tags (2)
3 REPLIES 3
Message 2 of 4

From what I had done in enabling the VBAAutoMacros addin from the samples, I gathered the steps are this:

 

1. Use the Inventor Add-in templates to create your code.

2. Compile your code

3. Create a .addin file (or probably copy and change an existing one as necessary) - converting to a .txt, editting, and converting back works just fine. Ensure the GUID's used in them are consistent.

4. Move your .addin and the .dll file to the proper location as indicated in the samples (one to the Inventor\bin, one elsewhere).

 

I could be missing something, or this could just be for an unregistered addin. Should be a start though!

 

Good luck.


--------------------------------------
Did you find this reply helpful ? If so please use the 'Accept as Solution' or 'Like' button below.

Justin K
Inventor 2018.2.3, Build 227 | Excel 2013+ VBA
ERP/CAD Communication | Custom Scripting
Machine Design | Process Optimization


iLogic/Inventor API: Autodesk Online Help | API Shortcut In Google Chrome | iLogic API Documentation
Vb.Net/VBA Programming: MSDN | Stackoverflow | Excel Object Model
Inventor API/VBA/Vb.Net Learning Resources: Forum Thread

Sample Solutions:Debugging in iLogic ( and Batch PDF Export Sample ) | API HasSaveCopyAs Issues |
BOM Export & Column Reorder | Reorient Skewed Part | Add Internal Profile Dogbones |
Run iLogic From VBA | Batch File Renaming| Continuous Pick/Rename Objects

Local Help: %PUBLIC%\Documents\Autodesk\Inventor 2018\Local Help

Ideas: Dockable/Customizable Property Browser | Section Line API/Thread Feature in Assembly/PartsList API Static Cells | Fourth BOM Type
Message 3 of 4

Thanks for the reply Justin.

 

It makes a bit more sense now that I have realised the '.addin' files need to be created manually.  It looks like there isn't much to them other than some basic props and the '.dll' location.

 

Thanks

 

 

Wayne Helley
Inventor 2013 Certified Professional

Autodesk Inventor Professional 2023
Visual Studio 2022
Windows 10 Pro, 64-bit
Message 4 of 4
Anonymous
in reply to: waynehelley

@waynehelley Please let me know if you get this working.

I think I have done everything correct as the SDK readme describes but still my add-in is not available 😞

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report