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

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

Anonymous
Not applicable
698 Views
2 Replies
Message 1 of 3

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

Anonymous
Not applicable

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?

0 Likes
699 Views
2 Replies
Replies (2)
Message 2 of 3

WCrihfield
Mentor
Mentor

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)

0 Likes
Message 3 of 3

A.Acheson
Mentor
Mentor

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
0 Likes