Author Topic: ExportPackageXMIEx not exporting charts  (Read 7835 times)

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
ExportPackageXMIEx not exporting charts
« on: December 10, 2020, 08:30:58 pm »
Does anyone now why the XMI Export API (ExportPackageXMIEx) doesn't export images for charts ?
It works fine for normal diagrams, but with charts I just get an empty box where the chart picture should be.
Is this the expected behaviour? Or a feature ?
(@Q - try to be nice, please)

V15.2, Ultimate.
Update - manual copy of diagram to a file works fine.
« Last Edit: December 10, 2020, 08:40:26 pm by Ian Mitchell »
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: ExportPackageXMIEx not exporting charts
« Reply #1 on: December 10, 2020, 08:40:00 pm »
What parameter values did you use?

Specifically the parameter DiagramXML might be relevant.

Does it work when you do a manual xmi export?

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: ExportPackageXMIEx not exporting charts
« Reply #2 on: December 10, 2020, 08:41:30 pm »
Hmm. Never used charts (one of those Sparx gimmicks...). Leaves me out of this in any case. Hope that will be nice enough.

q.

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: ExportPackageXMIEx not exporting charts
« Reply #3 on: December 10, 2020, 08:47:47 pm »

I'm using:
proj.ExportPackageXMIEx(p.guid, 0, 1, 1, 0, 0, folderString, 0)

...which works fine for everything else.
I tried the 'export diagrams with alternate image' but it made no difference.

A manual export also exports empty diagram images, so it looks like the API and the UI are both using the same code, which is good. It just doesn't work, which is less good.
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: ExportPackageXMIEx not exporting charts
« Reply #4 on: December 10, 2020, 09:06:11 pm »
I see. But it's going to be easier to get a GUI problem fixed then a pure API problem.

Unless this is because there is some obscure setting somewhere that controls this behavior ???

Geert

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: ExportPackageXMIEx not exporting charts
« Reply #5 on: December 11, 2020, 08:16:41 pm »
@Sparx - any comment on this?
Feature or bug ?
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: ExportPackageXMIEx not exporting charts
« Reply #6 on: December 14, 2020, 10:48:31 pm »
Hey @Sparx - I'm serious about this - is this a bug or a feature?
Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: ExportPackageXMIEx not exporting charts
« Reply #7 on: December 15, 2020, 10:34:56 am »
Personally, I couldn't tell you. If you send an email directly to Sparx Support, it will go into the official system and land on someone's desk with a meaty thump, and that person will be obliged to respond to you.
Best Regards, Roy

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: ExportPackageXMIEx not exporting charts
« Reply #8 on: December 15, 2020, 11:17:11 am »
Personally, I couldn't tell you. If you send an email directly to Sparx Support, it will go into the official system and land on someone's desk with a meaty thump, and that person will be obliged to respond to you.
Hi Ian,

KP has noted that not all the developers from the various teams in Sparx (in my case the Simulation team) monitor the forum.  So I made sure I posted an official request.  I did get a more formal response for more data (and a sample) but unfortunately, no analysis or potential fix yet.

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: ExportPackageXMIEx not exporting charts
« Reply #9 on: December 15, 2020, 07:58:54 pm »
I was trying to find out if it's a feature, perhaps controlled by some setting somewhere, or not, in which case it's a bug, and I'll report it.

I don't want to report bugs which aren't bugs, as that just wastes people's time, but if that's now the process, then that's what I'll do.
Expect to get more bug reports in future, for things which may or may not be bugs. Seems an odd process to me.....

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: ExportPackageXMIEx not exporting charts
« Reply #10 on: December 15, 2020, 08:12:22 pm »
I was trying to find out if it's a feature, perhaps controlled by some setting somewhere, or not, in which case it's a bug, and I'll report it.

I don't want to report bugs which aren't bugs, as that just wastes people's time, but if that's now the process, then that's what I'll do.
Expect to get more bug reports in future, for things which may or may not be bugs. Seems an odd process to me.....

To be honest, I thing that has always been the process.
The description of the Bugs and Issues board reads:
Quote
Discuss specific usage issues with other users. To report bugs and issues to Sparx Systems, please use the Report a Bug link provided.

I do agree however that the current bug reporting process can be improved (a lot). But we have discussed that at length amongst us users many times already.

If only Sparx would listen to us...  :-\

Geert

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: ExportPackageXMIEx not exporting charts
« Reply #11 on: December 16, 2020, 09:55:10 am »
I will take a guess here and say that a diagram is a fixed display. It exists as it is, and would be captured in an export. A Chart is generated anew every time it is opened, so perhaps exists in an empty-frame state until it is opened and populated.

I'm sure you can send an email to Sparx Support to ask for an explanation of what is happening, without saying "This is a bug!" Based on that discussion you might decide that a feature request is appropriate, to get ExportPackageXMIEx to open and populate the chart before exporting it. I have no idea if that is at all possible, but the email conversation might inform you better.
Best Regards, Roy

Ian Mitchell

  • EA User
  • **
  • Posts: 506
  • Karma: +22/-4
  • The eaDocX and Model Expert guy
    • View Profile
Re: ExportPackageXMIEx not exporting charts
« Reply #12 on: December 16, 2020, 09:36:01 pm »
@Roy - that sounds plausible, given the dynamic nature of the chart content. I guess that a copy/paste of the image IS doing an update of the picture, which is why that works.
Can you think of any way that I might discover, via the API, that a particular diagram has some of this dynamic content, and so will need to be exported manually ? Or do I just read each one, decide if it contains elements which are dynamic (via their element stereotype?) ? Seems a bit heavy
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: ExportPackageXMIEx not exporting charts
« Reply #13 on: January 08, 2021, 07:33:34 pm »
Update from Sparx :
Our developers have confirmed that this is a bug and it is logged to be fixed. We cannot yet say when (in which build) the fix will be implemented.
The issue id is : 20126609

Unfortunately, currently there is no workaround for this behavior.

Ian Mitchell, Designer, eaDocX


www.eaDocX.com
www.theartfulmodeller.com