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

Pages: 1 ... 4 5 [6] 7 8
Uml Process / Connector Labels
« on: January 17, 2008, 01:56:13 am »
In EA connectors may have labels, in the EA 7.0 user guide page 394/5 it shows how to hide/show these labels. The dialog refers to lables such as

Source Bottom Label
Source Top Label


How are the values for these labels set?

On a connector, say in a class diagram the link property shows one label (the middle top), so how are the others created?

I am using the SysML extension at the momment, and one of the examples shows a Source Top Lable on a sequence diagram message, so how was it set?

Any help much appreciated.

Uml Process / xor constraint on associations
« on: January 14, 2008, 04:08:59 am »
Does anyone know how to create an xor constraint across two associations as supported in the UML?

I can easily attach a single constraint note to one assoication, but can this note be linked to the other association?

I am using EA version 7.0

Calling all UML Profile and MDG Gurus

I have created and am still creating many UML profiles, wrapped up as MDG.

One aspect has always frustrated me regarding the use of user defined structured tagged values. Lets' give an example

1) Create a new user defined tagged value (Settings | UML Types...) say [highlight]MyMemo[/highlight] which has a definition of [highlight]Type=Memo;[/highlight]

2) Create a Stereotype called [highlight]MyStereo [/highlight]which extends the metaclass UML::Class (it could be any other metaclass actually)

3) Add an attribute called MyMemo of type MyMemo to MyStereo

4) Save the UML profile.

5) Create the MDG technology (ID MyProfile)  and select to add the profile and tagged values, and yes MyMemo appears and can be duly added

Now we test the profile.

So we add the path to our new MDG restart EA and create a new project and create a simple class diagram and add and element of type MyStereo to it. Looking at it properties, we find a tagged value correctly in the profile named section BUT  it does not have type MyMemo, but type String  >:(

The only work arounds I have are

1) Export the tagged values from the project containing the UML profile
2) Import the tagged values to ALL projects that use the profile


In the profile definition, name the attribute of MyStereo [highlight]MyProfile::MyMemo[/highlight] (that is prefix the tagged value name with the ID of MDG technology)

The last is the most elegant and results in the correct type BUT the name of the tagged value in the element dialog is MyProfile::MyMemo

Question: using method 2 how do I get rid of the MDG ID prefix in the properties?

It can be done (look at BPMN or SysML profiles .... but how?) ... preferably without hacking the MDG XML.



Automation Interface, Add-Ins and Tools / Export / Import Reference Data
« on: January 16, 2014, 02:48:04 am »
Hi Guys

Does anyone know of an API function that will export (and more importantly) import Reference Data?

Ideally the API function (if one exists) should accessible in Scripting rather than an Extension)

I realise I may be able to process the Reference Data xml file directly in the Script, but I would like an easier way if possible


Automation Interface, Add-Ins and Tools / ProjectTransfer Function
« on: November 29, 2013, 10:42:23 pm »
Hi All

I am investigating some automated functionality most likely using a JavaScript within EA , and part of it will use the [highlight]ProjectTransfer[/highlight] function from the Project Class

Has anyone any examples of use of this function that can share?

In the user guide it states that this function can transfer a repository from DBMS or EAP to EAP, whereas in the EA menu we can of course transfer between DMBS -> DBMS, EAP ->EAP, DBMS -> EAP and EAP  -> DBMS

Are all of these combinations possible using the [highlight]ProjectTransfer[/highlight] function?

All comments welcome


Hi All

Below is an extract of JavaScript behaviour in an operation within a state

Trace("Initial completed");
for (var i=0; i < 5000; i++)

[highlight]dialog.TrafficLightSimulation.SecDownLights.Text="RED YELLOW";[/highlight]

I wish to crate a simulated delay between the colours of the lights, hence a simple for loop

However, when I run the script all is fine until the highlighted step, where the following is displayed:

[highlight]TypeError: $Root.Get("dialog.TrafficLightSimulation.SecDownLights") is null[/highlight]

How can this be when it has the value "RED" and displayed correctly on the dialog?

Any ideas?

Have installed the latest version of Eclipse (i.e. Juno Service Release 2) and installed the latest version of the EA Eclipse MDG integration.

All installs fine and I do see an Enterprise Architect menu option in Eclipse Juno.

However upon selecting any one of the two options from the Enterprise Architect menu in Eclipse Juno, the following Eclipse error appears

[highlight]The chosen operation is not currently available[/highlight]

Any ideas?


Couple of questions

The information regarding this MDG state

[highlight]providing significant interoperability enhancements for Microsoft's Team Foundation Server.[/highlight]

