Cabinet Demo -- Inventor ETO Series 2013 R2 (version 6.1) February 12, 2013 Prerequisites: ============== Inventor ETO Series 2013 R2 The demo represents Visual Studio 2010 project with the three subprojects: 1. Intent language code (Design Files) 2. VB.Net addin code and UI (CabinetDemoAddin) 3. C# library code (CabinetDemoUtils) The "Factory Parts" and "Templates" folders contain Inventor files. To test compile: ================ * Open CabinetDemo.sln in Microsoft Visual Studio 2010. * Rebuild ETOCabinetDemoAddin project. That command will create addins for Inventor 2013 and Inventor 2013 OEM. * Test that Addin is installed: Open Inventor 2013 and check the state of "Cabinets" addin. Ensure that addin can be loaded on startup. To debug Intent code in ETO Studio: =================================== * Set ETO "Cabinets" project as Start Up. * Check that its Properties specify the Debuger Type as Inventor (or InventorOEM). * Specify the Assembly File to open: Assembly1.iam . * F5 to start debugging: Inventor (OEM) will start. * The Cabinets UI should be available in the separate dockable window, as well as Cabinets ribbon bar. * After the model has rendered, the simple model with six cabinets (and drawing) will be created. * Click over the cabinet in the model view, and its name will be selected in UI. From that point, you may delete/add/change cabinets. * Note that Total is updated automatically after any changes in the model. Open Design RunningTotalMixin.iks and set breakpoint on RunningTotal Rule. The breakpoint will be hit every time the model is changed. From this point, you may use the debug commands and check the values of the Rules. To debug .Net code in ETO Studio: ================================= * Set CabinetDemoUtils or ETOCabinetDemoAddin as Start Up. * Specify Inventor (OEM) path as the name of External Program. * From this point, you may wish to set breakpoint on .Net code The file CabinetDemoUtils\CabinetDemoUI.cs contains the method ReadFromIntent() that, among other things, set the value of Total into UI. The label control is named lblTotal. How to Register/Unregister Manually =================================== 1) Copy add-in dll file to one of following locations: a) Anywhere, then *.addin file setting should be updated to the full path including the dll name b) Inventor \bin\ folder, then *.addin file setting should be the dll name only: ETOCabinetDemoAddIn.dll c) Inventor \bin\XX folder, then *.addin file setting should be a relative path: XX\ETOCabinetDemoAddIn.dll 2) Copy .addin descriptor file to one of following locations: a) Inventor and Inventor OEM Version Dependent Windows XP: C:\Documents and Settings\All Users\Application Data\Autodesk\Inventor 2013\Addins\ C:\Documents and Settings\All Users\Application Data\Autodesk\Inventor OEM 2013\Addins\ Windows7/Vista: C:\ProgramData\Autodesk\Inventor 2013\Addins\ C:\ProgramData\Autodesk\Inventor OEM 2013\Addins\ b) Inventor Version Independent Windows XP: C:\Documents and Settings\All Users\Application Data\Autodesk\Inventor Addins\ Windows7/Vista: C:\ProgramData\Autodesk\Inventor Addins\ c) Per User Override for Inventor Windows XP: C:\Documents and Settings\\Application Data\Autodesk\Inventor 2013\Addins\ Windows7/Vista: C:\Users\\AppData\Roaming\Autodesk\Inventor 2013\Addins\ To unregister the AddIn, remove the Autodesk.ETOCabinetDemoAddIn.Inventor.addin from the above mentioned .addin manifest file locations.