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 - dgoetz

Pages: [1] 2 3
1
Bugs and Issues / Project Save As trows an ODBC error
« on: July 11, 2024, 05:47:50 pm »
Hi,

I have a problem with "Saving Project As". There is an old topic about the same problem with EA14 from 2020 - but it seems not to be solved. I am using EA15.

In general the "save project as" works, but this error pops up:

DAO.Workspace (0x00000c4A)
ODBC-call failed

A project integrity check reports no errors.
Any ideas?

Thanks
Dieter

2
Hi Geert,
thanks for your reply. I remembered the storage location on my old computer, but have not found anything there on my new computer

The behavior of EA is like this.
- after the first installation of Enterprise Architect no information about Author, Phase and Version is saved in the registry
- only when you change Author, Phase and Version for the first time, then EA adds the entry in the registry

Storage location in the Registry:
key: Computer\HKEY_CURRENT_USER\SOFTWARE\Sparx Systems\EA400\EA\OPTIONS
Author -> AUTHOR
Phase -> DEF_PHASE
Version -> DEF_VERSION

3
Hello EA users,

is it possible to the read the author as configured in the preferences via the SDK?

Dieter

4
Bugs and Issues / SSKS Keystore Service: Port
« on: September 28, 2023, 05:56:08 pm »
Hi,
does anyone know which port the keystoe service communicates through?

Dieter


5
Hi all,

is there a way to check which major version of EA is being used when opening a project? I know such a feature could be realized with an Add-In. But I am looking for a feature that is part of the EA-Project.
I want to inform the user when opening the EA-Project that he should use another EA major version.

Thanks
Dieter

6
Hi Paolo,

thanks a lot. It works.

Dieter

Code: [Select]
        EA.Package package; EA.Element element; // actually assigned in the Add-In

foreach (EA.Method method in element.Methods) // maybe replace foreach loop by for loop also
{
EA.Element activity = package.Elements.AddNew("Name", "Actvity"); // add new activity
method.Behavior = activity.ElementGUID;  // assign activity to methods behavior
method.StyleEx = "ShowBeh=1;";
method.Update();
string behavior = method.Behavior;  // behavior contains GUID of new activity -> OK
}
        for (short idx = 0; idx < element.Methods.Count; idx++)
{
                EA.Method elementMethod = this.element.Methods.GetAt(idx);
                EA.Method method = EArepo.GetMethodById(elementMethod.MethodID);

string behavior = method.Behavior;   // behavior contains GUID of new activity -> OK
}

7
I try adding an activity for all operations of a class using an Add-In.
It works when the function is exited and returns to EA. The Behavior attribute contains the activity's GUID in EA.

But when I read the Behavior attribute later in the Add-In before it is exited, it is empty.

Is there any Update-Refresh trick? I tried element.Methods.Refresh(); element.Update(); and element.Refresh(); without any effect.

Dieter

Code: [Select]
EA.Package package; EA.Element element; // actually assigned in the Add-In

foreach (EA.Method method in element.Methods)
{
EA.Element activity = package.Elements.AddNew("Name", "Actvity"); // add new activity
method.Behavior = activity.ElementGUID;  // assign activity to methods behavior
method.StyleEx = "ShowBeh=1;";
method.Update();
string behavior = method.Behavior;  // behavior contains GUID of new activity -> OK
}
foreach (EA.Method method in element.Methods)
{
string behavior = method.Behavior;   // -> behavior is empty
}

Sparx EA V15.2.1559

8
Hi Geert,
thanks - it works.

Hi Eve,
GetByName() works for me with qualified tag names.
What is the better method than TaggedValues.GetByname()?

Dieter

9
I have a problem assigning new value to a tagged value and then read it back using C#.

Executing this code fragment, "taggedValueRead" contains the value before assigning the "new" value.
I tried Update() and Refresh() calls, nothing helped.
If the element after execution is unselected in the model and then selected again, the tagged value contains the value "new". Therefore, the tagged value is changed.

Dieter

Code: [Select]
EA.Element element = iEA.GetContextObject as EA.Element;
EA.TaggedValue taggedValue = element.TaggedValues.GetByName("MDG::name");
if (taggedValue != null)
{
    taggedValue.Value = "new";
    taggedValue.Update();  element.Update();  element.Refresh(); // just to be sure

    EA.TaggedValue taggedValueRead = element.TaggedValues.GetByName("MDG::name");
    if (taggedValueRead != null)
    {
        iEA.TabWrite("value: " + taggedValueRead.Value); // -> outputs the old value
     }
}

10
General Board / Re: Connecting a requirement to an operation
« on: February 28, 2021, 10:36:40 pm »
Hi q,

thanks. But I guess you can not use the relationship matrix for this.

11
General Board / Connecting a requirement to an operation
« on: February 25, 2021, 02:41:02 am »
Hey all,

is it possible to connect a requirement with an opration of a class?

Dieter

12
General Board / Re: Usage of Fragments in Report Builder in Sparx EA
« on: October 30, 2020, 09:42:33 pm »
Hi Jacob,

maybe you can use a custom query. Never tried this.

13
The missing frame border only exists for clipboard format Metafile. For Bitmap format the frame border is complete.

14
General Board / Re: Usage of Fragments in Report Builder in Sparx EA
« on: September 01, 2020, 02:20:18 am »
Hi Jacob,
this is a bit tricky.

1. Make a copy of the Template Selector (Right-Click Template in Resources Window). In the original file you have not all rights.
2. Open the copied template
3. Open the "Document Options" (you will find teh icon in the template editor, not in the ribbons).
4. Go to Custom Query, here you will find the template filters.

Dieter

15
Bugs and Issues / Re: State Machine Transition in 15.1.1528
« on: August 31, 2020, 10:49:00 pm »
This bug was caused by an Add-In.

Pages: [1] 2 3