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.

Topics - Sorno

Pages: [1] 2

I'm trying to migrate from using <Master Documents> to <Report Package>, but I'm stumbling (Using EA 12.1).

I create a <Report Package>. I add <Model documents> with defined RTF-templates. I can generate each <Model document> separately, but when running document generation on the <Report package> all I get is an empty template. It is not using any of the Model documents, like a <Master document> would.

The <Report package> behaves like any ordinary package would, it runs its RTF-template but if the template isn't telling it to loop through owned objects (i.e. model documents) it ignores them. But my understanding was that the <Report package> rather was suppose to work more or less like <Master document>.

What am I missing  here?


General Board / How to find hidden label?
« on: March 25, 2015, 11:22:57 pm »
It is possible to hide labels (such as name of Action pins) by rightclicking on them. But how do you make them visible again?

Thanks for the help!

General Board / Don't show type of action and actionpin
« on: March 25, 2015, 11:05:39 pm »

When using Action elements and Action pins EA show the name of the element/pin as Name:NameOfType. Is it possible to not show the name of the type? I would only like to see the name of the actual action or pin.

(Using alias don't help, EA only replace the name before the :, and still show the Type name.)

It would help a lot to declutter the digrams! Thanks!

General Board / Include a table/matrix in diagram
« on: May 16, 2013, 11:36:34 pm »
I would like to present certain relationships in a diagram as a table/matrix, either inside the same diagram or dedicated diagram or as some kind of listview. Is this possible in EA?

A table like this:

Information      |  Sender         |   Target            |  ....
Incident report         Servicedesk     Serviceboard  

I'm aware how to access the information through script, but not how to generate a table like this inside an EA diagram.

The "list view" is close but don't show the information I need.

Any thoughts?

Thank you for the help!

Automation Interface, Add-Ins and Tools / Help with Add-in search
« on: May 16, 2014, 01:44:42 am »

I'm trying to do a add-in search, but which don't work. During debug I see that the add-in is called and that it returns what  I want, but there is no results showing up in EA.

This is what I return to EA (any takes on whats wrong?):
Code: [Select]
<ReportViewData UID="MySearchID" >
 <Field name="CLASSGUID"/>
<Field name="CLASSTYPE"/>
<Field name="CLASSGUID" value="{774D1047-A519-44ce-BE34-019376954557}"/>
<Field name="CLASSTYPE" value="Class"/>

Thank you for the help!


I'm fiddling around with custom SQL for RTF-reporting  and have hit a brick wall.

When trying to use functions like Declare or IF the query returns no data when executed through EA (custom query and sql search). The model is hosted on a Microsoft SQL server och the query works fine if runned directly on the database.

Is this a hard limitation in  EA v10.0.1010?

Have a great weekend!


In EA 10 I'm using the RTF-generator to do a custom SQL query that returns two columns Name and Note of elements. It works alright for all element that both have a name and an non-empty note-field. For the cases where the note-field is empty the RT-generator prints "Note" (the name of the custom field). I presumed it would just skip to write anything if the field was empty.

A ugly-workaround is to set all note-field to atleast contain a empty space, but this also mean that an empty  row is added after each element. Any other way?

Thank you!


In my addin I use EA_OnPostNewElement to automatically set stereotype and name of certain elements that are either invocation and property.  I have a few issues though with elements created as property.

First issue:
The  EA_OnPostNewElement is called twice, first without information of PropertyType (the value is 0). Then the dialog is shown and after that EA_OnPostNewElement is called for the second time (now with PropertyType set to correct elementID). Since I don't have the PropertyType the first time I can't identify the kind of element that is created and suppress the dialog accordingly.

Second issue:
If the new element (created as propety) is created as a subelement (dragged and dropped on a existing element) it's name isn't updated in the diagram nor in the browser. The stereotype is changed though. I find this odd since I change them at the same time.
Edit: In this case the  EA_OnPostNewElement is not called at first, instead the user dialog is shown and afterwards EA call EA_OnPostNewElement.

Code: [Select]
element.Stereotype = "UsedConfiguration";
element.Name = propertyType.Name;

Using EA 10.1009.

Thank you for your input!

Would this work for you?

Repository.GetElementByid (DiagramObject.elementID).ElementGUID


I'm having two issues with my MDG.

First issue
I combine several profiles to a single MDG and having problem packaging them under the same name. For example, I want to name my MDG to MyMDG and the MDG is created by combining profiles named SystemView and OperationalView.  I have tried to set alias on the profile-package to no avail.

When I create a element from the MDG and open the dialog to apply stereotypes the named showed in the dropdown meny is the name of the profile rather than my name of the MDG.

Second issue
How do I set the note value of stereotypes in the MDG?
In Settings|UML Types I can see how all my stereotypes get a standard value in their notes field: "UML Profile Notes".  


Thank you!

Automation Interface, Add-Ins and Tools / Add seperator in addin menu?
« on: February 14, 2014, 12:17:51 am »
How do I add a horizontal seperator in the addin menu?

It's not mentioned in the documentation regarding "EA_GetMenuItems" or "Define Menu Items".



In my MDG I let my stereotype FunctionCall extend Action. I now wish to also set Kind to BehaviorCall (as found in the properties dialog under Advanced).   I see that the metaclass Action has the attribute Kind - but changing that value don't. When I create an instance of the stereotype the Kind-field is empty.

Is it possible to set such properties from the MDG or do I need to do it through an addin?

Also, I reckon it would take an addin to make EA open a elementpicker where the user can choose which Activity to call? (This happens if you add Action (behavior call) from the UML toolbox. )

Thank you for any help!

For the steroetype set the attribute "kind" to type ActionCall and the initial value to "CallBehavior".

Automation Interface, Add-Ins and Tools / How do you organize your MDG?
« on: February 12, 2014, 03:22:37 am »

I started developing an MDG last year based on the fairly few and very rudimentary tutorials I found lingering the internet. Well, and a lot of help for here.

Now I wonder, how should you organize your MDG when it grows in size?

I have the following, simplified, set-up:



In total I have around 200 stereotypes sorted in 7 different profiles in the profile package. The reason I have them divided is because of the amount and I felt it would be quite cumbersome to have it all in the same packge. This is though not without drawback. I will return to this later.

For example in the metaclass-profile I have sorted all the metaclasses I use to avoid having duplicates all over the place. The other profiles have each their own purpose and are fairly seperated, but not totally. I also uses several diagrams (1-5) for each profile.

The toolbox is also divided in several profiles matching the profiles the metamodel. At the moment I don't really know why, except to keep it tidy.

When I generate a new MDG version I do a "Save package as UML" in the project browser for each of the profiles (quite tedious if I have changed several, because of the not-so-smart file dialog not rembering the last used name of that profile).

The main problem I have with this setup is:
EA don't fully support connection betweens different profiles when generating UML profiles this way. Extensions are fine, but not generalizations. You can't generalize a stereotype from another profile, unless you create the UML profile from the diagram instead of the profile-package.  With rougly different 20 diagrams I'm really not keen on generating profiles that way, not with the current file dialog forcing me change the name every time (you think it would learn after hundreds of times!  ;) I wish we had some AI in EA... ).

I'm thinking about looking into the possibility to create one massive autogenerated diagram including everything - just to create the needed xml-file for the MDG-generator. Any ideas how to generate such a beast? I guess I could script such a function, if there is no more elegant (e.g. pre-developed) solution.

Any thoughs/comments? How do you do? And do you know of any help/hints for the more advanced MDG developer anywhere (the sparx website isn't really helpful at times)?


Automation Interface, Add-Ins and Tools / Strings in shape script
« on: February 12, 2014, 01:42:03 am »

In my profile I have replaced the shape of a stereotype from the native with this shape script:
shape main{      
noshadow = "true";
h_align = "center";

My problem is that the name of an element is normally in bold, and I wonder if it is possible to make the text in shapescript consistent with this (i.e. the text in the script above has normal weight)?

I know that the help file says "You cannot change the font size, type or color of this text".. but it has been wrong before.

Using EA 10.1009.

Thanks for any input!


I have a script where I would like to get access to the namespace of an element. I have a faint memory of this not being possible throught the API? But I guess it would be possible through an sql query?  But where is this information hidden?

E.g. How is it possible to know that MyNode is a MyNodeType?

<<Node>> MyNode : MyNodeType

Thank you in advance!

Edit: Changed the subject name since later posts show it was not Namespace I was looking for.

Pages: [1] 2