KiCad Pcbnew Python Scripting
|
Circular pad array. More...
Public Member Functions | |
__init__ (self, pad, n, r, angle_offset=0, centre=pcbnew.VECTOR2I(0, 0), clockwise=True, padRotationEnable=False, padRotationOffset=0) | |
NamingFunction (self, n) | |
Naming around the circle, CW or CCW according to the clockwise flag. | |
AddPadsToModule (self, dc) | |
Create the pads and add them to the module in the correct positions. | |
![]() | |
__init__ (self, pad) | |
SetPinNames (self, pinNames) | |
Set a name for all the pins. | |
SetFirstPadType (self, firstPad) | |
If the array has a different first pad, this is the pad that is used. | |
SetFirstPadInArray (self, fpNum) | |
Set the numbering for the first pad in the array. | |
AddPad (self, pad) | |
Add a pad to the array, under the same footprint as the main prototype pad. | |
GetPad (self, is_first_pad, pos) | |
Get a pad in the array with the given position. | |
GetName (self, *args, **kwargs) | |
Get the pad name from the naming function, or the pre-set pinNames parameter (set with SetPinNames) | |
Public Attributes | |
n = int(n) | |
r = r | |
angle_offset = angle_offset | |
centre = centre | |
clockwise = clockwise | |
padRotationEnable = padRotationEnable | |
padRotationOffset = padRotationOffset | |
![]() | |
int | firstPadNum = 1 |
pinNames = None | |
pad = pad | |
firstPad = None | |
Circular pad array.
Definition at line 389 of file PadArray.py.
plugins.PadArray.PadCircleArray.__init__ | ( | self, | |
pad, | |||
n, | |||
r, | |||
angle_offset = 0, | |||
centre = pcbnew.VECTOR2I(0, 0), | |||
clockwise = True, | |||
padRotationEnable = False, | |||
padRotationOffset = 0 ) |
pad | the prototypical pad |
n | number of pads in array |
r | the circle radius |
angle_offset | angle of the first pad |
centre | array centre point |
clockwise | array increases in a clockwise direction |
padRotationEnable | also rotate pads when placing |
padRotationOffset | rotation of first pad |
Definition at line 394 of file PadArray.py.
plugins.PadArray.PadCircleArray.AddPadsToModule | ( | self, | |
dc ) |
Create the pads and add them to the module in the correct positions.
dc | the drawing context |
Definition at line 423 of file PadArray.py.
plugins.PadArray.PadCircleArray.NamingFunction | ( | self, | |
n ) |
Naming around the circle, CW or CCW according to the clockwise flag.
Reimplemented from plugins.PadArray.PadArray.
Definition at line 417 of file PadArray.py.
plugins.PadArray.PadCircleArray.angle_offset = angle_offset |
Definition at line 411 of file PadArray.py.
plugins.PadArray.PadCircleArray.centre = centre |
Definition at line 412 of file PadArray.py.
plugins.PadArray.PadCircleArray.clockwise = clockwise |
Definition at line 413 of file PadArray.py.
plugins.PadArray.PadCircleArray.n = int(n) |
Definition at line 409 of file PadArray.py.
plugins.PadArray.PadCircleArray.padRotationEnable = padRotationEnable |
Definition at line 414 of file PadArray.py.
plugins.PadArray.PadCircleArray.padRotationOffset = padRotationOffset |
Definition at line 415 of file PadArray.py.
plugins.PadArray.PadCircleArray.r = r |
Definition at line 410 of file PadArray.py.