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

Pages: [1]
1
To do this I first have to connect from my C# application to the data base. My question is mainly how can I do this?

2
I know that it's possible to connect an own C# application to an external SQL database.So I could create own SQL queries in my application.
Do you know about an example how to connect my C# application to the EA internal DB?

Not sure, if I would really use it. But it would be at least interesting to try it once. May be there are reasons to use it later.

3
Hello,

this is a general question more about increasing my knowledge/understanding than really solving a problem.

I have a C# program where I access EAs object model (https://sparxsystems.com/enterprise_architect_user_guide/14.0/automation/theautomationinterface.html) via COM objects. Normally I first iterate through all packages (recursively) to get all the existing wanted elements into my data structure. For example elements can be stored in my C# program as
Code: [Select]
public class EaElement(EA.Element e, string parentFullName)
{
    public readonly EA.Element E = e;
    public readonly string Name = e.Name;
    public readonly string FullName = parentFullName + "/" + e.Name;
}
So later I can use my C# internal data to find the related elements.

On the other hand I could also store only the ID of the element (not the object reference) and query the real element always from the repository.

With my currently used object storing I have a somewhat bigger amount of COM objects in my data. Could this be a problem? I'm not 100% sure about those object lifetimes and whether there is a limit in the number.

Sometimes I got a COM exception when try to use such an object. Or even not all objects seems to be returned from my first "object gathering". But that's quite seldom and might be more that I created some garbage when developing my C# program and stop "somewhere in the middle". This is more a feeling than a fact.

EA documentation talks always about tables. And I know that internally there is a (SQL?) database that holds the data in tables (as normal SQL databases do). Would it be better or even more performant to get this table content directly? I wouldn't know how. But at least in the beginning, where I first gather the information what is all existing in my model, this might be a better way.

I'm pretty sure there are many people outside that have more knowledge about this issue than i. May be they can share some info that increases my knowledge  ::)

4
Automation Interface, Add-Ins and Tools / Actual C# source code parsing
« on: August 08, 2024, 08:50:17 pm »
I have program version 16.1.1626 and want to read c# source code. (un)fortunately I moved recently from old .Net Framework to actual .Net. Therefore I'm also usind the new language features, e.g. primary constructor.
But my EA version can't handle this.

Is there a way to read also such code correctly in?

5
General Board / Re: Display order for classes in class diagram
« on: July 07, 2023, 03:31:52 pm »
I'm not aware that there is a possibility to sort it at all. Do you know a way how to do it manually?

6
General Board / Display order for classes in class diagram
« on: July 06, 2023, 06:57:10 pm »
Not sure if this was asked already before, but I couldn't find something in the forum.

In a class diagram methods and attributes are sorted alphabetically. The visibility (public, protected, private) is shown also. So all good. But the question came whether it's possible to sort then first agains visibility and then alphabetically. In that case I have all public or private items directly underneath each other.

I guess this is not possible. Or does someone know how to do it? Defining special stereotypes according visibility, which would group the items, should work but is not so nice.

7
Hello,
when I read in my C# code properties get the properties stereotype attached. That's nice. But in a class diagram they are shown as operation with the round braces behind. This is not perferctly right.

Does someone know a way to get them displayed as attributes?

BR
Erwin

Pages: [1]