Set the shape of the pad.
Syntax: |
FWizPadStyle.SetPolygonShape(layerType, height, width, sides, rotation = 0)
|
Parameters
Parameter |
Description |
layerType |
The layer on which to apply the pad shape. Specify one of the following values:
FWiz.LAYERTYPE_ALLPCBLAYERS |
FWiz.LAYERTYPE_TOPCOPPER |
FWiz.LAYERTYPE_BOTTOMCOPPER |
FWiz.LAYERTYPE_ALLINNERCOPPER |
FWiz.LAYERTYPE_INNERCOPPER1 |
FWiz.LAYERTYPE_INNERCOPPER2 |
FWiz.LAYERTYPE_INNERCOPPER3 |
FWiz.LAYERTYPE_INNERCOPPER4 |
FWiz.LAYERTYPE_INNERCOPPER5 |
FWiz.LAYERTYPE_INNERCOPPER6 |
FWIz.LAYERTYPE_INNERCOPPER7 |
FWiz.LAYERTYPE_INNERCOPPER8 |
FWiz.LAYERTYPE_INNERCOPPER9 |
FWIz.LAYERTYPE_INNERCOPPER10 |
FWIz.LAYERTYPE_INNERCOPPER11 |
FWiz.LAYERTYPE_INNERCOPPER12 |
FWiz.LAYERTYPE_INNERCOPPER13 |
FWiz.LAYERTYPE_INNERCOPPER14 |
FWiz.LAYERTYPE_INNERCOPPER15 |
FWiz.LAYERTYPE_INNERCOPPER16 |
FWiz.LAYERTYPE_TOPRESISTMASK |
FWiz.LAYERTYPE_BOTTOMRESISTMASK |
FWiz.LAYERTYPE_TOPPASTEMASK |
FWiz.LAYERTYPE_BOTTOMPASTEMASK |
FWiz.LAYERTYPE_KEEPOUT |
|
height |
Specifies the size of the pad on the y-axis. |
width |
Specifies the size of the pad on the x-axis. |
sides |
The number of sides of the polygon. |
rotation |
Specify the rotation of the shape in degrees. |
Return Value
If the operation ends correctly, it returns true otherwise it returns false.
Remarks
LAYERTYPE_ALLPCBLAYERS describes the default shape, i.e. the shape the pad takes for all layers for which no specific shape has been defined.
LAYERTYPE_ALLINNERCOPPER describes the shape of the pad for all inner layers.
Example
|
Copy code
|
|
See also