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.


Topics - Knut Paulsen

Pages: 1 2 [3]
31
Automation Interface, Add-Ins and Tools / Relationship matrix profile
« on: September 18, 2012, 07:36:56 pm »
Hi guys,

Anybody know how to transfer relationship matrix profiles from one project to another?

And where are they stored? I have searched registry, windows settings and database without finding them ...

Cheers
Knut

32
Automation Interface, Add-Ins and Tools / EA_OnPostInitialized
« on: September 03, 2012, 10:16:44 pm »
Hi guys,

According to the manuals this method 'notifies Add-Ins that the Repository object has finished loading and any necessary initialization steps can now be performed on the object'.

And the repository parameter is described as 'An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information'.

However, when I implement this method it is called when EA starts, BEFORE I connect to any project. This seems to me to be in stark contrast to the description of the method and parameter. I would expect it to be called after the model has been properly initialized.

Is it just me, or is this weird?

What I am really looking for is a way to get some code executed after EA has loaded the model, but before the user is able to do anything.

Appreciate any help :-)

Cheers
Knut

33
Hi guys,

I have created a set of statuses and constraint types under General Types that I use for requirements and use cases. I have also created an MDG Technology containing diagram templates and toolboxes and a package structure, which can be selected from the Model Wizard when a new project is created.

It all works very well, except from one annoying issue. I cannot see how to get my element statuses and constraint types into newly created model. Is this impossible, or am I missing something?

Alternative question: If it turns out that there is not way of including the statuses in the MDG, I know it is a possibility to export statuses as reference data. Is it possible to automatically import reference data like this when a model is created?

Cheers
Knut

34
Hi guys,

Has anyone successfully retrieved baselines from another DBMS/File than the on you are currently in?

The following code gets the same set of baselines regardless of the value of connctionString, and the set of baselines is from the current  model.

Project project = m_Repository.GetProjectInterface();
String baselines = project.GetBaselines(project.GUIDtoXML(package.PackageGUID), connectionString);

Any help will be appreciated :-)

Cheers
Knut

35
Automation Interface, Add-Ins and Tools / Estimation factors
« on: May 24, 2012, 06:08:22 pm »
Hi guys,

I have a problem with the estimation factors for the use case points calculation that I hope you can help me with.

Ideally, I would like to be able to specify the ECF and TCF parameters on a per folder basis rather than for the entire project. Realizing that this is not possible in EA, I was thinking about keeping my ECF/TCF parameters in a separate table or file and then do multiple use case points calculations and then just add the individual results. There seems to be two problems with this approach:
1) I cannot find a way to manipulate the ECF/TCF factors using the API. I could of course go directly towards the t_ecf and t_tcf tables, but an API solution is preferable.
2) Also, I cannot find a way to trigger the use case points calculation via the API.

Any ideas? Grateful for any help :-)

Cheers
Knut

36
Hi guys,

The Repository object has methods for saving and clearing the audit trail log, but as far as I can see there is no method for loading an audit trail file.

Any suggestions?

Thanks
Knut

37
Hi Guys,

I have a problem getting rid of the EA.exe process after using the repository via the automation api. The following test code will open two different DBMS repositories, one using OpenFile2 and one using OpenFile and then close them again. After the two calls to CloseFile, both EA.exe processes appear in the task manager, but after my program exits, only one of them disappears, hard to tell which of the two processes that refuses to go away. Using C#, Win XP and MySql.

Any ideas?

try
            {
                m_RepositorySource = new Repository();
                m_RepositorySource.OpenFile2(c_SourceConnection, "user", "password");

                m_RepositoryTarget = new Repository();
                m_RepositoryTarget.OpenFile(c_TargetConnection);

                m_RepositorySource.CloseFile();
                m_RepositoryTarget.CloseFile();

                Environment.Exit(0);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString(), "Something failed", MessageBoxButtons.OK);
            }

38
Automation Interface, Add-Ins and Tools / Add-In Description
« on: November 22, 2011, 06:40:55 pm »
Hi guys,

When you open the Manage Add-Ins dialog from the Add-Ins menu and click on an Add-in, a description appears below. I would like to control what is written here, but I haven't been able to find a way to do this.

Any suggestions?

BR
Knut

39
Hi guys,

I would like to set the font color, then draw the native shape of an element. But I cannot find any way to set the font color from the shape script. Any ideas?

br
Knut P.

40
Automation Interface, Add-Ins and Tools / Ghost language profile
« on: October 04, 2011, 04:14:23 pm »
Hi guys,
I have created a language profile in which I do a simple modification of a use case element by setting a different fill color. And this works fine in the project where I maintain my language profile.

However, if I open any other project the use case elements do not have the expected color, instead they are decorated according to a language profile that I have removed long ago. I used to decorate the use case element with a small image, but this image is no longer part of my MDG file.

So, it is obvious that EA in some way remembers this old language profile, but I have scanned the installation directory and the registry without finding any trace of it. Anybody have a clue what is going on?

Pages: 1 2 [3]