Exporting diagrams of a tree

5 views
Skip to first unread message

David DIDIER

unread,
Jun 25, 2025, 9:57:31 AMJun 25
to StarUML
Hello,
I'd like to export all the diagrams in a UMLModel and *below* but I can't make it work. Is it possible?

For example I have:

Analysis Model
- ModelX
-- DiagramX1
- ModelY
-- DiagramY1
-- DiagramY2
Use Case Model
...

And I'd like to export all diagrams under Analysis Model, i.e.  DiagramX,   DiagramY1DiagramY2.

This exports all diagrams in the project :

> staruml image "my.mdj" -f svg -o "images\analysis-model\<%=filenamify(element.name)%>.svg"
...
[StarUML] Total 18 diagrams were exported

This only the specified diagram:

> staruml image "my.mdj" -f svg -o "images\analysis-model\<%=filenamify(element.name)%>.svg" -s "Analysis Model::ModelX::@Diagram"
[StarUML] images\analysis-model\DiagramX1.svg
[StarUML] Total 1 diagrams were exported

I'd like something like this to work:

> staruml image "my.mdj" -f svg -o "images\analysis-model\<%=filenamify(element.name)%>.svg" -s "Analysis Model::@Diagram"
[StarUML] Total 0 diagrams were exported

> staruml image "my.mdj" -f svg -o "images\analysis-model\<%=filenamify(element.name)%>.svg" -s "Analysis Model::"
[StarUML] Total 0 diagrams were exported

Best regards,
David

StarUML

unread,
Jun 25, 2025, 11:08:32 PMJun 25
to StarUML
Hello,

Unfortunately, selecting elements recursively is not supported. It seems that you need to run CLI commands for each model.

Thank you,

2025년 6월 25일 수요일 오후 10시 57분 31초 UTC+9에 David DIDIER님이 작성:
Reply all
Reply to author
Forward
0 new messages