Meine AddIn-DLL wird fehlerfrei erstellt, das AddIn wird geladen und funktioniert auch. Ich hab zum Testen eine kleine MessageBox in Activate mit if firsttime=true gesetzt. Was ich nicht verstehe, warum ist Inventor bei jedem Start der Meinung das FirstTime für diese AddIn TRUE ist? Unter HKEY_CURRENT_USER\Software\Autodesk\Inventor\RegistryVersion14.0\UI Customization V5\Command Owner IDs ist im Schlüssel Has Initialized UI auch brav eine 1 drin. Interessiert Inventor aber nicht. Was läuft da schief?
Nachdem ich es gerade herausgefunden habe und es von allgemeinem Interesse sein könnte:
aus dem handout der Autodesk University 2009 / Brian Ekins
Zitat:...This is also the intention for the ribbon interface but it doesn’t currently behave that way and doesn’t remember the changes your add-in makes to the ribbon. What currently happens with the ribbon is that every time you add-in starts the first time flag will always have a value of True. Because the customization that the user is allowed to do with the ribbon is very limited this doesn’t end up causing any problems. ...