Posts

EA-Matic, the add-in to automatically trigger your script in Enterprise Architect introduces the Developer Mode

EA-Matic is a free and open source add-in for Sparx Enterprise Architect, and is distributed as part of the Bellekens EA Toolpack

In order to enable Developer Mode, open the settings window and check the Developer Mode checkbox and fill in the Script Path.

The Developer Mode is registered per model. Typically you would enable this on your DEV model, but not on the TEST or PROD models.… Read more

The three free and open source add-ins for Enterprise Architect : EA Navigator, EA-Matic and ECDM Message Composer have been combined in a convenient package called Bellekens EA Toolpack.

Bellekens EA Toolpack

Downloading any of the add-ins from the site now gets you an installer for the Bellekens EA Toolpack. With this installer you can install all three add-ins, or only the ones you require.

Bellekens EA Toolpack installer

The main reason for this change is the shared EA Addin Framework. Because all three add-ins use the same framework, there was a risk at version conflicts when two add-ins were installed on the same machine because each add-in installed its own version of the framework.… Read more

With EA-Matic you can develop add-ins for Enterprise Architect using the built-in scripting feature of EA.

With this EA-Matic script you can configure your own default line-styles depending on the type of connector.

In Enterprise Architect you can choose from no less then 9 different line style for the connectors.

Line Styles

Unfortunately you can only choose from the first three to be the default line style for new connectors.

line style default options

Additionally you can also specify the default for Generalization to be Tree Style.… Read more

With EA-Matic you can develop add-ins for Enterprise Architect using the built-in scripting feature of EA.

This example EA-Matic script keeps the signature of the overriding operations in sync with the signature of the overridden operation.

This is especially useful when you are modelling an interface and a number of classes that realize this interface. EA has this neat feature Overrides and Implementations accessed by Ctrl-Shift-O to copy operations from an interface or superclass to the realizing/specializing class.

EA-Matic Overides and Implmentations

This works great when you have created a new operation, or added a new realizing class, but once you change the signature of your interface operation you are on your own.… Read more

With EA-Matic you can develop add-ins for Enterprise Architect using the built-in scripting feature of EA.

This example EA-Matic script keeps the names of objects synchronized with the name of their classifier.

When modelling with objects the name of the object is often left empty because it doesn’t have any significance at that point. One of the downsides of this practice is that in things like the traceability view, or in the links view the object shows up without a name, which of course doesn’t help much.… Read more

With EA-Matic you can develop add-ins for Enterprise Architect using the built-in scripting feature of EA.

This example shows how to make diagrams that maintain themselves to make sure they are always up-to-date.

The idea is that we want a diagram that shows all the relations of the owning object. The diagram should always be up-to-date without manual intervention.

EA-Matic auto_diagram

To indicate that this diagram is an automatic diagram we nest it under the class and prefix it with AUTO_ and on the diagram we place the owning object and its related elements

EA-Matic self-maintaining diagram

Usage of Enterprise Architect Add-in Framework

This script also illustrates how you can use the Enterprise Architect Add-in Framework within your script.… Read more

With EA-Matic you can develop add-ins for Enterprise Architect using the built-in scripting feature of EA.

This example shows how you can prevent deleting elements that are still being used as a type in either an attribute or parameter.

The script uses the EA_OnPreDeleteElement event to first check whether the element is not still used.

If an attribute using this element as type is found then the element is not deleted and the user is informed with a messagebox.

EA-Matic cannot delete attribute

If it isn’t used as attribute but is used as a type in a parameter or the return type of an operation you get the following messagebox:

EA-Matic cannot delete parameter

Usage of Enterprise Architect Add-in Framework

This script also illustrates how you can use the Enterprise Architect Add-in Framework within your script.… Read more

With EA-Matic you can develop add-ins for Enterprise Architect using the built-in scripting feature of EA.

This example shows how to use the add-in menu to add your own menu and menu option, and react to the user clicking such a menu option.

With this script you can use menu options as a regular add-in would

EA-Matic Menu in Action

Download the complete script: EA-Matic MenuHandling

Step 1: defining the menu

Step 2: define the menu state

Step 3: React to user clicking a menu option

Read more

Pages

The Bellekens Enterprise Architect Toolpack contains all the free and open source add-ins offered by Bellekens.

General purpose add-ins

Specialized add-ins

All add-ins in this package are open source using the BSD-2 license

Download

Prerequisites

The Bellekens EA Toolpack requires .Net framework 4.5 which is already installed on most Windows installations.

Installation

When installing you can choose which of the tools you wish to install.… Read more

EA-Matic is an add-in for Sparx Enterprise Architect that enables rapid EA add-in development. It uses the built-in scripting features of EA to relieve you of developing, building and deploying full-blown EA add-ins.

Aimed at corporate environments it greatly reduces the time to introduce new functionality.

With EA-Matic you can develop your EA add-in using nothing but EA, and deploy changes instantly to all model users.

The possibilities are endless. You can validate your own modelling rules, keep your model consistent by preventing the deletion of elements that are still used, add your own context menus, or make self-maintaining diagrams.… Read more