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

2
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


3
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

4
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

5
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

6
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

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


8
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.

9
General Board / Swimlines attribute
« on: October 26, 2017, 04:20:54 pm »
Hi,

Is there an attribute that represents the swimlines attribute of an element?


10
General Board / Adding a new table
« on: September 18, 2017, 04:29:46 pm »
Hi,

Is is possible to add a new table to the already existing EA tables for personal use?


11
General Board / Using event on EA start up
« on: August 15, 2017, 02:48:07 pm »
Hi,

I need to run some logic when EA starts up.
Is there event that jumps up and I can catch when EA starts
(besides EA_Connect(EA.Repository repository) which has almost no information on repository obj)

Thanks,
Tzafrir

12
General Board / Question regarding profiles
« on: May 25, 2017, 05:32:38 am »
Hi,
I have 4 questions regarding profiles:

1. What table holds the profile info.
2. In what table there is data for the all the stereotypes of a certain profile.
3. Can I get the tags of stereotypes somehow?
4. Does a tag have objectId\guid?


Thanks

13
General Board / Question regarding uploading a new profile
« on: May 21, 2017, 06:35:23 am »
Hi,
I have 2 questions regarding the procedure of loading a new profile:

1. Is the command Synchronize Stereotype (available in EA menus) is available somehow through the EA API.

2. If there is a specific tag of a Stereotype in a profile and in the model it has values.
If you rename the tag, and load a new MDG profile.
What I want to do is recognize the old tag, copy its value to the new tag and delete the old tag.
The question is does this recognition can be done?

thanks.






14
General Board / Synchronize profile API
« on: March 26, 2017, 04:01:27 am »
Hi,

Is there a way to synchronize stereotypes from a profile.
In EA there is a command "Synchronize StereoType", I want to activate the same command using my addIn.

Thanks

15
General Board / isOpenDiagram API
« on: March 16, 2017, 05:28:40 pm »
Hi,

Is there an API that returns if a diagram is open on the screen?

Pages: [1] 2 3 4