Wednesday, July 13, 2005

Add-In Versioning In Autodesk Inventor

Platform: Inventor 10
Download: n/a

I've recently been developing an Add-In for Inventor to bring together all the utilities I've developed over the last few years. One of the utilities requires a new toolbar in Inventor whenever a part or assembly document is open. The API help files are pretty good but they have an issue with version skew. Page 6 of the UI Customization overview explains AddIn Versioning in depth but Page 3 of the Add-In overview doesn't have the Version entry added to the registry file example.

If you are developing an Add-In that deals with CommandBar creation or attaching buttons to a command bar listen up! The FirstTime variable will never be set to False in the ApplicationAddInServer_Activate event if you compile and run your Add-In. This means that you have ONE CHANCE to get it right.

I posted this dilemma on the Inventor customization newsgroup ( and was quickly supplied with an answer from Sanjay Ramaswamy at Autodesk:

The FirstTime argument will be true only when your Add-In is being loaded for
the very first time after registration. User interface items such as command
bars & controls need to be created only during the first time and they will
be persisted by Inventor. Please see page 6 of the UI Customization overview
in Programming Help for a detailed explanation regarding this.

In order to work around your present situation, you can force the FirstTime
flag to True by changing the value of the "Version" entry in your Add-In's
registry (the same place where you set things such as LoadOnStartUp,
SupportedSoftwareVersionEqualTo, etc. Just increment the value of the
Version entry to 1 (and 2,3,4,.... for each time you want to change the way
your user interface looks).

Here's a link to the full discussion thread:

Here's the Registry file I'm currently using and it seems to be working just fine:


@="SolidCAD ToolBox"

@="A collection of useful routines supplied by SolidCAD Inc."

[HKEY_CLASSES_ROOT\CLSID\{57E6E593-2CAE-4016-AE01-74BB752C670E}\Implemented Categories\{39AD2B5C-7A29-11D6-8E0A-0010B541CAA8}]

[HKEY_CLASSES_ROOT\CLSID\{57E6E593-2CAE-4016-AE01-74BB752C670E}\Required Categories]
[HKEY_CLASSES_ROOT\CLSID\{57E6E593-2CAE-4016-AE01-74BB752C670E}\Required Categories\{E357129B-DB40-11D2-B783-0060B0F159EF}]


You're really missing out on a great resource if you haven't checked out the Autodesk Discussion Groups.

Thanks again Sanjay.

This page is powered by Blogger. Isn't yours?

vba, acad vba, cad vba, cad, visual basic, visual basic for applications, autocad vba, acad vba, training, vba training, cad training, acad training, autocad training, autocad vba training, bom, bill of material, meta-data, meta data, metadata, property data, data, inventor properties, document management, document, management,technical support resource for users of Autodesk Mechanical CAD Software including Autodesk Inventor & Mechanical Desktop inventor, autodeskinventor, inventor 2, inventor 3, inventor 4, inventor 5, inventor 6, inventor7, inventor 8, inventor 9, inventor 10, autodesk inventor, autodesk inventor2, autodesk inventor 3, autodesk inventor 4, autodesk inventor 5, autodeskinventor 6, autodesk inventor 7, autodesk inventor 8, autodesk inventor9, autodesk inventor 10, inventor r, inventor r2, inventor r3, inventor r4, inventor r5, inventor r6, inventor r7, inventor r8, inventor r9, inventorr10, autodesk inventor, autodesk inventor r2, autodesk inventor r3, autodeskinventor r4, autodesk inventor r5, autodesk inventor r6, autodesk inventorr7, autodesk inventor r8, autodesk inventor r9, autodesk inventor r10,inventor series, autodesk inventor series, inventor series 5, inventorseries R5, autodesk inventor series 5, autodesk inventor series r5, inventorseries 6, inventor series R6, autodesk inventor series 6, autodesk inventorseries r6, inventor autodesk, autodesk inventor download, autodesk inventortutorial, autodesk inventor help, autodesk inventor faq, autodesk inventortips, autodesk inventor routines, autodesk inventor support, autodesk inventor, inventor download, inventor tutorial, inventor help, inventorfaq, inventor tips, inventor routines, inventor support, inventor, inventor help line, help for inventor, inventortraining, autodesk inventor training, mdt, mdt 4, mdt 5,mdt 6, mdt 7, mdt 8, mdt4, mdt5, mdt6, mdt7, mdt8, mdt 2000, mdt 2002,mdt r4, mdt r5, mdt r6, mdt r2000, mdt r2002, mechanical desktop, mechanicaldesktop 4, mechanical desktop 5, mechanical desktop 6, mechanical desktop7, mechanical desktop 2000, mechanical desktop 2002, autodesk, autodesk auto cad, autodesk inc,training, education, auto cad support, autocad support, mcad, autocad mechanical,mechanical, autocad mechanical 6, autocad mechanical 7, autocad mechanical8, autocad mechanical 9, autocad mechanical r6, autocad mechanical r7,autocad mechanical r8, autocad mechanical r9, support, help, tips, routines, reseller, mech, cad, acad, technical, ontario, canada, f.a.q.,faq, answers, resource, barrie, autolisp, auto lisp, autocad, auto cad, autocad desktop, auto cad desktop, autocad inventor, auto cadinventor, powerpack, MAI, desktop, cad software, autocad lt, auto cad lt,cad cam, cad design, cad job, job cad, autocad lisp, auto cad lisp, 3dcad software, 3d cad, free, free cad software, service pack, render, system, computer, aided, drafting, design, manufacturing, modeling, solidmodeling, solid modelling