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

Pages: [1] 2
1
Does Enterprise Architect provide this feature out-of-the-box now in 2022 ?

2
How is possible that an add-on written in C#, installed together with the new Interop.EA.dll 360,320 bytes large that comes with Enterprise Architect 16, is still working perfectly well if deployed on previous Enterprise Architect 15 or 13 distributions?

I thought that Interop.EA.dll would work only with either .eap (JET) or with .qea (SQLite) file types, but it seems it doesn't care and works perfectly well with both file types.

The new Interop.EA.dll that comes with Enterprise Architect 16, appears to be very happy to work with both file types (JET or SQLite) as long as it receives an EA.Repository object in the EA_Connect event.
 public String EA_Connect(EA.Repository rep)

3
>>When I develop add-ins I reference the Interop.EA from the program files folder of EA.
>>I don't keep a separate copy in my project folder.


You mean you are not deploying Interop.EA.dll in your add-in folder ? (e.g. "C:\Program Files (x86)\MyCompany\MyEAAddinsFolder" ) ?
You mean you are relying on loading automatically C:\Program Files (x86)\Sparx Systems\EA\Interop.EA.dll ?
- add a reference to Interop.EA.dll in your C# add-in project and set "Copy Local" to False ?
- set "Embed Interop Type"  = True ?
https://sparxsystems.com/enterprise_architect_user_guide/15.2/automation/automation_connect_setup.html

But then, if Enterprise Architect is installed in another folder (say D:\Programs\Sparx Systems\EA)  how do you load Interop.EA.dll at runtime from a random Enterprise Architect installation folder?

4
Hi

EA.Repository rep = ...; initialized before
EA.Diagram dia = rep.GetCurrentDiagram();

//dia.Update() or rep.SaveDiagram(dia.DiagramID) ?

Is there any difference between the two ?
Both  should save the diagram to the database, hence no difference ?

5
Hi,

How can I temporarily zoom a diagram, like the Ctrl+mouse wheel or the zoom + and - buttons are doing ?


 //I just want to temporarily zoom the diagram

 EA.Repository rep = ...; initialized before
 EA.Diagram dia = rep.GetCurrentDiagram();

// this changes the default diagram's zoom level and I don't want this!

 dia.Scale = 135; ??
 dia.Update();
 rep.ReloadDiagram(dia.DiagramID);

6
Hi,

When I change the zoom level using Ctrl+mouse wheel or other available zoom + and - buttons, the .Scale value of the diagram does not change.

Is there any way I could find the temporary zoom level on the current diagram ?

 EA.Repository rep = ...; initialized before
 EA.Diagram dia = rep.GetCurrentDiagram();
// it's the same value while the diagram is open and the zoom level is changed  as described above
 string zoomLevel = dia.Scale.ToString();

https://sparxsystems.com/resources/user-guides/15.2/large-print/automation/enterprise-architect-object-model.pdf

