Open ulfwestermark opened 3 years ago
- I get this error message
This is not an error message but simply the log of the execution saying that, because you didn't selected a folder, all views have been exported.
See attached zip-file for example output:
It contains all views from your model as expected:
You clicked on the "Views" folder on the left "Content" panel to expand the list of views. Did you?
Many thanks for fast response !
And of course all views are there after you press the Views-folder - I was mislead by the message and that only parts in the Views folder was exported. I guess it would make it more complicated to export all folders in the model and that it was never the intent with the script ?
A suggestion: export the diagrams (or make it configurable) in SVG - that makes the diagrams scalable.
A suggestion: export the diagrams (or make it configurable) in SVG - that makes the diagrams scalable.
The code for SVG export is buried deep inside of Archi and therefore not accessible by jArchi. One day that code might be refactored so it is accessible by jArchi, but not just yet (it's on the 100 year backlog list)
Edit - to be exact, the SVG is not buried, but certainly would need to be refactored to be accessed by jArchi with optional parameters and method invocations.
Edit 2 - see https://github.com/archimatetool/archi-scripting-plugin/issues/77
Another small improvement could be to have the Views-folder expanded initially - so that you see all the Views initially ? Now it is slightly hidden that there are stuff under Views.
I guess it would make it more complicated to export all folders in the model and that it was never the intent with the script ?
It's not that it is complicated, simply that it doesn't make sense as this script is designed to export views, not elements, so no point in exporting folders not containing views. Elements (and their documentation) are only visible as details for a view.
A suggestion: export the diagrams (or make it configurable) in SVG
As Phil said, jArchi doesn't support exporting to SVG at the moment.
to be exact, the SVG is not buried, but certainly would need to be refactored to be accessed by jArchi with optional parameters and method invocations.
Well, it might be possible to call this code from within javascript by mapping the right java classes using Java.type
.
that makes the diagrams scalable.
A PNG is scalable. I guess you mean extremely scalable without loss in details.
Another small improvement could be to have the Views-folder expanded initially - so that you see all the Views initially ? Now it is slightly hidden that there are stuff under Views.
I agree for this specific case. In fact the right way of using this script is by first selecting the folders you want to export, and then you see all these folders in the list. "Views" is only chosen as a default if you selected nothing. The issue is that if you select dozens of folders, it doesn't make sens to open them all.
I have the feeling (but I have to do some experiments) that a nice little help/hint would be better.
Great idea to generate a single html page ! Really useful.
I do:
Is this i bug or have I misunderstood the script ? Is only the View exported ?
See attached zip-file for example output: Archisurance.html.zip
Running: