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

Pages: [1] 2 3 ... 18
1
Automation Interface, Add-Ins and Tools / save diagram as SVG
« on: November 22, 2023, 05:50:01 pm »
I was very happy to see that I - manually - can save a diagram as SVG in EA 16.1 by Publish/Save/Save-to-File.

How can I do that using the API?

SaveImagePage seems to know the output formats EMF, PNG, and JPG only.

2
The Find Orphans search is very helpful for cleaning up the content of a model. I follow the rule: "A model element must be mentioned at least in one diagram".

However, when I use a Data Type as an Item Conveyed for an Information Flow connection between two components and that Data Type is not placed in any other diagram, it is listed in orphans as well.

I would justify this as a bug in the search command, because the name of that element is mentioned on a diagram and therefore should not be listed as an orphan.

3
Do not know about EA SaaS. I just checked my checkbox there: Start/Prerences - a Preferences dialog opens. Select "General" from left tree menu.

Should look like this one.

4
General Board / need help with an SQL query
« on: April 28, 2023, 01:14:52 am »
I am looking for a query that finds all elements having a certain string in their stereotype name - EA 16.1, SQLite database.

Quote
select ts.Stereotype stereotype, to2.Name, to2.Object_Type "type" from t_stereotypes ts
join t_xref tx on tx.Description like '%' || ts.ea_guid || '%'
join t_object to2 on tx.Client = to2.ea_guid
where ts.Stereotype like '%<Search Term>%';

works, if I substitute <Search Term> with a stereotype name or a part of it.
When leaving the <Search Term> in, the SQL query does find anything.

Where is my problem?

5
 :)

6
I once I have seen, that you can configure something (I could not find) so that in the project browser window under a parent package, diagrams will be sorted above child packages. Default is the opposite.

Where is the checkbox of this magic option?

7
General Board / Re: How does EA store second stereotype?
« on: February 15, 2023, 05:51:30 pm »
thank you Geert, that works.

8
General Board / How does EA store second stereotype?
« on: February 15, 2023, 04:46:32 am »
I would like to find all stereotypes by an SQL query. Any idea?

9
General Board / Re: XML Schema Generation
« on: February 13, 2023, 03:15:56 am »
@Geert: here is the link to Imgur.com. But why this forum offers a button Insert image that puts the markup [img ][/img ] in the text? How can I use  [img ][/img ] to show an image directly?
@qwerty: Every other generation seems to be quite logic, except this one. Looks to me as a failure in generation. Maybe I should file an issue at Sparx.

10
General Board / Re: XML Schema Generation
« on: February 11, 2023, 04:49:29 pm »
@qwerty: May be I was not clear enough: I do not ask about a relation between UML and XSD. In my example model, the class Check has an association to itself. And its a zero-to-many relation. The XSD generator of EA translates my model to minOccurs="1" maxOccurs="1", while I expected minOccurs="0" maxOccurs="unbounded".

That is, the XSD generator of EA translates my model to a relation between the Check parent and its related Check children as if I had a one-to-one relation in my model. But that is not true. In the model it shows a zero-to-many relation between Check and itself. In the same way as there is a zero-to-many relation between the classes Check and Detail. The XSD generator translates that relation as I have expected. Why not for the Check:Check relation in the same way?

The question is: Is my understanding or model wrong or is the XSD generator of EA in error?

the image of the class diagram
I would love to show the model image here, but was not able to find a description, how the [img ][/img] markup works.

11
General Board / Re: XML Schema Generation
« on: February 11, 2023, 03:50:48 am »
As you may see, Geert, on the Check diagram the association contains zero-to-many (0..*).
This works fine in generation between two different classes but not in recursion.

To the model I have added a Detail table, Check table is the master. Both associations are zero-to-many, the recursive one and the one from Check to Detail.

The result is daunting. The zero-to-many in the recursion association is ignored. Instead a one-to-one association is generated:

Quote
<?xml  version='1.0' encoding='utf-8' ?>
<xs:schema targetNamespace="eu.ngong.Check" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="eu.ngong.Check" xmlns:ch="eu.ngong.Check">
   <xs:element name="Check" type="ch:Check"/>
   <xs:complexType name="Check">
      <xs:sequence>
         <xs:element ref="Check" minOccurs="1" maxOccurs="1"/>
         <xs:element ref="Detail" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>
   <xs:complexType name="Detail">
      <xs:sequence/>
   </xs:complexType>
</xs:schema>

I could not find an Multiplicity property other than at the Source or Target of an association. Do you mean a different one?

12
General Board / XML Schema Generation
« on: February 03, 2023, 02:13:17 am »
Seems like an error - or do I do something wrong?

I am trying to generate an XML Schema with an recursive element.
You may download a qea file that demonstrates my problem.

It generates
Quote
   <xs:complexType name="Check">
      <xs:sequence>
         <xs:element ref="Check" minOccurs="1" maxOccurs="1"/>
      </xs:sequence>
   </xs:complexType>
where it should generate
Quote
   <xs:complexType name="Check">
      <xs:sequence>
         <xs:element ref="Check" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
   </xs:complexType>

Is that a flaw of the XSD generator in EA or my fault anyhow?

13
General Board / Repository Schema ER diagram
« on: January 25, 2023, 10:26:53 pm »
Is there a kind of ER diagram about the schema of the model repository?
I am currently trying to do an SQL query about the relation of a connector in a State Chart to a Trigger. I found the Tigger name in the PDATA1 field of the connector. However that may not be unique. I could not identify the Tigger Object_ID related to the Connector_ID in any other table.

14
General Board / Re: Start Page of a Project
« on: January 17, 2023, 05:54:48 pm »
Thank you for your patience, qwerty.
After I successfully applied the advice of Geert, I found out that I should not press Return when entering Default in the search field, but find the "Choose ..." item just above.

15
General Board / Re: Start Page of a Project
« on: January 16, 2023, 05:14:15 pm »
qwerty, the menu item "Start" does not have a search field on my screen. The EA icon item very left in the menu has one. Putting "Default" there adds the menu bar "Default Tools" to the menu, but nothing pops up where I can select "Current".

Pages: [1] 2 3 ... 18