archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
944 stars 269 forks source link

[Feature Request] CLI support for export view as image #769

Closed jack-burridge-cfh closed 2 years ago

jack-burridge-cfh commented 2 years ago

It would be really useful to be able to export views from a model via the CLI, views from the model could then be used by other tools. I'm unsure if this is best as an external plugin or within the main application.

I'm assuming there would also have to be a way to access the ID of the view as the name would not be unique enough

jbsarrodie commented 2 years ago

Hi,

There's already two ways to do it through ACLI:

jack-burridge-cfh commented 2 years ago

@jbsarrodie I was more meaning for singular diagrams rather than the whole gamut The intention was to use it with something like sphinx, and refer to individual diagrams

Phillipus commented 2 years ago

A jArchi script executed from the ACLI would work.

I'm assuming there would also have to be a way to access the ID of the view as the name would not be unique enough

Correct, and this is not exposed except in jArchi.

jbsarrodie commented 2 years ago

@jbsarrodie I was more meaning for singular diagrams rather than the whole gamut The intention was to use it with something like sphinx, and refer to individual diagrams

That's still possible through jArchi as you can access command line parameters and thus you can pass the id or "internal path" to the view you want to export, and the filename of the image to be created.