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

Pages: [1] 2 3 ... 9
1
General Board / Re: Get the list of tags of a connector
« on: September 15, 2019, 03:43:34 pm »
Thanks for the help,
casting to EA.ConnectorTag solved the issue.

2
General Board / Get the list of tags of a connector
« on: September 13, 2019, 06:07:01 am »
Hi,
I am trying to get the list of tags that are associated with a ST, that is associated to a connector.

I found an API that gets the tag from the connector:
EA.Collection tagCollection = connector.TaggedValues;

but trying to run over them with simple loop:
for(short i = 0;i< tagCollection.Count; i++)
{
  EA.TaggedValue tag = (EA.TaggedValue)tagCollection.GetAt(i);
  tagName = tag.Name;
}

I get exception that casting cannot be done, and can not do this conversion.

Can someone tell me how can I overcome it? or other way to get the tags of the connector?

Thanks



3
General Board / Re: Relation between stereotype and its tags
« on: July 07, 2019, 05:18:26 pm »
What I want to do is to compare the MDG vs the current status in model.

My problem is where does EA holds the info (what tables in DB?),
that let the GUI know that difference of which ST goes with which tags. 

4
General Board / Relation between stereotype and its tags
« on: July 07, 2019, 03:36:29 pm »
Hi,
Assuming I have element's stereotypes
(for example it has 2 st).
How can I know which tags related to which stereotype?

TaggedValues property gives me all the tags of the element (combining all the ST together)
I want to know them separately.

Is it possible?

Thanks,
Tzafrir

5
General Board / Re: Tags of specific Stereotype
« on: June 13, 2019, 04:23:00 pm »
Lets assume that in my case the MDG is in fileSystem folder,
Can you set a short example on how to create an instance of the ST?
(or the only way to do it is parse the xmi?)

The objective of this,
is to get changes in the MDG appear in the model itself correctly after modifying it (and running the Synchronize command)

6
General Board / Tags of specific Stereotype
« on: June 13, 2019, 03:02:17 pm »
Hi,

I need some help in finding out where data is stored in DB (or in memory),
That holds for each Stereotypes its related tags.

Thanks,
Tzafrir

7
General Board / Re: Synchronize stereotype
« on: May 12, 2019, 07:26:56 pm »
thanks for the help

8
General Board / Synchronize stereotype
« on: May 06, 2019, 01:19:44 am »
Hi,

I would like to simulate the action of synchronizing a stereotype from an Addin.
The action in EA is:
Go to toolbox tab -> choose any stereotype -> click Synchronize StereoType.

Is this action feasible threw the EA API?

Tzafrir

9
General Board / Column in DB that holds the description of element
« on: April 12, 2019, 12:12:28 am »
Hi,
Where does the description field is held in DB for elements?
This is kind of basic question but I could not find this field.
Only that t_package has Notes field, while t_object does not have it

Thanks

10
Hi,

Does anybody knows which table holds the information of the stereotype properties.
In EA, I get to it by Right click -> Edit with profile helper.
Then I am looking for the icon property there under "Display options".

Thanks
Tzafrir

11
General Board / find profiles xmi in the model
« on: January 23, 2019, 06:11:16 pm »
Hi,

I am trying to retrieve information from the imported profile model that I use in my model (using import MDG to my model) with the AddIn that I am writing.
Does EA keeps the information it is importing in DB (if so in which tables?)
or does it have some reference to the profile xmi that I can parse (if so where is that reference held?)

Thanks,
Tzafrir

12
General Board / Re: Call behavior Activity (CBA) element
« on: December 25, 2018, 07:15:56 am »
Hi,
I am still having issues with creating this CBA.

Seems like when I remove the command:
repository.Execute(sql);
(when sql holds the insert to t_xref table, EA crushes after it exists the Addin with no explanation why it throws exception.

Can someone send me a short sample of creating CBA so I can compare it with my code.

Thanks.

13
General Board / Re: Call behavior Activity (CBA) element
« on: December 19, 2018, 06:17:17 pm »
Hi,
I found that the issue might be due to my GUID generation method.
I am creating it as basic:
{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXX}
tried X as Hexa\ random number between 0-9 and got some guid that at the end after refreshing I guess EA does some validation rules on it and crashes.

When I took EA guid and changed one of its numbers it and generated the insert with it, the close\open sometimes works and sometimes does not (so i guess it relates to the number I change) of the diagram is working and does not crush.

My question is, can you send me a sample code that generate guid correctly according to EA validations?

14
General Board / Re: Call behavior Activity (CBA) element
« on: December 19, 2018, 03:25:52 am »
Hi,
Seems like I still have an issue with the refreshing of the model.

After adding the insert to t_xref as mentioned above a refresh to the DB must take place in order for the element be affected by the insert and become call behavior.

I have tried to do it in several way none of them worked and EA crushes after completing the Addin code.
1.  repository.RefreshModelView(0);
2.  repository.RefreshModelView(element.PackageID);

I have seen that closing the diagram and open it manually (not threw the add in) refreshes it correctly (but that's not good as well everything needs to be done in the addin). Doing it like this, it crushes:
3.  repository.CloseDiagram(diagramId)
     repository.OpenDiagram(diagramId)
   

After saying all that can someone advise another way to refresh that insert so that the element will pick the new insert and become Call Behavior?

Thanks

15
General Board / Re: Call behavior Activity (CBA) element
« on: December 10, 2018, 11:35:11 pm »
thanks for your help,
RefreshModelView solved the issue.

By the way,
in order to create the insert I am generating GUID for XrefID by myself.
Do you know an EA API that does that?

Pages: [1] 2 3 ... 9