Numerical Matrix Format
User Reference
Output Realistic Photo Images

This sample matrix file will import Gerber and Drill files, then Output Realistic Photo Images of PCB bareboard

Download This Matrix blob Example

# EXAMPLE MATRIX FILE: Import Gerber and Drill files, then Output Realistic Photo Images of PCB bareboard
# Purpose: This example can be used to easily create an Online Gerber viewer.
#
# 1. Load Gerber and Drill Files.
# 2. Output a realistic photo images for PCB bareboard (both Top and Bottom).
#########################################################################################
# Important: All files paths in the Matix file must be realtive (for PcbPreflight.com users)
#########################################################################################
# The OPTIONS Array (not required)
# The option fab-generate_border will ensure a border is generated, because this example does not include a border file.
# Note: It's always better practice to have a seperate gerber file with the border; and not rely solely on generate_border
# More information about the \ref matrix-options-array OPTIONS array
OPTIONS {
fab-generate_border
}
# Important: Placing a semi-colon ; at the end of either LAYER or COMPOSITE fields will
# allow you to assign LAYER_TYPE and the Drill Span without having to create LAYER arrays.
# It's a very useful feature for quickly creating MATRIX files.
# More information about the \ref matrix-job-array GERBER array
GERBER {
NAME=testgerber
LAYER=layer_1,274X\Art0121.pho;TOP
LAYER=layer_2,274X\Pgp2529.pho;POS_PLANE
LAYER=layer_3,274X\gnd2530.pho;POS_PLANE
LAYER=layer_4,274X\Art02.pho;BOTTOM
LAYER=sst,274X\Sst0126.pho;SILK_TOP
LAYER=spt,274X\Sp0128.pho;PASTE_TOP
LAYER=smb,274X\Sm0227.pho;MASK_BOTTOM
LAYER=smt,274X\Sm0128.pho;MASK_TOP
LAYER=drill_thru,274X\Drill.drl;DRILL_THRUHOLE
}
# Export Realistic PCB Image of Top Side
# Note: More information about the JOB array please review the MATRIX file User Reference,
# https://numerical-help-guide.s3.amazonaws.com/matrixfile/html/matrix-export_realistic-array.html
EXPORT_REALISTIC {
CELL=testgerber
FILE=Image/MyTopPreview.png
WIDTH=1200
}
# Export Realistic PCB Image of Bottom Side
EXPORT_REALISTIC {
job=@active
FILE=Image/MyBottomPreview.jpg
WIDTH=1100
BOARDSIDE=bottom
MASKCLR=red
SILKCLR=white
BOARDFINISH=hasl
}