However all the documentation I have (either Help menu) or PDF user guide provides minimal or non-existent information in this area.

I would expect to be able to connect to a TFS serrver without connecting a VS solution, since all I wish to do is integrated Work / Task items etc ... however I cannot discover how to do this or even it is possible!

I am using the latest version of the MDG, version 4.5.1

Any advice would be most appreciated



Automation Interface, Add-Ins and Tools / RedefinedToolbox
« on: April 18, 2012, 12:29:05 am »
Hi All,

In the EA user guide (I am using version 9.3 build 931), it states:

[highlight]To replace one of Enterprise Architect's default Toolboxes with one of your own (for example, if you have your
own version of the UML::Class Toolbox that you want to be opened every time a Class diagram is opened -
as long as your technology is active) then include a RedefinedToolbox clause in the Notes field for the
diagram properties of your ToolboxProfile diagram.
For example, the profile diagram's Notes field could resemble the following:
Re d e f i n e d To o l b o x =UML : : Cl a s s ; Al i a s =Cl a s s ; No t e s =St r u c t u r a l e l eme n t s f o r
Cl a s s d i a g r ams ;[/highlight]

I have created an MDG technology with a toolbox profile. On the Notes field for the Toolbox Profile diagram I have the following:

[highlight]RedefinedToolbox=UML::UseCase;Alias=Cambridge Assessment;Notes=Elements for Cambridge Assessment Requirements Modelling;[/highlight]

However, when a Use Case diagram is opened, the default toolbox appears and not my Defined Toolbox as in the RedefinedToolbox clause.

Anyone else experience the same? Have I done anything wrong? My MDG is certainly active.



Just curious, I use Visual Studio 2010 for my development. What version of .NET do you guys use for writing your add-ins, and does it really matter?

I am more curious as to whether you use .NET 3.5 or .NET 4.0 and which would be more suitable for commercial deployment


Automation Interface, Add-Ins and Tools / Where is StereotypeEx held?
« on: October 12, 2011, 01:23:17 am »
Hi All

There is an API functional called StereotypeEx which returns all applied stereotypes for an Element, Connector etc

But where is this information held in the underlying repository? I have a need to extract this information using a SQL query, particularly the StereotypeEX for a connector

It is not in the t_object t_connector tables not can I find in t_xref, it must be somewhere!

Any help most appreciated.

Cheers Phil

Automation Interface, Add-Ins and Tools / t_diagram.HTMLPath
« on: September 14, 2011, 09:39:10 pm »
Hi All

Does anyone know what the field t_diagram.HTMLPath is used for, was used for, or will be used for?

I need to store some extra info regarding diagrams and looking for somewhere to put it that will not interfere with other commonly used properties.

It would be nice if Diagrams had tagged values  ;)



Automation Interface, Add-Ins and Tools / EA_OnPreDelete events
« on: September 13, 2011, 08:08:59 pm »
Hi All

I am writing an add-in which responds to the broadcast events


I have observed (by writing a very simple add-in) that if a CTRL+DEL is peformed on multiple elements, diagrams, or packages ... then this event is broadcast once for item in the selection. So far so good.

My intention (and indeed inferred by the User Guide) is that I can override this event and let the add-in decide whether or not each item in the selection is in fact to be deleted by returning true or false accordingly.

This works, BUT as soon as my Add-in returns false , the entire delete activity is abandoned and no further broadcasts are received.

Is this the behaviour intended by Sparx? Or is it a bug?

I would like to continue to receive a broadcast for all items in the selection, not abandon upon the first return of false.

Anyone else experienced this?



Automation Interface, Add-Ins and Tools / MDG_MDGGetProperty Method
« on: May 21, 2011, 01:06:23 am »
Hi All

I am writing an MDG Add In and all works well so far, however I am having a little trouble in implementing the method MDG_MDGGetProperty which in C# returns an Object type

According to the user guide THREE items have to be returned:

1) IconID (used to change the project browser icon)
2) Language
3) HiddenMenus

The user guide does make it at all clear how these values are to be returned, are they one string and if so how are the values identified?

The skimpy example in the user guide implies THREE returns under the control of if statements, does EA call this event three times?

In addition, is the IconId an actual ico in the sense of an Icon resource in a Visual Studio project?

Any assistance would be gratefully appreciated



Hi all

Does anyone know if it is possible to automate the synchronisation of tagged values held within a UML profile?

The idea is automate the process of opening the resources view, righ-clicking on an element within a UML Profile and selecting Sync Tagged Value and Constraints...

Cannot find any clues within the EA User guide and I am using EA version 8.0 (the latest build)



Pages: 1 ... 4 5 [6] 7 8