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 ... 5
1
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



2
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

3
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

4
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

5
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

6
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

7
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

8
General Board / Call behavior Activity (CBA) element
« on: December 08, 2018, 08:08:35 am »
Hi,

I am trying to create a call behavior element, connect it to a certain diagram and place on another diagram for it to be used.

I tried creating it with EA.element but it did not give me the element I needed.
Assuming I have the diagram that it needs to connect to and the package that it should sit in,
can someone please advise how to create (AddNew) such element?

Already tried:
EA.element  newAction = toBePlacedPkg.Elements.AddNew("new name", "Action");

Thanks,
Tzafrir

9
General Board / Reading data from imported MDG
« on: October 30, 2018, 07:34:24 am »
Hi,

I imported MDG which included a customized dependency relation between stereotype A to stereotype B.
Now I want to get to that information (this dependency) when running the addin on the Model.
Is there an API that can read data from the MDG?
I did not find this data in the DB. Does anybody knows where it is kept?

Thanks,
Tzafrir


10
General Board / Connecting 2 elements with dependency connector
« on: October 24, 2018, 05:39:46 pm »
Hi,

I am trying to connect 2 elements with dependency connector.
All I see is that there is a getter for the connector the element has.

Does it have a setter as well?
if so which API does that?

Thanks,
Tzafrir

11
General Board / Stereotypes data
« on: October 16, 2018, 04:51:18 pm »
Hi,
Does anyone knows where EA holds Stereotype data
of stereotypes in the profiles which are imported using MDG.

(I looked at t_Stereotypes table and it does not seems to hold them)

Thanks

12
Hi,

I want to have fixed license keys control over my addin.
I triedto use the following methods:
EA_AddinLicenseGetDescription and EA_AddinLicenseValidate.

I put basic implementation of these events in my AddIn
i.e.
returning bool false - for EA_AddinLicenseValidate
returning string "Sample" - for  EA_AddinLicenseGetDescription
But nothing happends

Can someone who used this mechanism provide some sample how those events be activated?

Thanks

13
General Board / Creating\Updating RunState attribute
« on: February 01, 2018, 08:04:58 pm »
Hi,

I need to create\update some runstate attributes of element.
element.RunState returns the getter of the current element's runstates.

Is there an API that updates it (setter).
I am trying to avoid using direct update on the DB.

Thanks

14
General Board / Simulate save (ctrl s) in Addin
« on: January 01, 2018, 06:04:06 pm »
Hi,

Is there an API that simulates save (ctrl s) for example diagram saving,
that I can call during a run of Addin?
(for example will save the diagram in case not saved and then start the APP)


15
General Board / Update a state of an element
« on: December 07, 2017, 05:13:10 pm »
Hi,

I want to update a state of an element with some value.
I did not find any attribute on the element that holds that can be set.

I tried to use the query:
update t_object set StateFlags = 'SomeStateValue' where object_id = ElementID
and then:
repository.Execute(sql);
element.Update();

This did not update it as well.

Does someone know how can it be updated?

Thanks.

Pages: [1] 2 3 ... 5