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
1
General Board / find profiles xmi in the model
« on: Today at 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

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

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

4
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

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

6
General Board / Re: Call behavior Activity (CBA) element
« on: December 10, 2018, 08:57:15 am »
thanks,
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:
XrefID,Name,Type,Visibility,Namespace,Requirement,Constraint,Behavior,Partition,Description,Client,Supplier,Link,
{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?

Thanks,
Tzafrir

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

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?

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 / Re: Connecting 2 elements with dependency connector
« on: October 24, 2018, 06:50:41 pm »
thanks

11
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

12
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

13
Was already there before posting this post!

http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/automation/add-in_license_management_even.html

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?



14
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

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

Pages: [1] 2 3 ... 8