ModifyGerberFilesDoc.tioga
Christophe Cuenod, February 15, 1988 4:53:13 pm PST
Transform gerber files to add arbitrary shapes
CEDAR 7.0 — FOR INTERNAL XEROX USE ONLY
ModifyGerberFiles.
Christophe Cuenod
© Copyright 1987 Xerox Corporation. All rights reserved.
Abstract: Transform a set of gerber files justify them, to reverse the Y axis and to add arbitrary shapes.
Created by: Christophe Cuenod
Maintained by: Christophe Cuenod <Cuenod.pa>
Keywords: Versatec Expert System, Gerber, Photoploting.
XEROX  Xerox Corporation
   Palo Alto Research Center
   3333 Coyote Hill Road
   Palo Alto, California 94304

For Internal Xerox Use Only
Usage
ModifyGerberFiles commandfile <CR>
The program will first parse the command file for:
the set of apertures that will be replaced by an arbitrary gerber command.
the names of the files to modify and the name of the modified files
It then reads each file in sequence to find out how to translate the drawings and reverse the y axis.
It reads again each file and write the new ones. When needed a flash is replaced by the set of gerber commands specified.
Each line of the command file should look like this:
"ApertureModification aperture command"
where - ApertureModification  keyword
  - aperture IN [1..24] aperture number in the input files
  - command An arbitrary set of gerber commands (X and Y will be treated as offsets relatives to the current flash position)
any number of those lines can be in the command file. If a aperture appears in more than one line the last definition wins.
"File oldFile newFile"
where - File  keyword
  - oldFile  name of an input file
  - newFile name of the corresponding output file
there should be at least one line with a couple of filenames.
Example of command file:
ApertureModification 3 X-129D1*
ApertureModification 4 G54D12*X+129D1*
ApertureModification 5 G54D12*X-179D1*
ApertureModification 6 G54D12*X+179D1*
ApertureModification 10 G54D19*X-130D1*
ApertureModification 11 G54D19*X+130D1*
ApertureModification 12 G54D19*X-180D1*
ApertureModification 13 G54D19*X+180D1*
File Backpanel.etch1.dwg.photo Backpanel.01.gerber
File Backpanel.etch2.dwg.photo Backpanel.02.gerber
File Backpanel.etch3.dwg.photo Backpanel.03.gerber
File Backpanel.etch4.dwg.photo Backpanel.04.gerber
File Backpanel.etch5.dwg.photo Backpanel.05.gerber
File Backpanel.etch6.dwg.photo Backpanel.06.gerber
Explanation of the commands:
G54D12* specify use aperture 3
X+129D1* specify draw a line 129 mills long in direction of the x axis.
For more information see Gerber specification