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

Pages: 1 [2] 3 4 ... 36
General Board / Re: Sparx EA V13.5 Beta
« on: May 19, 2017, 07:27:03 am »
Yes great news indeed, I too received the e-mail, but did not see any download link for version 13.5 Beta 1

Is this only available from request to Sparx, or did I miss something?


Automation Interface, Add-Ins and Tools / Re: Insert a Legend
« on: April 19, 2017, 05:59:49 pm »
Following on from QWERTY's post

I have done this for a client using a script (jscript) and yes it is very convoluted.

Once you have deciphered the t_xref entry you then have to:

a) create a legend element
b) insert this entry into the t_xref table, which includes the link to the element created in a)
c) add the legend to the diagram

You will also have to investigate the type of element a legend is and discover a way to generate a GUID for the t_xref entry.

As there is no API to add directly into t_xref, I used the undocumented function execute on a SQL INSERT statement for the t_xref

Oh, the colours in the t_xref entry do not appear to be standard integer values from RGB!

As QWERTY suggested, create yourself a little eap create a diagram and then add a legend, then inspect the underlying tables. This is what I did to work it all out.

Best of luck!


General Board / Re: SysML Requirements - Copy relationship
« on: March 15, 2017, 10:19:17 am »

When a copy relationship is used between SysML requirements, the tagged value named text is copied.

Create a SysML requirement diagram and set element Tag compartment to be visible
Create a requirement and enter some text in the SysML tagged value, named text
Create a second requirement and relate to the first via Copy relationship
Note the value in the Text tagged value in the second requirement, it is the same as the first requirement and read only
Make a change to the text tagged value in the first requirement and notice the change is replicated in the second requirement


A method I used to set an automated orthogonal route was to set the Path property of each connector on the diagram.

Each connector was obtained from the DiagramLinks collection from a diagram and then for each DiagramLink element in the collection the Path was set.

The Path is the coordinates of the "Bend Points" in the form of a delimited string:

"Bend1X:Bend1Y;Bend2X:Bend2Y; ... BendNX:BendNY;"

I calculated the bend points using some offset constants which were then added or subtracted from the height / width of the elements I was starting to or from.

After changing the Path, the DiagramLinks collection was Refreshed and the diagram reloaded.

Hope this helps in some little way.


Bugs and Issues / Re: Tagged Values in a Profile
« on: January 27, 2017, 11:46:27 pm »
When creating an MDG and using the MDG helpers you are prompted for and MDG ID, this is used to name your profile packages

This MGD ID must be the same as the ID used in the ID in the MDG Generation wizard, it also must be less than or equal to 12 chars and ideally contain no spaces.

Then all should be OK


General Board / Re: Respository Usage Statistics
« on: January 10, 2017, 11:22:24 pm »
Thanks qwerty will explore along those lines.


General Board / Respository Usage Statistics
« on: January 10, 2017, 10:46:05 pm »
Hi All

I have a need to collect and report on repository usage statistics in a multi-user repository with security enabled. For example, when users have connected, disconnected and their total connect time.

I believe EA does not capture this data within a repository.

One method would be to create an add-in that responds to the File_Open and File_Code broadcast events, and creates a log file which can the processed at some future stage.

Is there any method that does not use an add-in at all?



General Board / Re: Connect Oracle to Enterprise Architect
« on: December 23, 2016, 01:51:00 am »
I would also use the Oracle supplied OLE DB drive and not the Microsoft version which does not work with EA.



General Board / Re: Get a gateway's "Type"?
« on: December 13, 2016, 07:10:25 am »
I would try looking through the Tagged Values, since that is where the type of gateway is et when using BPMN 2.0

You can enumerate




Try the following

SELECT t_object.ea_guid CONCAT t_object.Name

     AS "BaseClassName.Hyperlink"

     FROM t_object, t_connector

     WHERE t_connector.Start_Object_ID = #OBJECTID#

     AND t_object.Object_ID = t_connector.End_Object_ID

     AND t_connector.Connector_Type = 'Generalization'


Bugs and Issues / ArchiMate 3.0 and Compositions
« on: November 30, 2016, 01:41:45 am »
When using ArchiMate 2.0 and EA (prior to version 13) and in Version 13, creating a composition relationship between two elements, and then nesting the child inside its parent, causes the composition relationship to be hidden on the diagram, which is exactly what I want, and is very useful.

However, I have just migrated a model from ArchiMate 2.0 to ArchiMate 3.0, and these compositions are NOT hidden within nested structures, which is disappointing and rather annoying.

Anyone else noticed this? If so, has anyone reported this?


Automation Interface, Add-Ins and Tools / Re: SelectTargetPackage Dialog
« on: November 07, 2016, 09:21:55 pm »
Answer was staring me in the face.

Just use InvokeConstructPicker("IncludedTypes=Package");

Brings up the Select Item dialog rather than select Target Package Dialog, but end result is the same.



Automation Interface, Add-Ins and Tools / SelectTargetPackage Dialog
« on: November 07, 2016, 08:22:22 pm »
Hi All

Does anyone know if there is an API function to invoke the SelectTargetPackage dialog?

I am aware of InvokeConsructPicker but this is a different dialog to the one I am after.

I have searched the AIP reference but cannot seem to find such a function.



Fixed it!

The problem was with the XML encoding string

It should be utf-8 and not Unicode (UTF-8)

What confused me was that using the Code Generation from the Project Browser, the dialog lists Unicode (UTF-8), hence I used that in the script.

However, upon examining a generated XSD schema, I found t should be utf-8, put that in the script and it worked!

My correct call is

projectInterface.GenerateXSD(projectInterface.GUIDtoXML(thePackage.PackageGUID), fileName, "utf-8", "GenGlobalElement=0");

where filename has been obtained as :

var fileName = projectInterface.GetFileNameDialog("", "XML Schema Files (*.xsd)|*.xsd", 1, 2, "C:\\EA-Projects\\", 1);


Definite red-face time  :-[ Should have spotted the missing : after C

Added the missing : same result

Access Denied

However, by converting the string GUID to XML using GUIDtoMXL, I get rid of the access denied, but it still does not work  >:(

This time I get

Unspecified error

with GetLastError returning a null string. So no help or clue there.



Pages: 1 [2] 3 4 ... 36