eaUtils - Sparx Enterprise Architect add-in

Utilities for your EA models: sort elements, generate alias, diagram breadcrumb navigation...

Page d'accueil (version francaise)TwitterVideos UMLChannel SparxSystems EA YouTubeLinkedIn

Section 6. Sort elements from a Package or an Element by Object Id

sort by object id - creation order

This help article explains how to use eaUtils Sort By Object ID feature on the elements within a package or element. Object ID refers to one of the unique identifiers for any element created in EA, with an incremented value matching the creation order e.g. 1, 2, 3... Note: Object ID values are specific to an element within an EA project, whereas GUID values are specific to an element and remain the same whatever the EA project is used (in case a model is imported within several EA projects).

This feature runs on a package or an element selected from the Project Browser (it can also be run on a package tree, click here for more information).

Sort elements within a package by object id (creation order)

In the following example, classes have been created in the order matching their suffix value (e.g. -1, -2, -3, etc.). Below is the default EA sorting order.

 eaUtils addin sparx enterprise architect sort by creation object id

Right click on the package where elements need to be sorted > Specialize > eaUtils > Project Browser: sort elements.

sparx enterprise architect sort elements in browser addin

In the following dialog window, select Object ID as the sorting option and confirm that you would like to proceed.

Note: eaUtils sort by settings are displayed. The settings can be opened and modified if needed.

eautils addin sort by object id Sparx EA script API

Once completed, the following window is displayed:

The new sorting order is visible in Enterprise Architect project browser as illustrated below:

Sparx Enterprise Architect sorting addin