Automatically load VBA on Startup of Inventor

Automatically load VBA on Startup of Inventor

isocam
Collaborator Collaborator
713 Views
3 Replies
Message 1 of 4

Automatically load VBA on Startup of Inventor

isocam
Collaborator
Collaborator

Can anybody help?

 

Is it possible to Automatically load VBA on Startup of AutoDesk Inventor, possibly using Vb.Net???

 

Many thanks in advance!

 

Darren

0 Likes
714 Views
3 Replies
Replies (3)
Message 2 of 4

Cadkunde.nl
Collaborator
Collaborator

You need to make an addin for that. It is automatically loaded in Inventor on startup

 

Get visual studio community for free, if you have knowledge in VBA then .NET is easiest programming language

 

And if you start with a clean slate, i suggest you get a jump start with:

https://ekinssolutions.com/nifty_addin_template/

 

Some help:

https://www.autodesk.com/support/technical/article/caas/tsarticles/ts/29mPk2V7aweIo6eLckSF1k.html

0 Likes
Message 3 of 4

WCrihfield
Mentor
Mentor

Hi @isocam.  Are you saying that when you start Inventor you do not see the VBA Editor button available on your Tools tab > Options panel, or that the button is there, but it does not launch the VBA Editor?  I am using 2022.4.1, and even though I had to manually install the VBA Editor in this version of Inventor, it loads itself automatically when I start Inventor, without me needing to do anything with Visual Studio.  They quit including VBA in Inventor  several years ago, due to security concerns, so from now on, if you want to use VBA, you must manually install it after installing Inventor.  If you recently updated from an older version of Inventor to a newer one, you may have to download and install VBA.

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/VBA-Not-Found-Inve... 

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/Microsoft-Visual-B... 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes
Message 4 of 4

Cadkunde.nl
Collaborator
Collaborator

Ah I was thinking about VBA Code to run at startup, not the application.

 

What might also help is:

Application options --> File --> Default VBA Project

0 Likes