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 ... 6 7 [8]
Hi All

I have developed a large UML profile for a client which contains numerous stereotyped elements and assoicated tagged values.

All works just fine.

Is there any way on the UML Profile export/import process to preserve the order of tagged values so that they agree with the order of the attributes of the elements on the UML profile, instead of arranging them alphapbetically as EA does at present?

This occurs when the profile is imported and used in an EA project

Thanks and regards

Does anyone know of a method using the Object Model how to obtain the diagram to which a Diagram reference (UML Diagram Element)?

I am looking to obtain either the diagram ID or the diagram GUID


Automation Interface, Add-Ins and Tools / Cloning a Root Node
« on: May 29, 2009, 11:35:02 pm »
Is it possible to clone a project root and its subsequent View/package structure?

If I export a Root, and attempt to re-import into the same project the process fails with a "Root with the samer name already exists" message.

The reason for this is for modelling variations of a model all adhering to a common structure

I would like to be to export the root to xmi and import the xmi into the same project.

How is this achieved?

Hi All

I am developing an add-in which produces customized documentation in Word using the EA object model and MS Word Interop.

Output into Word of the Notes property of an element is easy as below


However, if the Notes field contains RTF formatting, the output appears similar to below:

This group of users has access to <font color="#ff0000"><b><i>all</i></b></font><b><i> </i></b>functionality of the application

Copying and Pasting directly from the element property dialog into Word works just fine, preserving all the formatting.

But using the Windows clipboard as:

Clipboard.SetText(element.Notes, TextDataFormat.Rtf);

Outputs the text as if the notes were written directly (ie with the tags)

Using the below produces a Word error, persumably since the Html is incomplete (no <html><body> tags):

Clipboard.SetText(element.Notes, TextDataFormat.Html);

Adding the missing <html><body> ... </body></html> stiil produces a word error.

Does anyone know:

1) How to get the notes property form an element with ALL the formatting so that it will output/paste correctly?


2) How to copy/paste elemen.Notes so as to preserve the formatting?


Automation Interface, Add-Ins and Tools / DualCollection vs Collection
« on: January 27, 2009, 10:43:08 pm »
Simple question, what is the difference between EA.IDualCollection and EA.Collection?

When would you use one over the other?

My Add-In uses EA.IDualCollection at the momment and works fine, but I would like to see a formal definition.

I believe there is also EA.IDualElement and EA.Element, so on a more generic level what is the difference between EA.IDualx and EA.x?


Automation Interface, Add-Ins and Tools / Re-connection of a Connector
« on: November 27, 2008, 03:10:21 am »
Hi All

I am working on an add-in that deals with connectors and I need to detect if a connector is being re-connected using the dragging to a new element method.

My add-in is registered to receive the event EA_OnNotifyContextItemModified and at the momment, I simply display a simple dialog capturing the connector GUID, names of the elements using clientId and supplierID as shown in the code below:

public void EA_OnNotifyContextItemModified(EA.Repository Repository, string GUID, EA.ObjectType type)

            if (type.ToString() == "otConnector")
                EA.IDualConnector theConnector = Repository.GetConnectorByGuid(GUID);
                string[] details = new string[3];
                int clientID = theConnector.ClientID;
                int supplierID = theConnector.SupplierID;
                details[0] = "client : " + Repository.GetElementByID(clientID).Name;
                details[1] = "supplier : " + Repository.GetElementByID(supplierID).Name;
                details[2] = "connector GUID : " + GUID;
                debugForm = new DebugForm(details);
                debugForm.Text += " : Modified";

All works well, when I move a connector which starts at Element A (the client) from its supplier (Element B) to a new supplier (Element C), the event is captured twice.

This I would expect since the connector is being disconnected and re-connected (two changes), but the client and supplier info is the same in both events. Specifically, only the new supplier info is shown.

Is there any method of detecting the original supplierID and the new supplierID when a connector is moved in this manner?

Hope what I seeking to do is clear in the above


Automation Interface, Add-Ins and Tools / Placing Diagrams to Clipboard
« on: October 06, 2008, 11:29:02 pm »
I have developed an Add-In which produces documentation using Word. To place diagrams into this document I have used the following method from the Repository class


This works just fine, however when the images are placed on the clipboard, they are opened and appear as diagrams.

I have noticed that when using the in-built RTF generator this does not happen. Is there anyway using an Add-In to place a diagram image on the clipboard without it opening ... just like the RFT generator.

In addition, once on the clipboar, a simple Paste in Word does the job, but large diagrams do not scale to fit the page in the word document. Is it possible to scale the diagram to the page size, before copying to the clipboard?


Hi All

Is there any way to extract the Keywords text (as entered in an Element properties), using the Object Model?

I have searched the UserGuide and can find no such method or property


Automation Interface, Add-Ins and Tools / Server Busy Dialog
« on: August 20, 2008, 02:02:37 am »
Hi All

I have written an Add-in which launches an external tool from within EA, the add-in then waits for the external tool to finish executing (it behaves therefore like a modal dilaog)

All works just fine, when I close the external tool, a dialog appears in EA titled "Server Busy".

Upon clicking the Retry button on this dialog, everything resumes as normal.

Is there are way to stop this dialog appearing?


Automation Interface, Add-Ins and Tools / Add-in not registering
« on: August 21, 2008, 12:38:10 am »
Hi All

I have written an Add-in using c# and Visual Studio 2008, the target build is .NET 3.5

All works well under Visual Studio, however when I try to deploy to a client's machine, the registration of the add-in dll fails.

I have followed the details in EA user Guide 7.1 page 1335 section which states that the .dll is stored somewhere and then registered using regsvr32, but I receive the following error:

Add-in.ddl was loaded but the DllRegisterServer entry point was not found

The file cannot be registered

I have set the Visual Studio build options to Register for COM interop and the configuration is Active (Debug)

What am I missing or doing wrong?

I always get the error no matter where the .dll is stored.



Automation Interface, Add-Ins and Tools / Add In Exception
« on: July 08, 2008, 01:28:54 am »
Hi All

I am developing an addin in C#.Net to produce documentation using MS Word.

I have used the Sparx C# Add-in Framework, and Word launches just fine.

All compiles/builds/installs OK and all my Add-In menus are then upon opening a project.

The Add-in works fine for the first time, however, upon a subsequent invocation I receive a dialogue stating

RPC Server Unvailable

Any ideas?


Pages: 1 ... 6 7 [8]