Author Topic: Where does this dialog come from ? XMI export  (Read 11611 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Where does this dialog come from ? XMI export
« on: December 09, 2021, 11:57:22 pm »
I'm trying to track down where a dialog comes from, and why some users see and others do not.

The trigger for it calling is the EA Project API call

myProject.ExportPackageXMIEx(p.guid, 0, 1, 1, 0, 0, folderString, 0)

which I think is saying:
- GUID of the package i want to export
- XMI type = 0 , which means "xmiEADefault"
- DiagramXML = 1 which is 'export diagrams'
- Diagram Image =1 which is BMP format
- FormatXML = 0 not formatting of the XML
- UseDTD = 0 don't format
- (file name string)
- Flags - none (0)

When the API is called, all users see a dialog pop-up which is where EA is exporting the XMI, which appears and then goes away automatically (@Sparx - strange to get a user-visible popup from an API call - bug?) , but some users then also see a second dialog, which in English has the title 'Convert file', and lists a set of file formats, including RTF, HTML-Document, PDF, WordPerfect 5.x, WordPerfect 6.x  and a few more. The appearance of 'WordPerfect' as an option dates it a bit!

It's this second dialog I can't seem to find anywhere in the UI - maybe it's not even accessible via the UI at all? It's a problem, because this requires the user to click to continue the process, which is a real pain for them.

...but I can't reproduce the behaviour, and it's restricted to a few users in a single installation.

I suspect there is a setting somewhere in the user options/settings which causes EA to pop this dialog up, but I've looked though all the ones I can find, and nothing seems to affect how XMIs are exported.

Has anyone seen it before? Either in the UI, or from an API call?

I'm using V16, but the user is using V15, if that's relevant, but Sparx are generally very good at keeping these setting consistent across releases, so I'd be very surprised if it is release-dependent.




Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Where does this dialog come from ? XMI export
« Reply #1 on: December 10, 2021, 12:39:28 am »
Nope, never seen it before.

Would be nice, I was just looking for a way to open my xmi files in WordPerfect ;D

Geert

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Where does this dialog come from ? XMI export
« Reply #2 on: December 13, 2021, 10:16:23 pm »
@Sparx - do you have any ideas where this might come from ?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Where does this dialog come from ? XMI export
« Reply #3 on: December 14, 2021, 09:13:07 am »
@Sparx - do you have any ideas where this might come from ?

It looks like a library call gone rogue. XMI export should just dump the model contents - there shouldn't be any file conversion necessary. Would you be able to send a bug report with a video or screen shots to Sparx support please?
The Sparx Team
[email protected]

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Where does this dialog come from ? XMI export
« Reply #4 on: December 20, 2021, 09:59:31 pm »
Customer is raising a bug report now. Strange that he is the only user who sees this issue. In fact, the only user in my whole customer base who has ever seen it. Some strange user setting ?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Where does this dialog come from ? XMI export
« Reply #5 on: August 07, 2023, 07:24:56 pm »
I have just had another customer report exactly the same error.
I also raised a bug report 2 years ago for this, but only got the normal reply from Sparx support.
Current customer is using EA 16.1, 64 bit, so I guess it has not been fixed.

@Sparx - please can you look at this again? Customer can't use this API call without this strange dialog appearing.
Thanks

Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

DeBAAT

  • EA User
  • **
  • Posts: 63
  • Karma: +2/-0
    • View Profile
Re: Where does this dialog come from ? XMI export
« Reply #6 on: August 07, 2023, 09:34:51 pm »
Did some research and came along the following text in the page with "Changes and fixes for Build 1008" (EA 10):
Quote
Automation functions ExportPackageXMI and ExportPackageXMIEx will no longer show publish package dialog if EA window is hidden or SuppressEADialogs is true.

And on the manual page for EA_OnPostNewElement in EA 16.1 (https://sparxsystems.com/enterprise_architect_user_guide/16.1/add-ins___scripting/broadcastpostnewelement.html) it reads:

Quote
Set Repository.SuppressEADialogs to True to suppress Enterprise Architect from showing its default 'Properties' dialog.

Maybe this could help?

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: Where does this dialog come from ? XMI export
« Reply #7 on: August 09, 2023, 07:03:06 pm »
Interesting idea. This looks to apply when new elements are being created - my user is just exporting some data from a package using the EA API.
But thanks for the thought.
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com