astah* Command Line Tool User Guide

October 19, 2009
Change Vision, Inc.



[astah* Command Line Tool]

astah* Command Line Tool exports image files of diagrams by using Command prompt.

[astah* Command Line Tool System Requirements]

The system environments that enable astah* to run are required to use Command Line Tool for astah*.

[How to Use Command Line Tool]

To run Command Line Tool, use astah-command.bat which has been included in astah* install folder.
"image" option " can be executed by using astah-command.bat.

Export Image Files (image)

Use "image" option to export diagrams as image files (PNG, EMF, JPEG). PNG file will be exported if the format of image files is not specified.

Example 1. Export ER diagram (C:\input\xxx.asta) as a PNG file in C:\output.
[Windows]

[Linux]
Example 2. Export all diagrams (C:\input\xxx.asta) as PNG files in C:\output.
[Windows]
[Linux]

Options

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
rqt Requirement Table
(astah* 6.0 or later)
tm Traceability Map
(astah* 6.0 or later)
ignore-ref Ignore Referenced Diagrams
(JUDE/Professional5.3b1 or later)
-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.
(astah* 6.0 or later)
-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.
(astah* 6.0 or later)
-o,--output [output] Output Base Directory - Output directory : "Output Base Directory" + "project name".
-t,--type [image type] File Format png PNG
jpgJPEG
emfEnhanced Meta File