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 - Geert Bellekens

Pages: 1 2 [3] 4 5 ... 525
Bugs and Issues / Re: Formatted fields in SQL Fragments
« on: February 07, 2018, 03:47:53 pm »
Yes it works in .eap files.

I think you needed to use something like
Code: [Select]
o.Note as [note-formatted]in the query and use {note.formatted} in the template.


Hi Tom,

I think this page in the manual describes the process:

AFAIK this should work as described.


Bugs and Issues / Re: EA Shape Script Rendering Issues
« on: February 06, 2018, 12:05:47 am »
Hi Daiim,

Just to be sure, you do know that posting a bug here is only to inform the other users on the forum right?
To file an official bug report to you need to use the link at the bottom of the page

You cannot upload images directly on this forum, but you can use a public image hosting site such as and then link to that image using the image tag.


Bugs and Issues / Re: A bug nesting
« on: February 06, 2018, 12:02:03 am »
Have yo tried closing and opening the project?
Changes to the model structure done in the backend often don't show up immediately.

I've never seen any kind of limitation in the GUI. If it was not showing some elements, that I could understand, but showing it at the wrong "level" seems really arbitrary.


PS. 500 objects in a single package does not seem like a good idea to me in any scenario. ??? Any chance you can split those up into different packages?

Is this the same for other stereotypes you have extended?

There is a difference in extending a metatype, or extending a (predefined) stereotype.


General Board / Re: Predefined Tagged Values for Requirements
« on: February 03, 2018, 05:38:51 pm »
It may seem complicated and difficult at first, but it's not all that bad.

And it has gotten a lot better compared to 2012. There is now the UML profile helper that helps you build the stereotypes.
So no more magic strings to remember.


General Board / Re: EA.Interop C#: Return values of methods at failure?
« on: February 02, 2018, 09:08:09 pm »
This method used to throw an exception when it couldn't find the correct ID, but recently (I think in version 12) they have changed that behavior to returning null.
I remember because it caused a bug in my add-ins as they were counting on the exception, and not the null.

The best way to be sure is by trying it out in the version you are targeting.

It would indeed be nice if that behavior would be documented.


Bugs and Issues / Re: Formatted fields in SQL Fragments
« on: February 02, 2018, 03:55:14 pm »
It works, but you have to tailor your query to the database you are using.


Hi Silvain,

The script you are starting from uses the EAAddinframework as you noticed.
So that means you are no longer programming against the EA API, but against the library of wrappers I wrote.

The relatedElement you get as a parameter is coming from connector.relatedElements, which returns hashmap of UML.Classes.Kernel.Element (see ConnectorWrapper)

The Element interface does not define a property Stereotype but it does have a property called stereotypes, a hashmap of Stereotypes. So before using that in VBScript you'll have to convert that to an ArrayList like we did with the RelatedElements (generics cannot be used in VBScript)

Then you can iterate the list of stereotypes and check the .name property.

Alternatively you can rely on the properties and operations of the Element class, which is the parent class of almost all classes in the EAAddin framework.
That class defines an operation to test for a specific stereotype:
bool HasStereotype(string stereotype)
and also a list of stereotype names
List<string> stereotypeNames which you have to convert to an ArrayList again before being able to use it.

Hmm, explaining it like that makes it look very complicated doesn't it :-[ I didn't really intend the library for usage in scripts. It is just a side effect of installing the EA Toolpack. The library is much richer then the standard EA API, and often allows you to write denser and more functional code. But it also has somewhat of a learning curve I guess.


PS. You don't have to use the EAAddinLibrary when writing EA-Matic scripts. You can also simply use the raw EA API.

Bugs and Issues / Re: User guide API documentation not navigable
« on: January 31, 2018, 04:32:16 pm »
Yes it is a bit awkward.
You repeatedly have to press the "Topics" button (called "dropdown" by Simon but doesn't look like a dropdown) to navigate deeper into the topics tree.


Using scripting to traverse a model is very slow in general.

Often SQL queries much better for this type of work. Major downside of using SQL is that it is hard to do anything recursive.
So if the (maximum) depth of the tree is unknown you might need to use some kind of scripting solution anyway.

But still then it will pay off to use SQL queries on each level recursively to get the elements, rather then iterating all the connectors of all the elements.


General Board / Re: Elements on diagram
« on: January 30, 2018, 02:53:17 am »
Look at the option "Support for Composite Objects" in Start | Preferences | Objects

But to be honest, most of the time that function works as it should. If you have an issue with that you might be doing something wrong. (such as putting Activities on an activity diagram)


Bugs and Issues / Re: Performance with MySQL database
« on: January 30, 2018, 02:48:46 am »
No sorry, don't know of any tools that might be of help.



You are not using VB, but VBScript. And regardless of EA, VBScript won't know about constants define by Excel or any other library.
All you can do is define the constants yourself in a similar way as Local Scripts.EAConstants-VBScript


General Board / Re: Hide packages/folders from users (Sparx V14
« on: January 26, 2018, 01:09:14 am »
The documentation is a bit self-contradicting if you ask me.
It says:
Only models hosted by a Pro Cloud Server are able to make use of this feature
But also
Since Row Level Security functionality is implemented by the database, it is impossible for users to bypass security implemented at the application level
Which makes me think it will work without Pro Cloud Server as well as it is basically transparent for the application.

Maybe it is a licencing issue rather then a technical limitation?


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