Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Understanding VBA in Inventor - New to Inventor

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
fsdolphin
504 Views, 4 Replies

Understanding VBA in Inventor - New to Inventor

Hi,

 

I was a long time SolidWorks user until a month ago when the company I work for moved to Inventor. I started using Inventor and so far I like it but I have a few questions about using ABA/Macros, which is one of the options I think I will enjoy the most since I have a little bit of experience in the programming world; I know a little bit of C++, Objective-C, Javascript and Ruby.

 

Here are my questions.

 

1- Where can I start learning about VBA?

2- When you use VBA within Inventor, is this considered a macro, a plug-in or you are just scripting?

3- What are the supported languages and which is the most widely used?

4- Where are the APIs to interact with Inventor?

 

Can some one direct me to where I can read more about this concept in general? 

 

 

Thanks a lot.

 

Tags (2)
4 REPLIES 4
Message 2 of 5
sam_m
in reply to: fsdolphin

Welcome to the forums and Inventor.

 

There is a separate forum specfic to the VBA side of Inventor here:

http://forums.autodesk.com/t5/Inventor-Customization/bd-p/120

 

The sticky links to a great tutorial "My First Plug-in Training" about that side of things:

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=17324828



Sam M.
Inventor and Showcase monkey

Please mark this response as "Accept as Solution" if it answers your question...
If you have found any post to be helpful, even if it's not a direct solution, then please provide that author kudos - spread that love 😄

Message 3 of 5
mrattray
in reply to: fsdolphin

I'll try to give you a quick 2-cent version.
The API can be accessed with alt+F11. This is where you can write macros in VBA.
Inventor is also designed to be used with plug-ins written in third party applications like Visual Studio. You can write these in whatever language you want to.
The third option (depending on your Inventor version) is iLogic. This allows you to write simple macros that live either inside the actual inventor files or in a text document that can easily be accessed within Inventor. This uses a special language that is really just a simple form of VBA.
There's tons of info out there about VBA. Most of it is geared towards Excel, but all of the core VBA stuff carries over. The Inventor specific stuff is covered in Inventor's help files. I usually access it in context via the object browser in the API.
Which option you want to use really depends on what you want to accomplish. I've used all three to varying degrees.
You've already found a pretty awesome resource here, and at the links Sam posted. There's a lot of talent and experience here just waiting for the right question to be asked.
Mike (not Matt) Rattray

Message 4 of 5
fsdolphin
in reply to: fsdolphin

Thank you all for your help, I will take a look at the links. Thanks

Message 5 of 5

Hi fsdolphin,

 

In addition to the information the others have provided, here is an additional link that covers this subject pretty well:

 

Autodesk Developer Network

http://usa.autodesk.com/adsk/servlet/index?id=1079044&siteID=123112

 

Of particular interest to you might be the "Porting your application from SolidWorks to Autodesk Inventor?" section at the bottom of the page.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

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

Post to forums  

Autodesk Design & Make Report