|
KiCad Pcbnew Python Scripting
|
Layout pads according to a custom array of [x,y] data. More...

Public Member Functions | |
| __init__ (self, pad, array) | |
| NamingFunction (self, n) | |
| Simple increment along the given array. | |
| AddPadsToModule (self, dc) | |
| Create the pads and add them to the module in the correct positions. | |
Public Member Functions inherited from plugins.PadArray.PadArray | |
| __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 | |
| array = array | |
Public Attributes inherited from plugins.PadArray.PadArray | |
| int | firstPadNum = 1 |
| pinNames = None | |
| pad = pad | |
| firstPad = None | |
Layout pads according to a custom array of [x,y] data.
Definition at line 448 of file PadArray.py.
| plugins.PadArray.PadCustomArray.__init__ | ( | self, | |
| pad, | |||
| array ) |
| pad | the prototypical pad |
| array | the position data array |
Definition at line 453 of file PadArray.py.

| plugins.PadArray.PadCustomArray.AddPadsToModule | ( | self, | |
| dc ) |
Create the pads and add them to the module in the correct positions.
| dc | the drawing context |
Definition at line 469 of file PadArray.py.
| plugins.PadArray.PadCustomArray.NamingFunction | ( | self, | |
| n ) |
Simple increment along the given array.
| n | the pad index in the array |
Reimplemented from plugins.PadArray.PadArray.
Definition at line 462 of file PadArray.py.
| plugins.PadArray.PadCustomArray.array = array |
Definition at line 460 of file PadArray.py.