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

Pages: [1] 2 3 ... 18
1
Somebody had the same problem: https://www.sparxsystems.com/forums/smf/index.php?topic=35950.0.

Paolo said: "AFAIK there is no way to access the "layout tools" (Circle Box etc.) from the API." Is this still true for the current version of EA?

2
Hi, in EA there is an option Layout > Tools > Diagram Layout > Box. I thought that I could assign this attribute to a diagram via ConstLayoutStyles. But I do not see the way for doing that. There is no constant for "Box". Could somebody tell me if this is possible at all? Many thanks in advance V.

3
Solved my issue.

Thank you.

4
Many, many thanks Geert. I will try. Yes, directory = package.

5
Hello experts,

I have a very simple problem, so I thought at least. I have a directory in SparxEA. In the directory is a diagram. The C#-program identified the directory by GUID via EA Object model (I do not know the GUID of the diagram). But both attributes Diagrams and Elements of the directory-object are empty (Collection with 0 items). Can somebody tell me how I can retrieve the diagram?

Many thanks in advance, V.

Element anElement = aRepository.GetElementByGuid(aGUID);
foreach (EA.Diagram aDiagram in anElement.Diagrams) {  }

6
Automation Interface, Add-Ins and Tools / Re: Import C# - unexpected result
« on: November 20, 2018, 10:20:31 pm »
Well, to be honest, your code doesn't contain any attributes either. :-X

So it fact it seems that the result in EA is an exact representation of your code, including the fact that you choose to make your attributes implicit.
I guess this is the way EA distinguishes implicit from explicit attributes.

Geert

My code describes "Auto-Implemented Properties" / "Automatic Properties". My understanding is that this class uses attributes. And I doubt that getters and setter make sense without attributes (at least most often).



7
Automation Interface, Add-Ins and Tools / Re: Import C# - unexpected result
« on: November 20, 2018, 03:42:10 am »
My expectations are:

I expected the EA importer to create:
- (private) attributes and
- getters (which are operations) and
- setters (which are operations)

If without setters and getters then I would expect that the EA importer creates public attributes (so setters and getters are not needed).

The reality (what the EA importer produces) is:

Instead the EA importer created operations, one for each line. Furthermore the class was stereotyped with "property". So there are NO attributes.

8
Automation Interface, Add-Ins and Tools / Re: Import C# - unexpected result
« on: November 20, 2018, 02:59:54 am »
Thank you, q.

Open the Property Attribute for an attribute to see the different switches.

I am sorry. I do not understand what you mean. There are no attributes, only operations. That's why I am asking.

9
Automation Interface, Add-Ins and Tools / Import C# - unexpected result
« on: November 20, 2018, 12:47:13 am »
Hi experts,

I imported C#-code into EA with Code Y Source Code > Import Code.

I expected the importer to create attributes with getters and setters or at least public attributes.

Instead it created operations, one for each line (1). Furthermore the class was stereotyped with "property" (2).

Is that behavior ((1) and (2)) correct?

Many thanks in advance, V.

public class Security
    {
        public string description { get; set; }
        public string id { get; set; }
        public string name { get; set; }
        public string self { get; set; }
    }

10
Many thanks, peterc and Geert. O.K., I will go with virtual documents. V.

11
Hi, we have created several models (top level packages) within EA. Each model reflect a domain. The models are interrelated, meaning that they reference each other. We would like to export all models that also users without EA-access can see the content. This was not possible in the past (see also https://sparxsystems.com/forums/smf/index.php?topic=21624.0). My understanding was that EA is becoming more and more a tool that supports EAM. So it should be possible to export all models into one html-site because all together represent the view of the enterprise. Is there a possiblity to export all models at once in the meantime or to integrate the models later? Many thanks in advance, V.

12
Glad it helped :) :)
Arshad

Do you also have a solution for this: "Unfortunately I get only Alias + Attribut Name instead of Attribut Name + Alias. For my opinion the alias shoud be at the second place." ?

13
Hi Viking

Please enable Alias and Name in the Alias usage section of Diagram -> Behaviour tab in preferences.




and in the diagram setting please enable Use Alias if Available in Diagram -> Appearance



You will get both name and alias displayed .

HTH
Arshad

Thank you very much, Arshad. This works.

Unfortunately I get only Alias + Attribut Name instead of Attribut Name + Alias. For my opinion the alias shoud be at the second place.

Just for your Information: I cannot see the pictures, uploaded by you.

V.

14
Hi,

I would like to show additional information of an attribute of an UML class. Default is that the class shows its attributes with formats and its methods.

The best way would be to use and show aliases in addition. Unfortunately the alias “replaces” the name of the attribute. So I tried tagged value, but I can only show the tagged value of a class. Another possibility would be to use the attribute name plus the alias name as alias and show the alias. But than I would have redundant information.

Is there a way to show additional information of an attribute (e.g. attribute name plus alias)?

Many thanks, V.

15
Why would it be a workaround?
You started from a template that reports everything. Feels pretty normal to have to filter it out to leave out some parts.
Personally I always start templates from scratch. That way I know exactly what is getting reported and what not.
Geert

Thank you for clarification, Geert.

Maybe you are right. My point is that the report includes diagrams, which are in other packages than the intended ones. They are just referenced by hyperlink. They have completely different meanings. The concept of Sparx says that a report includes packages.

V.

Pages: [1] 2 3 ... 18