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

Pages: 1 2 [3] 4
General Board / Getting a value from EA.Attribute
« on: August 01, 2016, 05:55:17 am »
This is probably pretty simple but I can get the value from EA.Attribute.

I am getting all the attributes in the element (using element.AttributeEx)
Then running on all the attribute I am getting, I am seeing that I am getting the attribute name.

But I cant get the attribute value,
I tries to get a collection EA.Attribute attribute.TaggedValuesEx\TaggedValues and attribute.Notes
None of these is working even though I have values for the attribute in the Model.

Does anybody knows the correct API for this matter?

General Board / Using web service in EA
« on: July 14, 2016, 03:51:17 am »
I have created a webservice, tested it (in visual studio) and saw that it is working properly.
I am now trying to make it work from AddIn.
I have added the ServiceReference Service.wsmx file to my references.

I have then added the using declaration:
using MyAddIn.MyServiceReference;

as needed for the webservice to be recognize.
Now I compiled and opened EA, EA loaded my AddIn and everything was OK.

When I added the line:
private MyServiceSoapClient client = new MyServiceSoapClient(); (which compiles ok)
But when opening EA and looking in the Manage AddIns, I am getting Error missing 0x80040154, and AddIn is not loaded.

As anyone encountered in such behavior, or know what is missing? because the error is not informative...


General Board / Updating Diagram.StyleEx attribute
« on: July 03, 2016, 01:19:55 am »

I am updating StyleEx variable with new data. (i.e. modifying its one of the ; separated variables, the MDGDgm one, with a new value) and updating the diagram with this new string:

currentDiagram.StyleEx = newStyleEx.

after that I am doing

I have noticed that the variable is not getting updated.
Is this a read only variable that can not be modified?
or there is another way to have the diagram updated with the newStyleEx value.


General Board / How to determine the profile of a diagram
« on: June 23, 2016, 05:20:45 am »

Does anybody know how to determine either by API or field in table (t_diagram was my thought but its not there).
the profile that contain the diagram type.

I have a diagram type that is called basic flow that extends Activity diagram, this definition resides in profile named 'ABC'.
When I have the type of diagram (ABC) I would like to know the profile.

Another note, the profile are imported to the model using the MDG technology.


General Board / Get a collection of diagrams the Model
« on: June 22, 2016, 03:19:30 pm »
I need to get all the diagrams in my model
I tried to do it by getting all the IDs\Guids of all the diagrams in my model.

I used the repository API (for IDs):
sql = "select Diagram_id from t_diagram";
string result = repository.SQLQuery(sql);
But then I need to parse the resulting string xml.

(GetElementSet API did not help me for that matter as well)

Is there a more efficient way to do it by getting a direct EA.Diagram collection by using EA API?

General Board / API for marking an element on tree
« on: June 05, 2016, 03:20:38 pm »
Is there an API that sets the tree focus on a given element?
(Assuming I have the element GUID).
Only found a getter API (repository.GetTreeSelectedItem())


General Board / Adding new table to DB
« on: May 19, 2016, 05:49:20 am »

Is it possible to add a new table to the DB or is it closed DB only for internal use?
If it is possible, what api is the best to use in order to run queries on it?


General Board / Shrinking open package tree
« on: May 10, 2016, 12:02:11 am »

I am doing some manipulation on elements underneath a package which results in opening of the package in the model tree.
Is there a way to collapse the package back to its original closed position in the tree after I am done?
I did not find an API that does that...


General Board / Get the generalized stereotype of stereotype
« on: April 15, 2016, 04:49:48 am »
I would like to get the inheritance hierarchy of stereotypes.
Currently I see stereotype are returned from elements as string only.
Can this be performed with some API?


General Board / Package clone API
« on: April 11, 2016, 05:53:38 pm »

Is it possible to use the Clone API (or similar API),
that will not clone the package on the same level, but put the cloned package in a different place?

General Board / Transform an Activity object into CallBehavior object
« on: April 07, 2016, 04:18:43 am »
I have an "Activity UML object", taken from the model tree (in the AddIn code it is EA.Element),
What I want my AddIn to do is, once I am taking that object and putting it on the diagram,
that it will be switched to a CallBehvior object.

I managed to do it in EA without AddIn coding,
is this something this something AddIn coding can do?

General Board / Log or Traces in EA
« on: April 06, 2016, 07:19:16 pm »

Is there any Logger API or some trace that can be used in the AddIns?


General Board / Replacing description name in EA ManageAddIns tab
« on: March 28, 2016, 04:18:41 pm »

Geert (or anyone else who knows),
I am using the MSI installation document you shared which works perfectly,
Just a small question, I want the description tab (In EA->Manage Add Ins) to be filled.
I tried the various description places, but non of them seems to be replacing the AddIn name in the tab (might have missed the correct one).
Is it even do able or always the AddIn name?

General Board / Refresh model tree after deleting a package
« on: March 23, 2016, 03:13:56 am »

I have deleted a specific package using the EA API.
Now I want to refresh the model tree that will not show the deleted package without need to manually touch it and get a pop up that it was deleted by other user (my app).
I tried updating its Parent Package, repository.RefreshModelView(id) but non of them work.

Does anybody knows the correct API that I should be using?

General Board / Sql query for retreiving all packages in model
« on: March 18, 2016, 06:40:10 pm »

Is there an SQL query that I can get all (and only) packages in the model?

Pages: 1 2 [3] 4