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 - Arquesoft

Pages: [1] 2 3 ... 8
So, the right way to do it is as follows?
Code: [Select]
element.StereotypeEx = "MyStereotype";

or like this?
Code: [Select]
element.StereotypeEx = "MyProfile::MyStereotype";

So, I think: how does EA know which one of two stereotypes (with the same name but in different profiles) you want to set?

I need to access to the data in the clipboard in a Jscript in the model. Is this possible?

Note it is possible to have several elements with the same name.


How would I do this? and how would I ensure i dont have multiple copies of the same server imported each day.

You have to add in the spreadsheet a column in order to store the GUID of the element in EA. So, it is better if you store this GUID in your CMDB in order the spreadsheet be well generated.

Your script have to find the element by GUID and then refresh the data. If no GUID in the spreadsheet create the element and then upload the GUID (to spreadsheet or CMDB).

Hi. After several tests and reading several posts in the forum about different versions of EA, I'm a bit confused about the ultimate right way to change a stereotype programatically. In a simple scenary as follows:
-There are two stereotypes, from the same profile, extending the same metaclass
-Both stereotypes add the same tag values to the elements.

Sometimes you create the element with the wrong stereotype (A), and later you want to change it to the stereotype B (with a script). What is the right procedure?

I'm particulary confused with: element.Stereotype, element.StereotypeEx, element.FQStereotype, element.MetaType, element.SynchTaggedValues.

Thanks in advance.

Bugs and Issues / Re: Unable to move Interface on a Port, on a Class
« on: June 21, 2018, 08:30:48 am »
What if you move it via the Project browser? (change the element it belongs to)

Bugs and Issues / Re: Saving long urls
« on: June 21, 2018, 08:29:51 am »
Use a url shortener like

Bugs and Issues / Re: Tag values mixing groups (ver 13.0)
« on: June 21, 2018, 08:28:58 am »

I thought yu had already done that procedure...  What you have defined is the standard process for manually redefining a metatype.  If you don't do the steps of making sure you have cleared the StereotypeEx properties (where you unmark the checkbox of the non-current stereotype) then EA doesn't recognise the metatype correctly (Ask me how I know?  ;))

The reason I hadn't do that was there were hundreds of elements with that issue. I really was looking for a script (jscript or SQL) solution, but I really had to fix it by hand, one by one. They are now all fixed. But I still look for a script that has the same effect.

My final solution was:

1. Create a script that change the _icon folder definitions for every stereotypes in every profile in my MDG.
2. Use a folder easy to replicate in different computers (eg: C:\EA\MDG\icons). Avoid folders related to desktop or user based locations
3. Share in another tool (version control system, dropbox, sharepoint, drive, etc), the profiles XML, the icons, MTS file, MDG file and an export of searches in XML.
4. MTS folder definitions refers to C:\EA\MDG folder
5. Search XML has to be imported in the secondary computer generating MDG.

Did you buy it or just have the trial version?

Bugs and Issues / Re: Tag values mixing groups (ver 13.0)
« on: June 06, 2018, 11:52:25 pm »

BTW: Is it reproducible?  If you put the original stereotype back, does it revert and then revert again as you put the new stereotype back?


It worked! the solution is:
1) Apply the undesired stereotype by drag&dropping from the Toolbox pressing Ctrl over the conflicting element.
2) Uncheck the desired stereotype from the checkboxes in the Stereotype attribute of the element. At this point, the tag values are all grouped in the wrong stereotype group, but are all in the same group.
3) Apply the desired stereotype by drag&dropping from the Toolbox pressing Ctrl.
4) Uncheck the undesired stereotype from the checkboxes in the Stereotype of the element.

Bugs and Issues / Re: Synchronise Stereotype via API odd behaviour
« on: June 06, 2018, 07:56:21 am »
I have a more complicated case similar to this, in the following post:,39943.0.html

Bugs and Issues / Tag values mixing groups (ver 13.0)
« on: June 06, 2018, 07:52:18 am »
I have a MDG containing profiles. I created a stereotype called "Application" and another one called "Platform", both extend Component metaclass. Both have the same tag values, and the tag values are organized in groups (as both extends the same metaclass, the groups definitions is in the single metaclass element).

I have made several versions of the MDG (every 3 months it happens an update), so I have different elements in different versions of the profiles. The situation about versioning is similar as described here:,39829.msg245210.html#msg245210

Then, I changed some elements, changing their stereotypes from Platform to Application. To do so, I have a script that allows to do it for a large number of elements simultaneously, selected from a diagram.

After doing that (and experimenting some issues as described in the post of the link above), I manually "fix" the data in the stereotype, and in the t_xref table. It seems to be simple: I had to erase the reference to the Platform stereotype in the t_xref row related to "Stereotypes" and I noted that there is a row in t_xref related to "CustomProperties" containing the tag grouping definition for the element. As the two profiles has the same tags and groups, it is not required to change the t_xref CustomProperties data (there is no reference in this rows related to the profile name.

So, the issue is: after changing the stereotype of the element, the tag grouping is showing the tag values grouped in a weird way, like this:

-Group A
--Tag 1
--Tag 2
--Tag 3
-Group B
--Tag n
--Tag n1
--Tag n2
--Not grouped tags

What is expected:

-Group A
--Tag 1
--Tag 2
--Tag 3
-Group B
--Tag n
--Tag n1
--Tag n2
--Not grouped tags

The Description in the t_xref for this cases is: @STEREO;Name=Application;FQName=ProfileName::Application;@ENDSTEREO;
(previously it had two definitions of @STEREO (one for Application and one for Platform), so I fixed it manually directly in the database)

General Board / Re: How to set page size in RTF templates (ver 14)
« on: June 04, 2018, 12:05:40 pm »
I have just re-tested it. Version 14 build 1421. When opening a previously created template (master template, model template, cover page, or table of content template) the options are disabled as mentioned previously.

General Board / Re: How to set page size in RTF templates (ver 14)
« on: June 04, 2018, 10:48:13 am »
I think its under 'Edit' Ribbon, File -> Printer Setup  (or Page Layout)

But when editing a template this option is disabled! I have only enabled "Page Layout" and "Print preview". So, "Printer setup" and "Print" are disabled. I don't know why. (Page layout is just for defining margins)

Different when editing a Linked document of an element. In this case, Printer Setup is enabled and it allows to set the page to Letter.

Pages: [1] 2 3 ... 8