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 - Helmut Ortmann

Pages: 1 ... 49 50 [51] 52 53 ... 59
751
If you want to compare *.xmi files you may ask Stefan Bolleininger. If I remember right I has done something.

If I remember right in the community is something about batch import/export.

Besides all: Comparing *.xml files isn't an easy job. If you are able to reduce the compare to a small subset it might be useful. If you want to compare full UML than you have a great task and you possibly will fail.

Helmut

752
In EA you may use:
- VBScript
- JScript
- JavaScript

There's also a degugger available to make testing a lot easier.

Helmut

753
Both is possible. Use the method you like most.

Usually the start with scripting is easier because you don't need the Addin stuff.

Helmut

754
Hi,

I hope I understood you right.

The Data Modeling Report  calls the fragment "Template Selector" in the section element.

In the "Template Selector" click on options, Custom Query. In the documentation you find something about Template Selector.

Helmut


755
I've tried it it works.

Although a diagramobject is selected sometimes I get with rep.GetContextItemType() an otNone. That has the effect I have to click on the selected diagram element once more to make the Addin work as expected. That's bothers.

The problem occurs:
- My Addin reload the diagram
- My Addin selects the wanted element
- rep.GetContextItemType() returns a otNone.

Thanks,

Helmut






756
A context element in a diagram I can get with repository.getContextObject(); My usual way to get the last selected element.

It works well.

If a reload a diagram the context element is lost. I would like to set it again so that I can work with is by an Addin.

I think your question guided me to the solution.

I select one diagram element after reload the diagram. That's all and simple. If I get no context element I just take the one selected. I haven't seen the simple solution.

Thanks a lot for your question.

Helmut

757
Hi,

is it possible and how to set the context element in a diagram.

I can select Diagramobjects but not say this i the context object.

Thanks,

Helmut

758
Great work!

Helmut

759
Hi,

in pkg.Flags = "SNSP=true";// surpress
in pkg.Flags = "SNSP=false";//show

You have to consider that there are also other flags.

Tip:
Make a little *.eap repository and make:
select * from t_package.

Thomas Kilians e-books are often a help.

Helmut

760
You can use every language which support Windows COM.

There isn't a lot in the EA API to access EA GUI.

I don't know of any scripting environment for C#. You can use C# without a scripting environment.

Helmut

761
Hello Mathias,  

EA support both VBScript and JScript. If you select :
Settings, MDG Technology, EAScriptLib
you will find valuable examples for scripts.

Helmut


762
Is it possible to display a Relationship Matrix with an Addin?

Thanks,

Helmut

763
Hi,

the most convenience way to control your addin is by using the addin-window.

To accomplish that you have to write an Active X control.

Geerts Navigator with free source code is a good example for that.

I admit, my first Addin with addin window tooks me some time. Looking in the code of the Navigator gives you some clues.

Helmut



764
If you are interested in more think about buying Thomas Kilians eBook Scripting EA.

Also a good resource is Geerds 'Your first Addin in 10 minutes' or so in the community.

Helmut

765
Automation Interface, Add-Ins and Tools / Re: Automation
« on: March 11, 2014, 11:20:54 pm »
Hi Maggi,

the code is part of a C# Addin and it writes to the repository by means of SQL (Structured Query Language).

The first line simply sets a variable with the SQL update Code.
The second line makes an undocumented EA API call to run the update to the repositoy.

If you are interested in Addin go to the community and search for Geerts Tutorial (First Addin in 10 Minutes).

With Addins you can do almost everything. Things not part of the API you can solve by SQL as described above.

Helmut

Pages: 1 ... 49 50 [51] 52 53 ... 59