Skip to content

Gerber RS-274X

Gerber RS-274X is the standard photo-plotter format for PCB and semiconductor fabrication. LinkCAD supports both modern RS-274X (extended Gerber with embedded apertures) and legacy RS-274D formats.

Format Summary

PropertyValue
Extensions.gbr, .gbx, .ger, .art
EncodingASCII
Import
Export
LicenseGerber/ODB++
HierarchyStep-and-repeat (SR)
LayersSingle layer per file (multi-file workflows)
The **Gerber/ODB++** bundle covers both Gerber RS-274X and ODB++ workflows in current LinkCAD releases.

Import Options

Arc Resolution

OptionDescriptionDefault
Segments per 360°Number of line segments for a full circle72
ToleranceAbsolute deviation from ideal arc

Aperture Handling

OptionDescriptionDefault
Load external aperture fileAuto-load .APT files from same directoryOff
Apply layer polaritiesMerge clear-field and dark-field dataOff

RS-274D Legacy Options

For older RS-274D files without embedded aperture definitions:

OptionDescriptionDefault
UnitsInches or millimetersInches
Coordinate formatInteger and decimal digits for X/Y2.4
Zero suppressionNone, Leading, Trailing, or DecimalLeading
Coordinate modeAbsolute or IncrementalAbsolute
Circular interpolation90° quadrant or full 360°360°
Modal flash (D03)Flash command stays activeOff

Export Options

Geometry

OptionDescriptionDefault
Circular interpolationUse G02/G03 for arcs instead of line segmentsOn
Default line widthWidth for zero-width polylines0.0
Step-and-repeatUse SR commands for array referencesOn
Force draw modeUse D03 for flashed aperturesOff
Output board outlineInclude outline of drawing extentsOff

Aperture Limits

OptionDescription
Min/max circular apertureDiameter range for round apertures
Min/max rectangular apertureEdge length range for rectangular apertures

File Output

OptionDescriptionDefault
Single fileCombine all layers into one fileOff
Multiple filesOne file per layerOn
Coordinate digitsInteger and decimal digit counts2.4
Line endingsDOS/Windows, UNIX, or NoneDOS

Gerber Concepts

Apertures

Apertures define the shape of the “light beam” used to expose the photo-resist:

  • Round — circular aperture with a diameter
  • Square — square aperture with an edge length
  • Rectangle — rectangular aperture with width and height
  • Oblong — rounded rectangle (stadium shape)
  • Custom — complex aperture macros

Polarity

  • Dark — exposes (adds copper/material)
  • Clear — masks (removes copper/material)

LinkCAD can merge dark and clear field layers during import using the Apply layer polarities option.

Step-and-Repeat

Gerber step-and-repeat (SR) commands create arrays of the entire image at specified offsets. LinkCAD maps these to array references during import.

Common Workflows

GDSII → Gerber

Convert IC mask data to photo-plotter format. Each GDSII layer typically becomes a separate Gerber file.

DXF → Gerber

Generate fabrication data from mechanical CAD drawings.

Gerber → DXF

Import Gerber fabrication data into a mechanical CAD environment for design review.

Technical Notes

  • RS-274X files embed aperture definitions in the file header (AM/AD commands)
  • RS-274D files require an external aperture table (.APT file)
  • Gerber coordinates are fixed-point; precision depends on the coordinate format
  • Each Gerber file represents a single layer; multi-layer designs use multiple files
  • Arc interpolation (G02/G03) produces more compact output than line approximation

CLI / Command-File Options

These option keys can be used on the command line or in command files.

Import

KeyTypeDescription
GbrInUnitsintImport units — 0=inches, 1=millimeters
GbrInCoordinateModeintCoordinate mode — 0=absolute, 1=incremental
GbrInFormatXIntintX coordinate integer digits
GbrInFormatXDecintX coordinate decimal digits
GbrInFormatYIntintY coordinate integer digits
GbrInFormatYDecintY coordinate decimal digits
GbrInZeroSuppressionintZero suppression — 0=omit leading, 1=omit trailing, 2=explicit decimal
GbrInQuadrantModeintArc quadrant mode — 0=single quadrant (90°), 1=multi quadrant (360°)
GbrInApertureFileflagUse external aperture file
GbrInApertureFilePathstringPath to aperture definition file
GbrInCustomApertureFileflagUse custom aperture definitions
GbrInMergeLayersflagMerge all layers on import
GbrInModalD03flagModal D03 interpretation
GbrInModalG02flagModal G02 interpretation

Export

KeyTypeDescription
GbrOutDecimalsintDecimal digits
GbrOutIntegersintInteger digits
GbrOutAbsCoordinateflagUse absolute coordinates
GbrOutSuppressLeadingZeroflagSuppress leading zeros
GbrOutUnitsImperialflagUse imperial units
GbrOutCircularInterpolationflagUse circular interpolation
GbrOutFillPolygonsflagFill polygons
GbrOutFlashCirclesflagFlash circles
GbrOutFlashRectanglesflagFlash rectangles
GbrOutForceDrawflagForce draw mode
GbrOutSingleFileflagAll layers in one file
GbrOutStepAndRepeatflagUse step and repeat
GbrOutWidthUnitsintDefault width unit enum (see Units)
GbrOutWidthValuefloatDefault width value
GbrOutRoundAptLimitUnitsintRound aperture limit units (see Units)
GbrOutRoundAptLimitValuefloatRound aperture limit value
GbrOutRectAptLimitUnitsintRect aperture limit units (see Units)
GbrOutRectAptLimitValuefloatRect aperture limit value
GbrOutEobCharacterstringEnd-of-block character
GbrOutParameterDelimiterstringParameter delimiter
GbrOutLinebreaksintLinebreak style — 0=DOS/Windows (\r\n), 1=UNIX (\n), 2=none