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

Pages: [1]
1
And here we go again  ;)
I got another question
Is it possible to find out which Element appears in which Diagram(s) via the API?
At the GUI that is not a problem at all simply right click on the Element at the Tree View and select "Find in all Diagrams".

Thank you!

2
Thanks for the quick response!
Are you sure it worked in previous versions? I currently use the dll from an EA 8 version an tried it in 8 and 10 and in both it did not worked.

Anyway thanks I might give the workarround a try!

3
Hello
I got another question about the API.
I want to create an EA Diagram automatically with an Add-In.
To create several classes (interface...) ports or connects is not the problem.
The problem is to positioning the elements especially the Ports.
By default the EA locates every new element in the upper left corner. Every element lays over another and the user has to drag each of them to a position. This is really annoying.
To set the position of an interface or class you simply use this code
Code: [Select]
string position = String.Format("l={0};r={1};t={2};b={3};", left, right, top, bottom);
diagram.DiagramObjects.AddNew(position, elementToAdd.Type);
But this does not work for ports at all.
EA just ignores every postion for a port  I am passing in.
Does anyone got an idea how I can set the postion of an port?
I know it depends on the rootElement on wich the port is attacht to.
I guess I just use the wrong String format but I couldn´t figure the right one out.

Thank you!

4
Thank you very much! This was exactly what I was looking for!
Is the book, which you quote in your post available as open book or something like that?

5
It is a Dependency and with "Link to Element Feature" the connector is bind to an certain operation of the class.

If I open the 'Dependcy Property' dialog the string next to 'Source' would be all I need.

Got any idea?

6
The problem is not to find the ports or the class(interface) the problem is to find the correct method which the port is connected to via a Connector.
And from the connector object as far as I know I only get the class element not the specific method.

7
Hello Community
I am working on an Add-In which should parse the currently selected diagram.
Lately I am running into some issues about getting the right information from the API.
I got a diagram which has a base class with several ports and a subclass with some methods.
The methods from the subclass are linked to the ports from the base class.
My Problem is now how to figure out which method and which port belongs to each other.
Does the connector object provides this information if it is so which is the right property?
At the GUI it is just obvious at the property dialog of the connector there is a source string like ‘className.MethodName’. This string is all I need basically.
Got anyone some ideas?
Thank you!

Pages: [1]