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

Pages: [1] 2 3 ... 18
Automation Interface, Add-Ins and Tools / Check-in Package - Hook API
« on: April 18, 2016, 06:09:31 pm »

I would like to intervene in the process of checking in a package.
Is there any API that allows it?
I didn't find anything makes sense in the EAAddinBase class..

Thanks in advance!


I would like to get programmatically the Version Control version of a controlled package.
Which EA table stores this information?

Thanks in advance!


I would like to convert an EA.Package to an EA.Element.
The following cast fails: 
Code: [Select]
EA.Package parentPackage = Repository.GetPackageByID(idOfParentPackage); // existing package. success
EA.Element parentPackageAsElement = parentPackage as EA.Element; // fails

Any ideas?

General Board / Re: What causes relation between packages?
« on: March 20, 2016, 10:22:01 pm »
Some things you might have forgotten:

- Relations between packages
- hyperlinks to elements or diagrams


What do you mean by "Relations between packages"?

General Board / What causes relation between packages?
« on: March 20, 2016, 07:54:17 pm »

Our model consists of several projects, where as a project is a branch.
Sometimes a project uses assets of another branch. In case of a problem we should reverse the project to a previous version along with its related packages.

 I therefore would like to develop an add-in that recognizes relation among the projects, and here is my questions:
What are the parameters that EA rely on in order to recognize relations among packages?

According to Geert's great article ( I found the following: 
1. In case there is an object on my project, that its classifier is from another project, there is a relation between the package.
2. In case a diagram in my project contains an element from another package.
3. In case there is a relation between element in my project (as source) and an element from another package.
4. In case an attribute in my project is of type that defined in another package.
5. In case a returned type of an operation in my project is a type that defined in another package.
6. In case a parameter to an operation in my project is of type that defined in another package.

Do I cover all of the relation scenarios? any other ideas?
Thanks in advance!


General Board / Scenario Mapping from Sequence Diagrams
« on: February 23, 2016, 10:28:21 pm »
I use Sequence Diagrams to show how flows of Use Case are implemented.

I would like lean on the Sequence diagram to map the possible scenarios to an Excel sheet.
I mean: according to the conditions in the sequence diagram flow I will have an ordered list of possible scenarios and output. Such as:

if condition 1, 2 and 4 are met -> then the output is A
if only 2 and 4 are met -> then the output is B
if only condition 1 is met -> then the output is C
and so on...

Is there a built-in feature that performs this or something similar?

reference :

General Board / Sequence diagrams: messages font size
« on: February 11, 2016, 09:08:45 pm »
I create a sequence diagram in EA and copy it to power point.
The messages font is too small for comfortable viewing.

F4 sets the lifelines font size, but how can I set the messages size?

Thanks in advance!


General Board / Re: SVN Checkout Error
« on: January 14, 2016, 06:06:07 pm »

it looks somehows as an SQL error. I'm not sure about it.

If so: Look at: %APPDATA%Sparx Systems\EA\DBError.txt


Indeed DB error. The text file does not provide any other information but the error I mentioned.
Any ideas?

General Board / SVN Checkout Error
« on: January 13, 2016, 09:11:41 pm »

I use a Version Controlled model (SVN).
When I checkout a package I get the following error several times:

Invalid Opeation

The package indeed checked out afterwards.
Any ideas?

General Board / Interfaces Documentation
« on: January 03, 2016, 06:32:19 pm »

I generate a report for a Component-View model.
The components names are reported as expected, but their interfaces are not:

Let's assume a component has a provided and required interfaces.
Only interfaces names are reported, without their attributes or operations.

The same is for a component with a port: I can see the port name in the document, but cannot reach its interfaces nor their operations.

How can I add embedded element's details to the document template?

Thanks in advance!

General Board / Sequence Diagrams and Statemachine Simulation
« on: December 24, 2015, 07:57:34 pm »

I would like to understand how sequence diagrams can correspond and state-machines:

In sequence diagrams you show the message exchange between objects: EA allows only to show operations.
In EA StateMachines you have to use triggers.
But the triggers cannot be used in Sequence Diagrams!

How do these concepts play together?

Suggestions and Requests / Post Archive
« on: October 05, 2014, 11:19:25 pm »
This forum seems to be very useful.

I assume that questions sometimes are very similar or simply repeat themselves. Previous posts can answer other members or may inspire them so they won't need to post another thread.

The search engine of the forum seems to be not very efficient, my suggestion, then, is to store the threads in a archive so it would be more convenient to search previous posts.


Suggestions and Requests / Re: convert EA elements
« on: December 03, 2013, 09:59:16 pm »
Yes- The diagram hyperlink is a member of the diagram objects.
But, in order to access the 'Text' element we ought to convert it to EA.Diagram object.
Well- I did it like this:

foreach(EA.DiagramObject diagramObject in diagram.DiagramObjects)
EA.Element element= Repository.GetElementByID(diagramObject.ElementID);

Now. I would like to get the appropriate EA.Diagram
EA.Diagram diagram=Repository.GetDiagramByGuid(element.ElementGUID);
 but the diagram's GUID is different from the element's GUID. and an error was occurred: "Can't find matching ID"  :(

So how can I do it???

Pages: [1] 2 3 ... 18