Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Export terminated when exporting full model ? #15

Open
ulfwestermark opened this issue Jan 12, 2021 · 5 comments
Open

Bug: Export terminated when exporting full model ? #15

ulfwestermark opened this issue Jan 12, 2021 · 5 comments

Comments

@ulfwestermark
Copy link

Great idea to generate a single html page ! Really useful.

I do:

  • Imported Archisurance model
  • Runs this script
  • I get this error message
All views have been selected.
Exporting " Views "...
Export terminated.

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:

  • Archimate v4.8.0
  • Jarchi v1.1.0
  • Single page html export - Stable release
@jbsarrodie
Copy link
Member

  • 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:
image

You clicked on the "Views" folder on the left "Content" panel to expand the list of views. Did you?

@ulfwestermark
Copy link
Author

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.

@Phillipus
Copy link
Member

Phillipus commented Jan 13, 2021

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 archimatetool/archi-scripting-plugin#77

@ulfwestermark
Copy link
Author

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.

@jbsarrodie
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants