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 [4] 5 6 7
46
General Board / Using web service in EA
« on: July 14, 2016, 03:51:17 am »
Hi,
I have created a webservice, tested it (in visual studio) and saw that it is working properly.
I am now trying to make it work from AddIn.
I have added the ServiceReference Service.wsmx file to my references.

I have then added the using declaration:
using MyAddIn.MyServiceReference;

as needed for the webservice to be recognize.
Now I compiled and opened EA, EA loaded my AddIn and everything was OK.

When I added the line:
private MyServiceSoapClient client = new MyServiceSoapClient(); (which compiles ok)
But when opening EA and looking in the Manage AddIns, I am getting Error missing 0x80040154, and AddIn is not loaded.

As anyone encountered in such behavior, or know what is missing? because the error is not informative...

Tzafrir





47
General Board / Re: Updating Diagram.StyleEx attribute
« on: July 04, 2016, 03:06:43 pm »
Ok,

Can you tell me what SQL API you are using to perform an update?
repository.SQLQuery(sql);
throws on exception for missing a "Select" keyword

48
General Board / Updating Diagram.StyleEx attribute
« on: July 03, 2016, 01:19:55 am »
Hi,

I am updating StyleEx variable with new data. (i.e. modifying its one of the ; separated variables, the MDGDgm one, with a new value) and updating the diagram with this new string:

currentDiagram.StyleEx = newStyleEx.

after that I am doing
currentDiagram.Update().

I have noticed that the variable is not getting updated.
Is this a read only variable that can not be modified?
or there is another way to have the diagram updated with the newStyleEx value.

Tzafrir







49
General Board / Re: How to determine the profile of a diagram
« on: June 26, 2016, 12:28:51 am »
change profile means - delete old profile and loading a new MDG profile. Meaning old profile that appears in DGM does not exist anymore

50
General Board / Re: How to determine the profile of a diagram
« on: June 25, 2016, 05:58:02 am »
Hi,
You did not answer my question, let me reexplain what I need.
The DGM attribute in StyleTx holds the profile info at the time the diagram was created.
In case of a profile change, when the diagram is now in a diffrent profile, this attribute holds the value of the old profile and not the current updated one.

My question, where (what attribute) does EA holds the current profile, since when a new diagram is created, it knows to put the correct profile info in the DGM place meaning it holds this value somewhere.

I need to know where.

Tzafrir

51
General Board / How to determine the profile of a diagram
« on: June 23, 2016, 05:20:45 am »
Hi,

Does anybody know how to determine either by API or field in table (t_diagram was my thought but its not there).
the profile that contain the diagram type.

Example:
I have a diagram type that is called basic flow that extends Activity diagram, this definition resides in profile named 'ABC'.
When I have the type of diagram (ABC) I would like to know the profile.

Another note, the profile are imported to the model using the MDG technology.

Thanks

52
General Board / Get a collection of diagrams the Model
« on: June 22, 2016, 03:19:30 pm »
Hi,
I need to get all the diagrams in my model
I tried to do it by getting all the IDs\Guids of all the diagrams in my model.

I used the repository API (for IDs):
sql = "select Diagram_id from t_diagram";
string result = repository.SQLQuery(sql);
But then I need to parse the resulting string xml.

(GetElementSet API did not help me for that matter as well)

Is there a more efficient way to do it by getting a direct EA.Diagram collection by using EA API?

53
General Board / API for marking an element on tree
« on: June 05, 2016, 03:20:38 pm »
Hi,
Is there an API that sets the tree focus on a given element?
(Assuming I have the element GUID).
Only found a getter API (repository.GetTreeSelectedItem())

Thanks,
Tzafrir

54
General Board / Adding new table to DB
« on: May 19, 2016, 05:49:20 am »
Hi,

Is it possible to add a new table to the DB or is it closed DB only for internal use?
If it is possible, what api is the best to use in order to run queries on it?

Thanks,
Tzafrir

55
General Board / Shrinking open package tree
« on: May 10, 2016, 12:02:11 am »
Hi,

I am doing some manipulation on elements underneath a package which results in opening of the package in the model tree.
Is there a way to collapse the package back to its original closed position in the tree after I am done?
I did not find an API that does that...

Thanks,
Tzafrir

56
General Board / Get the generalized stereotype of stereotype
« on: April 15, 2016, 04:49:48 am »
Hi,
I would like to get the inheritance hierarchy of stereotypes.
Currently I see stereotype are returned from elements as string only.
Can this be performed with some API?

Thanks,
Tzafrir

57
General Board / Re: Package clone API
« on: April 11, 2016, 07:18:32 pm »
Ok,
Thanks

58
General Board / Re: Package clone API
« on: April 11, 2016, 06:51:03 pm »
Yes, I know that,

Let me reexplain:
My business case is that the package that I am cloning from is in Read\Write mode.
and I want to change it to ReadOnly mode.

The problem is that cloning can be done only in a Write mode state.
Is there an API that I can do it in one action Clone and put the ParentId together?

Tzafrir

59
General Board / Package clone API
« on: April 11, 2016, 05:53:38 pm »
Hi,

Is it possible to use the Clone API (or similar API),
that will not clone the package on the same level, but put the cloned package in a different place?

60
Hi,
The issue is transforming the EA.Element from Activity to CallBehavior.
With placing it on the diagram I am fine.

Pages: 1 2 3 [4] 5 6 7