Add to Google

Hot Links
In The Machine
Cbliss
InventorParts
Sdotson
Mcad Forums
The Autodesk Informer
Inventor Discussion Groups
Inventor Graphics Card FAQ
Inventor Manufacturing Community
INCAT iCHECK


If you find the site useful, consider helping to keep it going by making a donation.

Contact Me



You are the 5414th person to visit this page

Autodesk Inventor Default.IVB


Inventor loads a default ivb file every time you start. This is a good place to stick things you always want available. If you go to the Tools pulldown, then Application Options on the File tab you will notice the towards the bottom is Default VBA Project. You can change the path to point it to any file you like. I suggest changing its location to one that won't get deleted when you uninstall to upgrade to the next version of Inventor. A suggestion for a storage location would be C:\Program Files\Autodesk\Macros.

To Access the Default.ivb and add some Macros to it Open the IDE by either going through the Tools pulldown, then Macros, and finally select Visual Basic Editor, or the method I find much easier, pressing Alt F11

In Project-Application Project Expand Default.ivb Then either double click on Module1 1 or right click on it, and choose view code.

You should get a window to the right with two dropdown boxes at the top. There should already be a line of code.... Option Explicit If this isn't there type it in. It keeps us honest and makes us declare every variable. This is where you would add your code.... maybe something you found on a web site or a newsgroup or your own first masterpiece. There can be multiple macros in this one module. Be careful though if some of them you are copying have other modules you will need to copy of move them over also, and sometimes some code is stuck in the "This Document" object. It will be needed also. The only way to really learn is to jump in and start working with it.

 

Valid XHTML 1.0!