7
Actually you are able to set the diagram zoom level to an arbitrary value (for example let's say ~ to 115%)
See this page for details:
https://sparxsystems.com/enterprise_architect_user_guide/13.0/modeling_tools/appearance_options_diag.html
Try like this:
- Use Ctrl+mouse wheel to zoom in a little bit more than 100% (say ~ to 115%)
- Then from the ribbon, select Design -> Diagram -> from the Manage dropdown list -> Properties
- In the dialog click Diagram.
- Finally click the "Set as Default" button

Then each time you will open the diagram, you will see that the zoom level you've set will be respected.

8
Bugs and Issues / Re: EA 14 on Windows10: Error creating font
« on: July 03, 2019, 01:27:31 am »
Hi,

We were using Enterprise Architect 13 and 14.

The fix is this:

1.  Copy the following fonts in C:\Temp

"C:\Temp\GOTHICB.TTF"
"C:\Temp\GOTHICBI.TTF"
"C:\Temp\GOTHIC.TTF"
"C:\Temp\GOTHICI.TTF"

       2.  Open Explorer, select all fonts above, right click,  menu option "Install for all users" (need admin rights), overwrite installed fonts, ok to all

In this way the error message box will disappear in Enterprise  Architect.

9
Bugs and Issues / Re: EA 14 on Windows10: Error creating font
« on: June 27, 2019, 06:50:22 pm »
I have the same situation, after upgrading from Windows 7 to Windows 10 (not fresh install of Windows 10)

10
Whether or the menu option is depends on whether or not the element is visible in the project browser.
Element who are not visible are typically "diagram owned" elements such as notes, boundaries, legends,...
There is no list available I'm afraid.
You'll have to figure it out by trial and error.

Ok thank you, but how Enterprise Architect seems to just "know" if the element is "diagram owned"
and it does not display the "Find" context menu option ?

11
Hi,

In a diagram, I select an element, then I right-click that element, showing its context menu

I notice that for some elements, the "Find-In project browser" context menu exists,
while for other elements, the Find context menu does not exist at all.

Please see the below image as an example.

Can please someone indicate an SQL query or an API function that allows me to
detect in advance if the "Find-In project browser" context option is available for the selected element?




12
General Board / Re: Importing model from Rhapsody to EA
« on: April 18, 2018, 06:07:43 pm »
Hi,

I understand that IBM and Sparx Systems are two different businesses with their own interests.

At the same time, after so many years of their successful business, I was hoping to exist a better importing functionality.

In the past 7-8 years, different people have been asking on this forum about this situation.

- the import of diagrams from a Rhapsody .RPY file into Enterprise Architect 13 does nothing, no diagrams are imported.
- the import of diagrams from a .XMI file created by Rhapsody into Enterprise Architect 13, creates  diagrams with a different visual appearance. And some imported elements do not have the same name as in the original Rhapsody model.

13
General Board / Re: Rational Rhapsody to Enterprise Architect using XM
« on: April 16, 2018, 09:15:39 pm »
Hello,

The same situation after 8 years. Nobody from IBM or Sparx Systems seems to be interested at all.

http://www.sparxsystems.com/forums/smf/index.php/topic,36106.msg244077.html

14
General Board / Re: Importing model from Rhapsody to EA
« on: April 16, 2018, 09:13:29 pm »
Hello,

The same situation after 8 years. Nobody from IBM or Sparx Systems seems to be interested at all.

http://www.sparxsystems.com/forums/smf/index.php/topic,36106.msg244077.html

15
General Board / Re: Migration from Rhapsdody to EA
« on: April 16, 2018, 09:07:19 pm »
Hi,

I am also interested in this topic.

I have tried in two ways to import models created with Rhapsody 8.3 trial version into Enterprise Architect 13

I imported two sample models provided by the IBM site:
https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Wecb8ab5c4be5_4a1e_a0d0_e5a706eb66dc/page/Tutorials,+samples+and+demos

SimpleLogisticsComplete
https://www.ibm.com/developerworks/mydeveloperworks/files/form/anonymous/api/library/371cdc3f-28a3-48d1-b827-72a36707db38/document/1bec3f6d-834a-4538-839b-5e0ec2048361/media/SimpleLogistics_CV_OV.zip

SpaPoolTemp_Control_Architecture
https://www.ibm.com/developerworks/mydeveloperworks/files/form/anonymous/api/library/371cdc3f-28a3-48d1-b827-72a36707db38/document/d3dc766b-512b-4498-bd73-42403ee03484/media/SpaPoolTemp_Control_Architecture.zip


Method 1. Import from .XMI file
Method 2. Import from .RPY file

My experience is not very good even now in 2018, as Geert highlighted in one of his answers from 2011.

http://www.sparxsystems.com/forums/smf/index.php/topic,22895.msg192010.html#msg192010

Quote
"EA imports xmi quite well, but chances are that the diagrams will either be missing, or their layout will be messed up"
"This is a classic issue when transferring models between any two UML tools as xmi is a standard for model interchange, not for diagrams interchange."

1. Importing from an .XMI file, the diagrams are imported, but the visual appearance is not the same and some imported elements do not have the same name as in the original Rhapsody model.

2. Importing from an .RPY file, does not import any diagram at all !


Pages: [1] 2