Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Guillaume

Pages: 1 2 [3] 4 5 ... 38

I like EA 13.5 new "navigation cells" to open a diagram as an alternative to hyperlinks.
Copying the diagram to the clipboard to use e.g. in Powerpoint has a glitch since the embedded images are rendered with a black background.

Automation Interface, Add-Ins and Tools / Re: Scripts submenus
« on: October 11, 2017, 05:30:45 am »
Hi Uffe,

Thank you for the tip. However the reason why we use scripts on this project is to overcome addins installation issues on each user's PC. Scripts are easy to maintain and update via the centralised project.
Hopefully this feature request can be taken into account at some point (for xmas...)

Automation Interface, Add-Ins and Tools / Re: Scripts submenus
« on: October 10, 2017, 05:41:08 pm »
Hi Aaron,

I submitted it as a feature request. Do you see this as a possible/feasible feature to have in EA?


Automation Interface, Add-Ins and Tools / Scripts submenus
« on: October 10, 2017, 12:54:54 am »

We use a number of package and diagram scripts for a project which we prefixed by type.
A right click on a package or diagram displays a big list which I'd like to reduce with an additional level

Is this supported in EA?

Current list:

Needed list:
Type 1
Type 2

Select Type 1:

Great, thanks for the info.

General Board / Settings location for the enabled MDGs and custom toolbar
« on: September 14, 2017, 12:29:31 am »

I'm trying to identify when EA stores local custom data so a team can deploy a fully custom EA configuration throughout the team.
Perspectives and EA 13 ribbons are located in Sparx appdata folder.

I know some details are also located in the registry, however I'm trying to find the following:
- list of enabled/disabled MDG Technologies updated via CONFIGURE > Technology > Manage
- custom toolbars with added commands via START > Workspace > Preferences > Customize > Commands.


General Board / Re: Adding a set of attributes to a large number of elements
« on: September 06, 2017, 06:18:59 pm »
Here is a suggested script to create the same attributes on the classes within the selected package. It can be improved to loop through the subpackages, only update classes with a given criteria such as a tagged value, etc.

Code: [Select]
option explicit
!INC Local Scripts.EAConstants-VBScript   
' Script Name: Populate attributes (package script)
' Author: Guillaume[at]
' Purpose: Create the same set of attributes on each class within the selected package
' Date: 6/09/2017

sub OnProjectBrowserScript()
' Get the type of element selected in the Project Browser
dim treeSelectedType
treeSelectedType = Repository.GetTreeSelectedItemType()
select case treeSelectedType'
case otPackage
dim thePackage as EA.Package
set thePackage = Repository.GetTreeSelectedObject()
dim allObjects as EA.Collection
dim currentElement
set allObjects = thePackage.Elements
dim i
for i = 0 to allObjects.Count - 1
set currentElement = allObjects.GetAt( i )
if currentElement.Type = "Class" then
addAttribute currentElement, "attr1"
addAttribute currentElement, "attr2"
addAttribute currentElement, "attr3"
end if
case else
' Error message
Session.Prompt "This script does not support items of this type.", promptOK
end select
end sub

sub addAttribute(ClassToProcess, attributeName)
dim attributes as EA.Collection
set attributes = ClassToProcess.Attributes
dim newAttribute as EA.Attribute
set newAttribute = attributes.AddNew( attributeName, "" )
end sub


Hope it helps.

Automation Interface, Add-Ins and Tools / Re: Shape script: rotated text
« on: August 17, 2017, 03:46:00 pm »
I think it should be available to all elements without having to go through ShapeScripts.
I recently raised this request here:,38548.0.html.

I don't know the impact on EA but it seems unlikely as it would appear to have been asked numerous times.

Bugs and Issues / Re: SysML prevents using UML use cases
« on: August 10, 2017, 11:15:58 pm »
Thanks for your reply Geert

However it was a different issue which I since managed to sort out: the SysML 1.3 MDG was set as active. This led to replace my UML statechart toolbox for instance with the SysML toolbox.
It can be changed via Extensions > MDG Technologies > select Basic UML and set as active.

Bugs and Issues / SysML prevents using UML use cases
« on: August 10, 2017, 09:08:59 pm »

I use both SysML and UML on various EA projects.
Somehow I must have enabled an option in EA that I need to get rid of:
- in the toolbox view, the SysML Common is always visible (the common is collapsed)
- in a UML use case diagram, I always get the SysML Use Case toolbox!



It would be useful to display an element's title in a diagram vertically, or rotate an element by 90.
Being a possible future request, I wonder if this sounds feasible for Sparx in a future EA build.


Suggestions and Requests / n
« on: August 09, 2017, 05:05:43 pm »
To help you finding your way round the new ribbons, you can use the mapping details that I published here:

Note that a PDF document can be downloaded at the bottom of the page. New versions will be released based on feedback and possible mistakes to improve.

Hi Alain,

In addition to the answer you got, if you need to sort elements let's say by stereotype, tagged value, and name based on advanced criteria, my free eautils addin can help (

General Board / Re: Filter on Element Attribute Value
« on: July 18, 2017, 06:10:15 pm »

You can run a SQL search as illustrated below.
It will return class attrbutes with an initial value matching your search criteria. The only down side is that you have to change the diagram ID in the SQL when you change diagrams.

Alternatively, you can run this query in a script that runs on a diagram and prompts for the initial value. This script can generate the results in the system output

SELECT t_object.ea_guid AS CLASSGUID, t_object.Object_Type as CLASSTYPE, t_object.Name as Class, t_attribute.Name as Attribute
FROM (( t_object
inner join t_diagramobjects on t_object.Object_ID = t_diagramobjects.Object_ID)
inner join t_attribute on t_object.Object_ID = t_attribute.Object_ID)
t_diagramobjects.Diagram_ID = 1085
AND t_object.Object_Type = 'Class'
AND t_attribute.Default = '<Search Term>'

Suggestions and Requests / Intellisense in the DB Builder Queries
« on: June 14, 2017, 03:57:55 pm »
It would be very useful if the DB Builder could support intellisense on the current database when writing a query.
So if I use the Ctrl+Space keys, I could get suggestions on the table and column names based on the tables in the current DB project.

It works in the SQL Scratch pad in EA Model search for EA DB schema.

Pages: 1 2 [3] 4 5 ... 38