📄 eagle.def
字号:
" 0 MediaW DrawY sub 2 div translate\n"\
" }{\n"\
" DrawX MediaW le DrawY medialength le and {\n"\
" MediaW DrawY 1 setpage\n"\
" MediaW DrawX sub 2 div 0 translate\n"\
" }{\n"\
" AbortMessage\n"\
" } ifelse\n"\
" } ifelse\n"\
" } ifelse\n"\
" end\n"\
" }{\n"\
" %% this is for machines that can NOT tell the media size:\n"\
" %% (Ghostscript doesn't like this!)\n"\
" /Product product length string def\n"\
" /i 0 def\n"\
" product { dup 97 lt { 32 add } if Product exch i exch put /i i 1 add def } forall \n"\
" Product (ghostscript) search dup /IsGhostscript exch def\n"\
" { pop pop } if\n"\
" pop\n"\
" IsGhostscript not {\n"\
" statusdict /setpage known {\n"\
" statusdict begin\n"\
" RotateDrawing {\n"\
" LeftMargin PageHeight add BotMargin DrawY add\n"\
" }{\n"\
" BotMargin DrawY add LeftMargin DrawX add \n"\
" } ifelse\n"\
" 0 setpage\n"\
" end\n"\
" } if\n"\
" } if\n"\
" %% set clipping boundary:\n"\
" newpath\n"\
" LeftMargin BotMargin moveto\n"\
" 0 PageHeight rlineto\n"\
" PageWidth 0 rlineto\n"\
" 0 PageHeight neg rlineto\n"\
" closepath\n"\
" clip\n"\
" %% set the origin:\n"\
" LeftMargin BotMargin translate\n"\
" RotateDrawing {\n"\
" 0 PageHeight translate\n"\
" -90 rotate\n"\
" PageHeight Column mul neg PageWidth Row mul neg translate\n"\
" }{\n"\
" PageWidth Column mul neg PageHeight Row mul neg translate\n"\
" } ifelse\n"\
" } ifelse\n"\
" %% move the lower left corner of the drawing to the origin:\n"\
" MinDrawX neg MinDrawY neg translate\n"\
" \n"\
" %% Linestyle:\n"\
" \n"\
" 1 setlinecap\n"\
" 1 setlinejoin\n"\
" \n"\
" %% invert drawing:\n"\
" newpath\n"\
" MinDrawX MinDrawY moveto\n"\
" MaxDrawX MinDrawY lineto\n"\
" MaxDrawX MaxDrawY lineto\n"\
" MinDrawX MaxDrawY lineto\n"\
" 0 setgray\n"\
" closepath fill\n"\
" 1 setgray\n"\
" \n"\
" } def\n"\
"\n"\
"%% TheDrawing\n"
[PS_DINA3]
@PS
Long = "Postscript (printable) DIN A3"
Width = 11.36
Height = 16.00
[HPGL2]
Type = Generic
Long = "HP-GL/2 printer"
Init = "\x1B%%1BIN;IP0,0,100,100SC0,100,0,100"\
"WU1MC1NP14CR0,15,0,15,0,15"\
"PC1,15,0,15PC2,0,15,15PC3,0,0,15PC4,15,15,0"\
"PC5,15,0,0PC6,0,15,0PC7,0,0,0PC8,15,12,15"\
"PC9,12,15,15PC10,12,12,15PC11,15,15,12PC12,15,12,0"\
"PC13,12,15,0PC14,11,11,11"\
"PA;\n"
;Use the following as first line of the Init string for A3 sized paper:
;Init = "\x1B&l27A\x1B%%-1BIN;IP0,0,100,100SC0,100,0,100"\
Reset = "\x1B%%0A\f"
ResX = 1016
ResY = 1016
HwArcX1Y1CxCyA = "PU%d,%dPDAA%d,%d,%d\n" ; (x1, y1, xc, yc, ArcAngle)
HwColor = "SP%u" ; (Pen-Number)
HwLine = "PU%d,%dPD%d,%d\n"
HwPoly1 = "PU%d,%dPM0PA%d,%d" ; first edge
HwPoly2 = ",%d,%d" ; other points
HwPoly3 = "PM2FP;\n" ; end of polygon
HwWidth = "PW%u" ; (Pen-Width)
MaxHwWidth = 5
[GERBER]
Type = PhotoPlotter
Long = "Gerber photoplotter"
Init = "G01*\nX000000Y000000D02*\n"
Reset = "X000000Y000000D02*\nM02*\n"
ResX = 10000
ResY = 10000
;Wheel = ""
Move = "X%0.6dY%0.6dD02*\n" ; (x, y)
Draw = "X%0.6dY%0.6dD01*\n" ; (x, y)
Flash = "X%0.6dY%0.6dD03*\n" ; (x, y)
Aperture = "%s*\n" ; (Aperture code)
Units = Inch
Info = "Plotfile Info:\n"\
"\n"\
" Coordinate Format : 2.4\n"\
" Coordinate Units : Inch\n"\
" Data Mode : Absolute\n"\
" Zero Suppression : None\n"\
" End Of Block : *\n"\
"\n"
[GERBERAUTO]
@GERBER
Long = "Gerber photoplotter with automatic aperture wheel generation"
Wheel = "" ; avoids message!
AutoAperture = "D%d" ; (Aperture number)
FirstAperture = 10
Units = Inch
;MaxApertureSize = 0.2 ; Inch
[GERBER_RS274X]
@GERBERAUTO
Long = "Gerber photoplotter with RS-274-X aperture generation"
Units = Inch
Init = "G75*\n" \ allow positive and negative coordinates
"G70*\n" \ units are Inch (G71 for metric)
"%%OFA0B0*%%\n" \ horizonal and vertical OFfset is 0
"%%FSLAX24Y24*%%\n"\ Format Statement is Absolute (I for incremental) 2.4
"%%IPPOS*%%\n" \ Image Polarity is POSitive (NEG for nagative)
"%%LPD*%%\n" \ Layer Polarity Dark (C for clear on negative planes)
"%%AMOC8*\n5,1,8,0,0,1.08239X$1,22.5*\n"\ Octagons are emulated with a circle (using 8 vertices)
"%%\n" ; and therefore the diameter must be enlarged with '1 / cos(pi / 8)'
Reset = "M02*\n"
Circle = "%%AD%sC,%6.4f*%%\n" ; (code, diameter)
Rectangle = "%%AD%sR,%6.4fX%6.4f*%%\n" ; (code, dx, dy)
Oval = "%%AD%sO,%6.4fX%6.4f*%%\n" ; (code, dx, dy)
; According to the RS-274-X specs there is an aperture macro
; primitive that allows us to specify an octagon (i.e. a polygon with
; 8 vertices). As some Gerber viewers seem to have problems with that,
; we would have to use a round shape for that.
; If your Gerber processor cannot handle the polygon primitive you may
; uncomment the following line and comment out the line after it:
;Octagon = "%%AD%sC,%6.4f*%%\n" ; (code, diameter) (looks like there is no octagon, so we take a circle)
Octagon = "%%AD%sOC8,%6.4f*%%\n" ; (code, diameter)
Annulus = "%%AMAN%s*\n1,1,%6.4f,0,0*\n1,0,%6.4f,0,0*\n"\
"%%\n"\
"%%AD%sAN%s*%%\n" ; (code, diameter, inner diameter, code, code)
Thermal = "%%AMTH%sX*\n1,1,%6.4f,0,0*\n1,0,%6.4f,0,0*\n"\
"21,0,%6.4f,%6.4f,0,0,45*\n21,0,%6.4f,%6.4f,0,0,135*\n"\
"%%\n"\
"%%AD%sTH%sX*%%\n"; (code, diameter, inner diameter, diameter + 2mil, gap, diameter + 2mil, gap, code, code)
[GERBER_23]
Type = PhotoPlotter
Long = "Gerber photoplotter, coordinate format 2.3 inch"
Init = "G01*\nX00000Y00000D02*\n"
Reset = "X00000Y00000D02*\nM02*\n"
ResX = 1000
ResY = 1000
;Wheel = ""
Move = "X%0.5dY%0.5dD02*\n" ; (x, y)
Draw = "X%0.5dY%0.5dD01*\n" ; (x, y)
Flash = "X%0.5dY%0.5dD03*\n" ; (x, y)
Aperture = "%s*\n" ; (Aperture code)
Units = Inch
Info = "Plotfile Info:\n"\
"\n"\
" Coordinate Format : 2.3\n"\
" Coordinate Units : Inch\n"\
" Data Mode : Absolute\n"\
" Zero Suppression : None\n"\
" End Of Block : *\n"\
"\n"
[GERBERAUTO_23]
@GERBER_23
Long = "Gerber photoplotter with automatic aperture wheel generation"
Wheel = "" ; avoids message!
AutoAperture = "D%d" ; (Aperture number)
FirstAperture = 10
Units = Inch
[EMMA]
Type = PhotoPlotter
Long = "EMMA 30/80 photoplotter"
Init = "%%\nS7X000000Y000000\n"
Reset = "S7X000000Y000000\n$\n"
ResX = 20000
ResY = 20000
;Wheel = ""
Move = "S7X%0.6dY%0.6d\n" ; (x, y)
Draw = "S2X%0.6dY%0.6d\n" ; (x, y)
Flash = "S1X%0.6dY%0.6d\n" ; (x, y)
Aperture = "%s\n" ; (Aperture code)
Info = "Plotfile Info:\n"\
"\n"\
" Coordinate Format : 6\n"\
" Coordinate Units : 1/800 mm\n"\
" Data Mode : Absolute\n"\
" Zero Suppression : None\n"\
"\n"
[GLASER]
Type = PhotoPlotter
Long = "GLASER DP-1504 photoplotter"
Init = "IN;FC0.0254;CS1,1,0;SI1,1;\n"
Reset = "PU;PA0,0;\n"
ResX = 1000
ResY = 1000
Wheel = "glaser.whl"
Move = "PA%d,%d;\n" ; (x, y)
Draw = "PA%d,%d;\n" ; (x, y)
PenDown = "PD;\n"
PenUp = "PU;\n"
Flash = "PA%d,%d;%s\n" ; (x, y, Aperture code)
Aperture = "%s\n" ; (Aperture code)
Info = "Plotfile Info:\n"\
"\n"\
" Coordinate Units : 1/1000 Inch\n"\
" Data Mode : Absolute\n"\
"\n"
[EXCELLON]
Type = DrillStation
Long = "Excellon drill station"
Init = "%%\nM48\nM72\n"
Reset = "M30\n"
ResX = 10000
ResY = 10000
;Rack = ""
DrillSize = "%sC%0.4f\n" ; (Tool code, tool size)
AutoDrill = "T%02d" ; (Tool number)
FirstDrill = 1
BeginData = "%%\n"
Units = Inch
Select = "%s\n" ; (Drill code)
Drill = "X%1.0fY%1.0f\n" ; (x, y)
Info = "Drill File Info:\n"\
"\n"\
" Data Mode : Absolute\n"\
" Units : 1/10000 Inch\n"\
"\n"
[EXCELLON_RACK]
Type = DrillStation
Long = "Excellon drill station with user supplied rack file"
Init = "%%\n"
Reset = "M30\n"
ResX = 10000
ResY = 10000
;Rack = ""
Select = "%s\n" ; (Drill code)
Drill = "X%1.0fY%1.0f\n" ; (x, y)
Info = "Drill File Info:\n"\
"\n"\
" Data Mode : Absolute\n"\
" Units : 1/10000 Inch\n"\
"\n"
[SM1000]
Type = DrillStation
Long = "Sieb & Meyer 1000 drill station"
Init = "%%%%1000\n"
Reset = "M30\n"
ResX = 2540
ResY = 2540
;Rack = ""
Drill = "X%1.0fY%1.0f%s\n" ; (x, y, drill code)
Info = "Drill File Info:\n"\
"\n"\
" Data Mode : Absolute\n"\
" Units : 1/100 mm\n"\
"\n"
[SM3000]
Type = DrillStation
Long = "Sieb & Meyer 3000 drill station"
Init = "%%%%3000\n"
Reset = "M30\n"
ResX = 25400
ResY = 25400
Divide = 1000 ; makes coordinates MM
;Rack = ""
Drill = "X%1.3fY%1.3f%s\n" ; (x, y, drill code)
Info = "Drill File Info:\n"\
"\n"\
" Data Mode : Absolute\n"\
" Units : mm\n"\
"\n"
[SMS68]
Type = DrillStation
Long = "SMS68 drill station"
Init = ";\n"
Reset = "TO0;PA0,0;\n"
ResX = 25400
ResY = 25400
;Rack = ""
Select = "%s;\n" ; (Drill code)
Drill = "PA%1.0f,%1.0f;PD;PU;\n" ; (x, y)
Info = "Drill File Info:\n"\
"\n"\
" Data Mode : Absolute\n"\
" Units : 1/1000 mm\n"\
"\n"
[GBRDRL]
Type = DrillStation
Long = "Gerber Drill Code"
Init = "G01*\nX00000Y00000D02*\n"
Reset = "X00000Y00000D02*\nM02*\n"
ResX = 1000
ResY = 1000
;Rack = ""
Select = "%s*\n" ; (Drill code)
Drill = "X%05.0fY%05.0fD03*\n" ; (x, y)
Info = "Drill File Info:\n"\
"\n"\
" Coordinate Format : 2.3\n"\
" Coordinate Units : Inch\n"\
" Data Mode : Absolute\n"\
" Zero Suppression : None\n"\
" End Of Block : *\n"\
"\n"
[CALCOMP]
Type = Calcomp
Long = "CalComp PCI pen plotter"
Init = "\x08\x0B" \ Init
"\x09\x01" ; Scaling 1
Reset = ""
ResX = 2032
ResY = 2032
PenSelect = "\x04%c" ; Pens numbered 1..n
Sync = "\x02"
Bias = 0x20
Radix = 0x40
Buffer = 256
Checksum = YES
[CALCOMPE]
Type = CalcompE
Long = "CalComp PCI electrostatic plotter"
Init = "\x08\x0B" \ Init
"\x09\x01" ; Scaling 1
Reset = ""
ResX = 2032
ResY = 2032
Sync = "\x02"
Bias = 0x20
Radix = 0x40
Buffer = 256
Checksum = YES
[CALCOMP_M84]
Type = PenPlotter
Long = "Calcomp M84 Plotter"
Init = ""
Reset = "F\nH\nR0\n"
Width = 16
Height = 11
ResX = 254
ResY = 254
PenSelect = "F%u\n"
Move = "C %d,%d HK\n"
Draw = "C %d,%d IK\n"
PenCircleCxCyRxCxCyRx = "C %d,%d HK \n O0 %d,0,360\n"
PenVelocity = "F10,%d\n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -