Adds a PCB profile.
Syntax: |
---|
DlxPage.DrawBoard(shape) DlxPage.DrawBoard(shapeDef) DlxPage.DrawBoard(rect, rotAngle = 0) DlxPage.DrawBoard(points, slotWidth = 0) DlxPage.DrawBoard(center, sizex, sizey = 0, rotAngle = 0) |
Parameters
Parameter | Description |
---|---|
shape | A DlxFigure object with the shape. |
shapeDef | String with the definition of the copper shape. For more information, see Shape Format Specifications. |
rect | A DlxRect object that specify the copper rectangle. |
rotAngle | The angle, in degrees, of rotation of the copper with respect to the x-axis. |
points | Arrays of DlxPoint objects with coordinates of the polygon vertices. |
slotWidth | If greater than zero, the vertices specified in points define a slot whose width is defined by slotWidth. If equal to zero the vertices defined in points define a polygon. |
center | A DlxPoint object with the coordinates specifying the center of the ellipse. |
sizex | A positive value that defines the radius of the circle or the half length of the x-axis of the ellipse. |
sizey | A positive value defining the half length of the y-axis of the ellipse. If zero is specified, sizey is set equal to sizex. |
Return Value
The newly created DlxBoard object. Call the IsValid() method to determine if the object was created correctly.
Example
Copy code | |
---|---|
|