Be sure to visit the Trace Modeler website for updates and UML sequence diagram resources!

Batch export

Batch export allows you to export trace files from the command line.

This is useful if you want to use your diagrams in other documents, by linking to the exported graphics file. Batch export allows you to synchronize all the graphics files with the trace files in one go (or automate it via a script in your build process!).

The exact command you need to perform the batch export depends on your platform and the JVM you're using :

When you execute them without any further options, they will print usage info and list the possible options you could use. These options are

option values default explanation mandatory
-format png, jpeg, bmp png the format of the exported graphics file yes
-infile filepath   the trace file to export (*) yes (**)
-infolder folderpath   the folder with trace files to export (*) yes (**)
-outfolder folderpath   the folder where the files will be stored (*) yes
-quality best, better, good best the jpeg quality (***) no
-dpi 72, 150, 300 72 the resolution of the graphis file no
-scale a number 100 the scale of the exported graphics file (in percent) no
-grayscale true, false false export as grayscale (i.e. no colors) no

(*) surrounded with double quotes if it contains spaces
(**) a command can only contain one of these two options.
(***) the quality option can only be used if the format is jpeg.

The options correspond to those in the 'Export' window in Trace Modeler. You can find more information about them in the 'export a diagram to a graphics file' topic.

Some examples :

If you get an out of memory error during the export, you have to tweak the configuration to increase the memory available to Trace Modeler.

Related topics