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 - Knut Paulsen

Pages: [1] 2 3 ... 6
1
Automation Interface, Add-Ins and Tools / Re: Addin enabled or disabled
« on: January 13, 2017, 10:38:57 pm »
Thanks Uffe,

found it :-)

br
Knut

2
Automation Interface, Add-Ins and Tools / Addin enabled or disabled
« on: January 13, 2017, 08:41:32 pm »
Hi guys,

Does anybody know where EA stores information about weather a given addin is enabled or disabled?
And is this setting per EA project or all or none?

br
Knut

3
I had a discussion with Geert about this some time ago, but can't find it now :-)

Anyway, if you are interested the GUID of the Model Default Diagram is stored in the database table 'usys_system' under property name 'Default Diagram', and the GUID of the User Default Diagram is stored in the database table 't_xref' with Name 'Default Diagram', Type 'User Setting', Client is the GUID of the user (from table 't_secusers') and Supplier is the GUID of the default diagram.

Cheers
Knut

4
Thanks Uffe, I know :-)
Was just about to post the solution.
ShowInProjectView does indeed solve this problem.

br
Knut

5
I am not entirely sure what you mean with '#Branch#'. But, the search is set to return elements for the selected package and NOT the entire model, because this is what I want. I just seem to have no control over what is 'the selected package' :-)

6
When I run it inside EA it gives the expected result, i.e. all the elements that I expect to see.

7
Minor development ...

It appears that the package returned by Repository.GetTreeSelectedPackage() is the package containing my User Default diagram. So if I only needed to report from one package, this could be a solution. But, I create reports from many different packages.

I have a working solution where I run recursively through packages and find all the elements I need, but the model search is SO much faster.

cheers
Knut

8
Hi Guys,

I have a problem I just cannot figure out. In a reporting program I start an instance of EA and I want to use a Model Search to find some elements. The problem is that GetElementsByQuery seems to operate on the currently selected folder in the project browser, and since I am running without the user interface it is kind of hard to select a folder.

I have had limited success by calling Repository.RefreshModelView with the package id of my preferred package just before running the search.

Does anybody know how to force the model search to start in a given package?

Cheers
Knut

9
Automation Interface, Add-Ins and Tools / Re: Result of a model search
« on: October 20, 2016, 06:22:07 am »
Thanks Geert,

Exactly what I was looking for :-)

How did I not see that one?

cheers
Knut

10
Automation Interface, Add-Ins and Tools / Result of a model search
« on: October 19, 2016, 11:42:47 pm »
Hi guys,

How do I get hold of the result of a model search? I want to do stuff to the elements I find.

The repository has a RunModelSearch method that displays the result in EA.
The Project Class has a RunModelSearch where you can select to not display result in EA. If I select not to, where does the result go?

Cheers Knut

11
General Board / Re: EA project suddenly turned readonly
« on: July 01, 2016, 08:15:00 pm »
Got it :-)

Somebody had turned on 'Require user lock to edit'. Trying to find ou who :-)

br
Knut

12
General Board / EA project suddenly turned readonly
« on: July 01, 2016, 07:00:59 pm »
Hi guys,

The strangest thing happened today. One of our EA projects turned readonly, i.e. we cannot update anything, even with administrator priviliges. All other projects work as normal.
EA Client 12.1 talking to a MySql database via EA Cloud. Restarted MySql server, but it did not help. The are no locks visible in EA (from Project/Security/Manage Locks), but if I write a program that tries to update an element, it fails and the exception says Element is locked. Trying Release User Lock on packages and elements does not help.

Has anybody experiences something similar?

cheers
Knut

13
Thanks Geert,

Some other solution then :-)

Cheers
Knut

14
Using Repository.InvokeConstructPicker works fine for selecting elements and packages, but I need to select a diagram and it seems not to be supported.
But EA does show a dialog for selecting a diagram when you specify Diagram for the open action of a Hyperlink element.

Anybody know how to do this?

Cheers
Knut

15
General Board / Re: Use of Enterprise Architect in a real project
« on: March 17, 2016, 05:14:25 pm »
Thanks guys,

In theory, they should only read the model, but of course issues may arise which require changes to the model, which in turn should not interfere with the ongoing work for the next sprint.

It is hard for me to see how this can be accomplished within one EA project, so I am thinking of creating two EA projects for each project. Project_R is for requirements work and Project_D is for developers. When I am ready to start a sprint I create a baseline in Project_R, which I transfer to Project_D. Now, if some issue in ongoing sprint requires changes to the model, that change can be made in Project_D. However, these changes must of course be merged into Project_R at some point. Still have some research to do to see if that is feasible.

Cheers
Knut

Pages: [1] 2 3 ... 6