Complete C# Add-in Template

This template, which is actually an abstract class, implements all EA (v 8.0.864) events that add-ins can use, complete with documentation. Each event can be used by simply overriding the event in the derived add-in class.

Create a new EA add-in by simply extending the EAAddinBase.cs base class and overriding the required events.

The EAAddinBase.cs is part of the open-source Enterprise Architect Add-in Framework hosted on GitHub, so for the latest version please download the zip or tar directly from GitHub

Instructions can be found in the downloadable pdf or on my blog

 

This article contains content available for registered members only. You need to be logged in to view/download this content.

About the Author

Geert Bellekens

Geert Bellekens

Bellekens IT (Consultant)
I've been active in the ICT sector since 2000 and started in 2004 as an independent modeling consultant. Over the years I've helped several major ICT players in Belgium to define and document their modeling method, train and coach the modelers, and develop supporting tools. I'm also the author of the EA Navigator http://geertbellekens.wordpress.com/ea-navigator/ , a free an open source add-in for Enterprise Architect that makes the life of any Enterprise Architect user easier by facilitating easy navigation between different elements in the model.

Comments

  • Hi Helmut, You are indeed right. I tested these both methods and they only seem to work when the Args parameter is of type object. I've already changed the original source code on github: https://github.com/GeertBellekens/Enterprise-Architect-Add-in-Framework/... and I'll the attached file on here as well (that might take a while longer since Sparx needs to validate before a new version of the post is published.) Thanks for noticing. Geert

  • Hi Geert, good template. According to my researches the signature of public virtual void EA_OnStartValidation(EA.Repository Repository, params object[] Args){} has to be changed to: public virtual void EA_OnStartValidation(EA.Repository Repository, object Args) { } The EA documentation is also wrong in this point but there is an article in the forum which tackles the problem. I tested it with EA 9. EA_OnEndValidation is also affected. Kind regards, Helmut

    • see comment above ;) Geert a feature allowing to edit or remove comments within x minutes of posting would be nice :/