Numerical Matrix Format
User Reference
EXPORT_SVG array

MATRIX Array Level: 3

The EXPORT_SVG array exports any number of SVG files (Scalable Vector Graphic) to a folder. SVG files are primarily used for rendering two-dimensional graphical images.

Note
IMPORTANT: When exporting SVG files, RELATIVE paths are always preferred and much safer.
All SVG files are XML formatted.
Fields in the EXPORT_SVG array
Description
JOB=NAME Assign top Cell to use. Required. Dynamic Job References are also supported.
FOLDER=LOCATION Path for the exported SVG files. When exporting as a Folder, one SVG file is exported for each Layer. The folder path may be either Absolute or Relative. (IMPORTANT: When exporting, RELATIVE paths are always preferred and much safer).
FILE=LOCATION File path for the for the exported SVG file. When exporting as a File, only one SVG file is exported for all Layers. The file path may be either Absolute or Relative. (IMPORTANT: When exporting, RELATIVE paths are always preferred and much safer).
UNITS=IN|MM Choose SVG file units from: IN, MM (default: MM)
OutputTextAsPolygons Output text as polygons.
LineWidth=SIZE Default line width in millimeter (default: 0.1). If zero width, lines will not be visible in most SVG viewers.
IncludeAttributes Adds attribute information to the SVG file (like Nets, Part Number, etc.)
BACKGROUND=BLACK|WHITE Assign the background color for the generated files. (Default: BLACK).
OutputArcsWhenPossible Whenever possible output arcs.
FlattenInserts Output insers as flat data (i.e not defined in Defs). May increase file size.
UseApertureDefs

Define complex apertures in the SVG defs. Reduces file size.

Purpose=TYPE Define the SVG Purpose types available: viewer, stackup, stackup-boardonly, panel-outline, output-errors (Default: VIEWER)

Example EXPORT_SVG Array:

EXPORT_SVG {
JOB=PowerPointDino
FOLDER=mySvgFilesOutput/
LineWidth=0.1
IncludeAttributes
OutputArcsWhenPossible
BACKGROUND=white
}
#This sample generates a Panel Outline drawing
EXPORT_SVG {
JOB=@active
UNITS=INCH
FILE=myPanelOutline.svg
purpose=panel-outline
BACKGROUND=white
}
#This sample generates a drawing of any detected DFM Errors
EXPORT_SVG {
JOB=@active
UNITS=INCH
FILE=myDfmerrors.svg
purpose=output-errors
BACKGROUND=white
}