Allows the user to enter arcs by specifying two end points and a point on its circumference.
Arc 3 Pt (Add item on the Edit menu)
ADD3PTARC [xl, y1, x2, y2, x3, y3] ...
The x coordinate of the first end point of the arc.
The y coordinate of the first end point of the arc.
The x coordinate of the second end point of the arc.
The y coordinate of the second end point of the arc.
The x coordinate of a point on the circumference of the arc.
The y coordinate of a point on the circumference of the arc.
This command adds three-point arcs into your Gerber layer. GerbTool draws the arc on the active layer using the current D-code in a counter-clockwise direction. The arc is created either as a 3600 interpolated circle or with multiple line segments, depending on the style that is currently active. Note that you can use this command to draw multiple arcs with a single call by passing all of the coordinates for all of the· arcs to the command.
The following example adds an arc to layer 1 using D-Code 10, whose end points are at (0,0) and (1, 0) and passes through (0.5, 0.5).
ACTIVELAYER 1
CURRENTDCODE 10
ADD3PTARC 0,0, 1,0, 0.5, 0.5
ADDARC, ADDCIRCLE
108 OrCAD Layout for Windows GerbTool User's Guide
ADDARC
Allows you to enter arcs by specifying the center, and two points defining the starting and ending angles.
Arc Ctr (Add item on the Edit menu)
ADDARC [xl, y1, x2, y2, x3, y3] ...
The x coordinate of the center of the arc.
The y coordinate of the center of the arc.
The x coordinate of the starting point of the arc.
The y coordinate of the starting point of the arc.
The x coordinate of the ending point of the arc.
The y coordinate of the ending point of the arc.
Use this command to add an arc to your Gerber layer.
GerbTool draws this arc on the active layer using the current D-code in a counter-clockwise direction. The arc is created either as a 3600 interpolated circle or with multiple line segments, depending on the style that is currently active. Note that you can use this command to draw multiple arcs with a single call by passing all of the coordinates for all of the arcs to the command.
The following example adds an arc to layer 1 using D-code 10, with a center at 0,0 and end points at -1,0 and 1,0.
ACT IVELAYER 1
CURRENTDCODE 10
ADDARC 0,0, -1,0, 1,0
ADD3PT ARC, ADDCIRCLE
DreAD Layout for Windows Gerb Tool User's Guide 109
ADDCIRCLE
Allows you to draw a circle by specifying its center, and a point defining its radius.
Circle (Add item on the Edit menu) ADDCIRCLE [xl, y1, x2, y2] ...
The x coordinate of the center of the circle.
The y coordinate of the center of the circle.
The x coordinate of a point on the radius of the circle.
The y coordinate of a point on the radius of the circle.
Use this command to add a circle to your Gerber layer.
GerbTool draws this circle on the active layer using the current D-code in a counter-clockwise direction. The arc is created either as a 3600 interpolated circle or with multiple line segments, depending on the style that is currently active. Note that you can use this command to draw multiple circles with a single call by passing all of the coordinates for all of the circles to the command.
The following example adds a circle to layer 1 using D-code 10, with a center at 0,0 and a radius of 3 inches.
110 DrCAD Layout for Windows GerbTool User's Guide
ADDDRAW
Allows you to draw a line by specifying its end points.
Draw (Add item on the Edit menu) . ADDDRAW [xl, yl, x2, y2] . . .
The x coordinate of the starting point of the line.
The y coordinate of the starting point of the line The x coordinate of the ending point of the line.
The y coordinate of the ending point of the line.
Use this command to add a line or trace into your Gerber layer. GerbTool draws this line on the active layer using the current D-code. Note that you can use this command to draw multiple lines with a single call by passing all of the coordinates for all of the lines to the command. When drawing more than one line, you only need to pass the ending points of subsequent lines. GerbTool automatically starts each line at the endpoint of the previous line.
The following example creates a I inch box out of 4 lines, whose lower left comer is at the 0,0 coordinate. Note how only the changed coordinates need to be entered.
ACTIVELAYER 1 CURRENTDCODE 10
ADDDRAW 0,0, 0,1, 1,1, 1,0, 0,0
OrCAD Layout for Windows Gerb Tool User's Guide 111
ADDFILL
Allows you to perform a polyfill.
Fill (Add item on the Edit menu)l ADDFILL [x, y] ...
The x coordinate of a point on the fill border.
The y coordinate of a point on the fill border.
Use this command to enter a closed polygon and GerbTool fills the interior of the polygon. This command is
commonly used to create ground plane areas. To use this command, enter at least 3 x, y coordinate pairs to specify the outline to fill. If you enter fewer, GerbTool stops and prompts you for the missing coordinates. GerbTool then outlines the polygon with the current D-code, and begins filling the interior of the polygon with increasing aperture sizes as long as it can continue to find an aperture that is twice the size of the current aperture being used. As it fills toward the center of the polygon the aperture sizes become larger and larger. This allows the polygon to be filled with the least amount of data thereby keeping the database size as small as possible. If an aperture twice the size of the last aperture used cannot be located GerbTool fills the
remainder of the polygon with the last aperture found.
The following example creates a I-inch filled box, with a lower left corner at the 0,0 co~rdinate.
ACTlVELAYER 1 CURRENTDCODE 10
ADDFILL 0,0, 0,1, 1,1, 1,0, 0,0
112 DreAD Layout for Windows Gerb Tool User's Guide
ADDFLASH Purpose Menu command Syntax
Parameters x y Description
Example
Chapter 8 Macros
Allows you to add a flash at a specified location.
Flash (Add item on the Edit menu) ADDFLASH [x, y] . . .
The x coordinate of the location to add a flash.
The y coordinate of the location to add a flash.
Use this command to add a flash to your Gerber data. The flash is created on the active layer using the current D-code. If you want, you can use mUltiple coordinates with this command: GerbTool places a flash at each location.
The following example adds four flashes forming the comers of a 1 inch box, with a lower left comer at the 0,0 coordinate.
ACT I VELAYER 1