OUTDATED
How to build Decision Architect?
- Install the OpenXML SDK http://www.microsoft.com/en-us/download/details.aspx?id=30425
- Install Enterprise Architect, the trial version for now (http://www.sparxsystems.com/products/ea/trial.html)
- Open Visual Studio (as administrator) and create a Class Library (in our case we already have created a class library HelloWorldAddin)
- Right click on the project DecisionViewpoints and click Add Reference...
- 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.
- Also add a reference for System.Windows.Forms, though it should be already referenced.
- 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)
- In the project properties check the Register for COM interop checkbox on the Build tab.
- Repeat steps 5 to 8 for the project named EAFacade
- 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.
- 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.
- Open up the Windows registry editor by clicking Start|Run and type regedit.
- 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)
- Right click on the EAAddins key and add a key with the name of the project in Visual Studio, in our case HelloWorldAddin.
- 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
- Go to Visual Studio and Build the project (with EA closed).
- 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