Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Anonymous
324 Views, 2 Replies

does anyone know how to run an inventor macro in excel?

With solidworks I can write vba code in excel and when executing the macro, it does something in solidworks. Could you do the same with inventor?

Something like this:

 

 

another question
Does anyone know where I can find the official documentation for the api or ilogic?

Tags (3)
Labels (3)
WCrihfield
in reply to: Anonymous

I, personally haven't tried running a Macro within Excel and have it effect Inventor, but it sounds doable, if you have the references set-up right, and get the Inventor Application object the right way.

As for your other question about official documentation...I think the following links are going to be along those lines:

Inventor API User's Manual 

iLogic API Overview 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

A.Acheson
in reply to: Anonymous

Here is how to set up excel VBA with the correct object.

https://forums.autodesk.com/t5/inventor-ilogic-api-vba-forum/open-inventor-part-with-the-help-of-exc...

 

You will have to figure out how not to start an inventor app each time if there is already one active. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan