KiCad Pcbnew Python Scripting
|
Layout pads according to a custom array of [x,y] data. More...
Public Member Functions | |
def | __init__ (self, pad, array) |
def | NamingFunction (self, n) |
Simple increment along the given array. More... | |
def | AddPadsToModule (self, dc) |
Create the pads and add them to the module in the correct positions. More... | |
Public Member Functions inherited from plugins.PadArray.PadArray | |
def | __init__ (self, pad) |
def | SetPinNames (self, pinNames) |
Set a name for all the pins. More... | |
def | SetFirstPadType (self, firstPad) |
If the array has a different first pad, this is the pad that is used. More... | |
def | SetFirstPadInArray (self, fpNum) |
Set the numbering for the first pad in the array. More... | |
def | AddPad (self, pad) |
Add a pad to the array, under the same moodule as the main prototype pad. More... | |
def | GetPad (self, is_first_pad, pos) |
Get a pad in the array with the given position. More... | |
def | GetName (self, *args, **kwargs) |
Get the pad name from the naming function, or the pre-set pinNames parameter (set with SetPinNames) More... | |
def | NamingFunction (self, *args, **kwargs) |
Implement this as needed for each array type. More... | |
Public Attributes | |
array | |
Public Attributes inherited from plugins.PadArray.PadArray | |
firstPadNum | |
pinNames | |
pad | |
firstPad | |
Layout pads according to a custom array of [x,y] data.
Definition at line 431 of file PadArray.py.
def plugins.PadArray.PadCustomArray.__init__ | ( | self, | |
pad, | |||
array | |||
) |
pad | the prototypical pad |
array | the position data array |
Reimplemented from plugins.PadArray.PadArray.
Definition at line 436 of file PadArray.py.
def 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 452 of file PadArray.py.
def 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 445 of file PadArray.py.
plugins.PadArray.PadCustomArray.array |
Definition at line 443 of file PadArray.py.