archi icon indicating copy to clipboard operation
archi copied to clipboard

Export Open Exchange File doesn't export label expression

Open VinceAxe opened this issue 4 years ago • 6 comments

When exporting to the open exchange file format, the Label Expression field isn't exported. Meaning when another user is importing the file (in Archi) all the label expressions have disappeared

Version of Archi

Archi 4.7.1

Archi Plug-ins

coArchi 0.6.2 / scripting 0.8

Expected Behaviour

I know label expressions are only visuals and not part of the standard, but it would be nice to keep them.

VinceAxe avatar Jan 19 '21 09:01 VinceAxe

@jbsarrodie and I discussed this might be possible in the future by importing/exporting the expression in a special Property and the evaluated label value in the diagram object's label (over-riding the concept's name value). Would only be useful for Archi -> Archi import/export, though.

Phillipus avatar Jan 19 '21 09:01 Phillipus

Additional comments:

  • When planning to later edit a model in Archi, the native format should be used and not the Exchange format which is "lossy"
  • Not all tools support customizing concepts label, and even if they do, there is no guarantee that they'll import them from the Exchange Format. This is because this feature, though present in the format definition, is not part of the interoperability tests.
  • Exporting the label will export the value, not the expression (which won't be of any help anyway for another tool). We might export the expression in a way that would make it possible for Archi to get it back, but I'm not sure it makes sens though (because the native format should be prefered in this case).

jbsarrodie avatar Jan 19 '21 09:01 jbsarrodie

That's more or less what I told the team I work with thanks both for your replies and precisions

VinceAxe avatar Jan 19 '21 09:01 VinceAxe

Hello everybody, I am working on Archi exports and I absolutely need to export label expressions. I've noticed that when exporting a xml format still there are no label expressions tagged. I am wondering if this issue is still open. As a workaround, I've accepted the suggestion to work with native format, where label expressions are visible under the tag "contents". Still there is an inconvenient about native format and Specialization images. When adding specialization images to the model, trying to open the native format results in a not readable binary file (Archi version 4.9.3). Are you aware of this incovenient?

ZanteBFF avatar Oct 26 '22 15:10 ZanteBFF

I've no plans at the moment to implement export of label expressions in the exchange format.

the native format results in a not readable binary file

Images are stored together with the model in a zip format.

Phillipus avatar Oct 26 '22 15:10 Phillipus

Thank you for the answer Phil

ZanteBFF avatar Oct 27 '22 09:10 ZanteBFF