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

General Board / Re: Call behavior Activity (CBA) element
« on: December 10, 2018, 08:57:15 am »
I almost got my result but something is still missing.
After I create the element and change the kind manually to call behavior I see indeed that an entry is being created in t_xref table.

Something like this:
{641BA055-0D1A-49d3-A91B-DEA4DDAD0857},CustomProperties,element property,Public, , , , ,0,@PROP=@NAME=kind@ENDNAME;@TYPE=ActionKind@ENDTYPE;@VALU=CallBehavior@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;,{80E581C2-0571-4ccf-8E21-046626CCD5DF},<none>, ,

But when I execute the same insert threw the addin (looking exactly the same as when I moved the kind to "call behavior")
I still don't get the element to change to "call behvior" - still need to move it manully even though t_xref got the entry from the addin.

Do you know what other table is getting updated when I move the kind to "call behavior" besides t_xref?


General Board / Re: Call behavior Activity (CBA) element
« on: December 09, 2018, 08:06:07 am »

I didnt understand you answer.
Let me ask the question again.
I have created a new element, and I have the diagramId of the diagram the call behavior should connect to.
How do I make that connection?
Meaning, where do I put is the connection in t_xref data between the new cba element I have created and the diagramid?

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

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


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

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?


General Board / Re: Connecting 2 elements with dependency connector
« on: October 24, 2018, 06:50:41 pm »

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

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?


General Board / Stereotypes data
« on: October 16, 2018, 04:51:18 pm »
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)


Was already there before posting this post!

Let me be more precises,
My questions are:
1. Where is the 'License Management' dialog located
2. What is the Sparx Systems Keystore?

hope i will manage from there... can you assist with that?


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


General Board / Re: Creating\Updating RunState attribute
« on: February 01, 2018, 08:46:30 pm »

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

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.


General Board / Re: Simulate save (ctrl s) in Addin
« on: January 01, 2018, 07:29:12 pm »
Tried the refresh APIs, none of the worked.

Missed that one  ;)

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

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)

General Board / Re: Update a state of an element
« on: December 10, 2017, 06:00:22 pm »
The issue was with the element.Update() it deleted the value.

You are right,
mixing is problematic but the problem is that there is no element attribute to StateFlags column.


Pages: [1] 2 3 ... 8