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

Pages: [1] 2 3 ... 9
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
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?

4
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?

5
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?

6
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?

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

8
General Board / Start Page of a Project
« on: January 15, 2023, 10:55:43 pm »
Is possible to have a certain diagram that shows up automatically at the time when EA loads a project?

9
General Board / Duplicate profile name
« on: January 07, 2023, 12:47:02 am »
WARNING: Duplicate profile name: MyProfile UML Profile, detected in technology ID: 22B21552-1

When opening this model, I get this message.
Yet, I can not find any problem with the model.
In Browser/Resources/UML Profiles and in Manage Technologies that profile appears only ones.
Is it save to ignore the warning?
Any idea to get rid of it?

Rolf

10
General Board / ProCloud Server initial image generation
« on: December 06, 2022, 05:49:23 am »
On the ProCloud server machine, when I copy an existing model to the C:\Program Files\Sparx Systems\Pro Cloud Server\Service\Models folder,
how can I initially generate all images?

11
General Board / Hybrid Scripting: How to change the Build Script?
« on: December 04, 2022, 05:09:59 am »
I downloaded automation.pdf and tried to do the Java Example of a model script.

However, on my computer there is a different Java JDK installed as expected by the example. I am using JDK-17.2 instead of 1.8.0.
Should not be a big thing, if I could find where to change the Build Script.

Or.: What do I have to read to understand what the Build link really does in the mentioned example?

12
General Board / How to Clear Stereotype
« on: November 29, 2022, 09:34:11 pm »
I have my profile to import my stereotypes.
Now, I deleted one of my stereotypes from my profile an imported my profile again.
Unfortunately I have not reset all usages of the deleted stereotype prior to importing my profile that misses it.

I could not find a way to reset the stereotype at the using elements.

How to clear the stereotype field of an object, if the stereotype no longer exists in any profile?

13
General Board / feap file as ODBC source
« on: November 23, 2022, 03:36:58 am »
From Sparx for EA16 I can download the EABase1558.feap file.
It is an empty EA repository and Firebird database file that I can open with EA16.
Selecting it in Win10 as an  ODBC Source (File DSN),  for the connetion string, I am asked for a User/Password/Role.

Any idea what to enter there?

Entering nothing does not create the connections. Also SYSDBA/masterkey does not work.

14
General Board / changing profile freezes elements
« on: October 28, 2022, 03:43:59 am »
I got a working profile that defines a stereotype for a component meta class as to be a Role with the default appearance changed to orange instead of pink.
I placed several such Roles in my model, which has the first version of the profile imported.
Than I changed the working profile, added a stereotype for a datatype meta class as to be a Physical Unit, also changed the default appearance.
Imported that to my model. Answered Yes to the question whether to override the exiting profile of the same name.

But what happened:
The roles fall back to the default appearance.
What I tried:
I synchronized the Role stereotype in the resources window. No change. I tried to change the stereotype of one Role element - no change.
The properties window shows the Role stereotype for that component, but when I open the dialog to change the stereotype nothing is checked. I expected that the role has to show checked, because the properties window tells so. I can check any stereotype but nothing changes.

The solution I found is, to select <none> profile for the problematic element, uncheck the profile name for that element, save. Now I can re-assign the Role stereotype to that element. I have to do it for each of them.

I tried to make a tiny example - tiny profile and tiny model - that resembles the problem. Hmm - no luck, changing the profile worked in the example.

But the change in my working profile still violates at least one not changed stereotype regarding default experience and the ability to newly set the stereotype.

Has anyone an idea what this problem is about?

15
General Board / EALite to view a MySQL based repository?
« on: October 22, 2022, 02:35:51 am »
Prior to trying it out I'd like ask here.
May I put the credentials of the SQL repository into EALite and than have a look at the model?

If yes: will that work with an SQL repository created and maintained with EA16 as well?
I would suppose: Yes, if the SQL repository has not changed much. Does it?

Pages: [1] 2 3 ... 9