OUTDATED

How to build Decision Architect?

  1. Install the OpenXML SDK http://www.microsoft.com/en-us/download/details.aspx?id=30425
  2. Install Enterprise Architect, the trial version for now (http://www.sparxsystems.com/products/ea/trial.html)
  3. Open Visual Studio (as administrator) and create a Class Library (in our case we already have created a class library HelloWorldAddin)
  4. Right click on the project DecisionViewpoints and click Add Reference...
  5. Select the Browse tab, browse to the EA installation folder (default: C:\Program Files\Sparx Systems\EA) and choose the file Interop.EA.dll.
    • For 64bit systems and assuming the trial version the path is C:\Program Files (x86)\Sparx Systems\EA Trial.
  6. Also add a reference for System.Windows.Forms, though it should be already referenced.
  7. Finally, add a reference for DocumentFormat.OpenXml by browsing to the DocumentFormat.OpenXml.dll file (default: C:\Program Files (x86)\Open XML SDK\V2.5\lib)
  8. In the project properties check the Register for COM interop checkbox on the Build tab.
  9. Repeat steps 5 to 8 for the project named EAFacade
  10. Add the C:\Program Files\Sparx Systems\EA folder on the Reference Paths tab.
    • For 64bit systems and trial version the path is C:\Program Files (x86)\Sparx Systems\EA Trial.
  11. Set the Start external program option to the C:\Program Files\Sparx Systems\EA\EA.exe executable on the Debug tab
    • For 64bit systems and trial version the path is C:\Program Files (x86)\Sparx Systems\EA Trial\EA.exe.
  12. Open up the Windows registry editor by clicking Start|Run and type regedit.
  13. Browse to the HKEY_CURRENT_USER\Software\Sparx Systems key, right click and add a key with the name EAAddins (if it does not already exist)
  14. Right click on the EAAddins key and add a key with the name of the project in Visual Studio, in our case HelloWorldAddin.
  15. Double click on the (Default) value on the right pane, and enter the value in the form of [ProjectName].[ClassName], so in this case HelloWorldAddin.HelloAddin => DecisionViewpoints.MainApplication
  16. Go to Visual Studio and Build the project (with EA closed).
  17. Open EA and open a new project. Then right click in any of the Project Browser elements. In the Extensions tab we can find the Addin we defined! :)

References