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 ... 3 4 [5] 6 7
61
General Board / Refresh model tree after deleting a package
« on: March 23, 2016, 03:13:56 am »
Hi,

I have deleted a specific package using the EA API.
Now I want to refresh the model tree that will not show the deleted package without need to manually touch it and get a pop up that it was deleted by other user (my app).
I tried updating its Parent Package, repository.RefreshModelView(id) but non of them work.

Does anybody knows the correct API that I should be using?


62
General Board / Re: Sql query for retreiving all packages in model
« on: March 21, 2016, 09:11:56 pm »
thanks

63
General Board / Re: Sql query for retreiving all packages in model
« on: March 21, 2016, 04:49:16 pm »
When I run the following command:
EA.Collection result = repository.GetElementSet("Select Package_id from t_package", 2);

I am getting the following error:
DAO.fields [3265] item not found in this collection

When running,
EA.Collection result = repository.GetElementsByQuery("Select Package_id from t_package","");
I am getting
"Search Not found"

This query extracts values using EA Builder with no errors, what is the correct way of getting those Ids?

64
General Board / Sql query for retreiving all packages in model
« on: March 18, 2016, 06:40:10 pm »
Hi,

Is there an SQL query that I can get all (and only) packages in the model?


65
General Board / Event that start up when Model is open
« on: March 17, 2016, 06:48:01 pm »
Hi,
Does anyone know if there is an event that jumps when a model is opened?
I could not find such one in this link:
http://sparxsystems.com/enterprise_architect_user_guide/12.1/automation_and_scripting/addins_2.html

Tzafrir

66
General Board / Cloning EA.Element
« on: March 17, 2016, 05:03:26 pm »
Hi,

Is there an API to clone EA.Element, similar to the cloning API of a package EA.Package package.Clone()?

Tzafrir

67
General Board / Re: Retrieve tags of a package
« on: March 15, 2016, 11:47:01 pm »
thanks

68
General Board / Retrieve tags of a package
« on: March 14, 2016, 04:10:25 am »
hi,
I have tag in a package which I am trying to retrieve using EA API.
The only API that I found that is related to tags is from EA.Element (element.Tag)

For Package, there is no API to retrieve its own tags.
Is there a way to retrieve it throw EA API?

69
General Board / Available tables and their field in EA
« on: March 13, 2016, 05:04:04 pm »
Hi,

Is there a link that describes all the available tables and their fields in EA?

Thanks,
Tzafrir

70
General Board / Completely remove AddIn from Manage Add In window
« on: March 10, 2016, 05:14:04 pm »
Hi,

Is there a way to completely remove AddIn, that it will not appear in Extention -> "Manage Add In window"?

Thanks.

71
General Board / Re: SysML is jumping on EA_OnPostNewElement
« on: March 09, 2016, 09:17:39 pm »
The problem is that you dont know the order of the events, since they will jump on the same action of putting a new element on the diagram.
If there is no one event that has both properties,
I will try find a way to overcome it.

Thanks,
Tzafrir

72
General Board / Re: SysML is jumping on EA_OnPostNewElement
« on: March 09, 2016, 08:32:48 pm »
I actually dont need the new Element, I just need to get data from it (stereo type and coordinates)
For the stereo type - EA_OnPreNewElement will give me the results.
For the coordinates - I see that EA_OnPreDropFromTree gives me the X\Y cordinates of the object.

Is there anyway to communicate between the two or is there an event I did not find that gives me both with the same event?
My logic is based on what I will do on the first event (EA_OnPreNewElement),
I will need to put on the diagram (maybe using EA_OnPreDropFromTree)

73
General Board / Re: SysML is jumping on EA_OnPostNewElement
« on: March 09, 2016, 04:53:56 pm »
Ok, i understand what I did is not a good resolution, but as suggested by your support,
Can I use  EA_OnPreNewElement, get information from the "going to be created" new element, like its stereo type,
without using:
A.EventProperty prop = (EA.EventProperty)info.Get(0);
EA.Element newElement = repository.GetElementByID(int.Parse(prop.Value.ToString()));
and then return false

74
General Board / Re: SysML is jumping on EA_OnPostNewElement
« on: March 08, 2016, 05:15:17 pm »
The code that deletes the new element comes later on in my code, and it indeed deletes the new element . Then  the SysML AddIn jumps.
Is there a way to disable the SysML in some cases or under some configuration?

75
General Board / Re: SysML is jumping on EA_OnPostNewElement
« on: March 08, 2016, 08:01:58 am »
Let my clarify my last post,

The problem is not with My AddIn,
SysML has its own postEvent API in its AddIn and it is jumping on the new element probably trying to load the new element and fails because it does not exist anymore in the model.

My question is, is there anyway I can disable it, since I dont have SysML source code?


Pages: 1 ... 3 4 [5] 6 7