Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Fantasy.Fan on April 30, 2024, 04:38:20 pm

Title: Does Enterprise Architect's export XML function also export all the contents in
Post by: Fantasy.Fan on April 30, 2024, 04:38:20 pm
Does Enterprise Architect's XML export function export all the contents of the folder where the current content is located, along with the selected content? How can I avoid this and only export the selected file and its referenced content?
Title: Re: Does Enterprise Architect's export XML function also export all the contents in
Post by: Geert Bellekens on April 30, 2024, 06:11:34 pm
Xml export exports the full contents of the package you select.
It doesn't contain content of the other packages.

So if you show an element from another package on your diagram, and you export the package. Then the export will only contain a placeholder for the element from other package.

There is no magic way to export a package and all the external referenced content.

You can either export the whole model, or make sure you know exactly where the referenced elements are, and export those packages as well.

Geert
Title: Re: Does Enterprise Architect's export XML function also export all the contents in
Post by: Fantasy.Fan on April 30, 2024, 06:25:34 pm
I may have expressed myself incorrectly. For instance, when I export a diagram, currently it seems to export the entire folder where the diagram is located, but I only want to export the diagram itself.
Title: Re: Does Enterprise Architect's export XML function also export all the contents in
Post by: Geert Bellekens on April 30, 2024, 06:30:07 pm
Export is package based, not diagram based.

If you want to only export what is on the diagram, then you'll have to put everything on that diagram in a single package.

Geert
Title: Re: Does Enterprise Architect's export XML function also export all the contents in
Post by: qwerty on April 30, 2024, 06:39:08 pm
Or, as Geert put it once: UML is not about diagramming.

q.
Title: Re: Does Enterprise Architect's export XML function also export all the contents in
Post by: Fantasy.Fan on April 30, 2024, 06:43:31 pm
Of course, thank you very much.