You can export diagrams and tables as image files in various formats. The names of the diagrams or tables will automatically be used as file names.
To export images:
You can also export images directly via command-line.
By using -image option with astahsysml.bat (for Windows) or astahsysml-command.sh (For Mac), you can export diagram images as PNG, JPEG, EMF or SVG.
By default, images are exported in PNG format unless specified otherwise.
[Windows] Export all the diagrams of the C:\input\ABC.axmz .file to C:\output in PNG
astahsyml-command.bat -image all -f C:\input\ABC.axmz -o C:\output
[Mac] Export all the diagrams of ~/input/ABC.axmz file to ~/output in JPEG
astahsysml-command.sh -image all -f ~/input/ABC.axmz -o ~/output -t jpg
By using -image option with astahsystemsafety-command.bat (for Windows) or astahsystemsafety-command.sh (For Mac), you can export diagram images as PNG, JPEG, EMF or SVG.
If you do not specify the image format, it exports in PNG format.
[Windows] Export all the diagrams of the C:\input\ABC.axmz .file to C:\output in PNG
astahsystemsafety-command.bat -image all -f C:\input\ABC.axmz -o C:\output
[Mac] Export all the diagrams of ~/input/ABC.axmz file to ~/output in JPEG
astahsystemsafety-command.sh -image all -f ~/input/ABC.axmz -o ~/output -t jpg
You can specify diagram types to export images of by using -image options.
Option | Diagram Type |
|---|---|
| req | Requirement Diagram |
| rqt | Requirement Table |
| bdd | Block Definition Diagram |
| ibd | Internal Block Diagram |
| par | Parametric Diagram |
| uc | UseCase Diagram |
| act | Activity Diagram |
| stm | Statemachine Diagram |
| sd | Sequence Diagram |
Option | Diagram Type |
|---|---|
| pt | Precondition Table |
| ahsct | Accident Hazard Safety Constraint Table |
| csd | Control Structure Diagram |
| ucat | UCA Table |
| cld | Control Loop Diagram |
| lst | Loss Scenario Table |
| ct | Countermeasure Table |
Option | Diagram Type |
|---|---|
| all | All diagrams/tables |
| scd | Safety Concept Diagram |
| gsn | GSN/D-Case |
| mm | Mind Map |
Here are other options you can use to specify the resolution, image formats…etc.
Option | Description | Kind | Note |
|---|---|---|---|
| -dpi,--dpi [image dpi] | Resolution (dpi) | - | Specify the dpi of image Default is 96 in the System Properties ([Tools] - [System Properties] - [Image Export]. |
| -f,--file [target file] | Target file | ||
| -id,--dgm_id [ids for target diagrams] | Set ID | Specify Diagram’s IDs with a space between them. If you specify the ID, file names will be the ID instead of diagram names. |
|
| -o,--output [output] | Base folder where this image is exported to | Folder where the image is exported to is “base folder and project file name. |
|
| -t,--type [image type] | Format of images | png, jpg, svg, emf | PNG, JPEG, SVG, EMF(Enhanced Metafile) If you do not specify the image format, it'll be exported to .png files. |