Oct 10, 2019
Change Vision, Inc.
Command Line Tool which is included in Astah install folder enables you to export images and compare projects from Command Line.
By using -image option with astah-commandw.exe (for Windows) or astah-command.sh (For Mac or Linux),
you can export diagram images as PNG, JPEG, EMF or SVG.
If you do not specify the image format, it exports in PNG format automatically.
Option | Description | Type | Note |
---|---|---|---|
-image | Export Image Action | all | All Diagrams |
cl | Class Diagram | ||
uc | UseCase Diagram | ||
ucd | UseCase Description | ||
sc | Statemachine Diagram | ||
act | Activity Diagram | ||
seq | Sequence Diagram | ||
com | Communication Diagram | ||
cmp | Component Diagram | ||
dep | Deployment Diagram | ||
cs | Composite Structure Diagram | ||
fc | Flowchart | ||
dfd | Data Flow Diagram | ||
er | ER Diagram | ||
crud | CRUD | ||
mm | Mind Map | ||
rqd | Requirement Diagram | ||
rqt | Requirement Table | ||
tm | Traceability Map | ||
ignore-ref | Ignore Referenced Diagrams | ||
-dpi,--dpi [image dpi] | Output Resolution | - | Specify an output resolution. default=92 (System setting). Use 72 to export images with the same scale of a screen. |
-f,--file [target file] | Target File | - | - |
-id,--dgm_id [ids for target diagrams] | Target Diagram ID | - | Specify Diagram IDs with space-delimited format. Export image files named by IDs with no directories. |
-o,--output [output] | Output Base Directory | - | Output directory : "Output Base Directory" + "project name". |
-t,--type [image type] | File Format | png | PNG |
jpg | JPEG | ||
emf | Enhanced Meta File | ||
svg | SVG |
You can compare two different files by using astah-commandw.exe for Windows,
astah-command.sh for Mac/Linux from Command Line.
Use -diff and give two .asta files that you would like to compare.
Running this command line tool requires you to have an environment that runs Astah.
If you use a large size of project, you may need to adjust the JavaVM memory option.