|
KiCad Pcbnew Python Scripting
|
A basic grid of pads. More...

Public Member Functions | |
| __init__ (self, pad, nx, ny, px, py, centre=pcbnew.VECTOR2I(0, 0)) | |
| AlphaNameFromNumber (self, n, aIndex=1, alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ") | |
| Utility function to generate an alphabetical name: | |
| NamingFunction (self, x, y) | |
| Implementation of the naming function: right to left, top-to-bottom. | |
| 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 | |
| nx = int(nx) | |
| ny = int(ny) | |
| px = px | |
| py = py | |
| centre = centre | |
Public Attributes inherited from plugins.PadArray.PadArray | |
| int | firstPadNum = 1 |
| pinNames = None | |
| pad = pad | |
| firstPad = None | |
A basic grid of pads.
Definition at line 218 of file PadArray.py.
| plugins.PadArray.PadGridArray.__init__ | ( | self, | |
| pad, | |||
| nx, | |||
| ny, | |||
| px, | |||
| py, | |||
| centre = pcbnew.VECTOR2I(0, 0) ) |
| pad | the prototypical pad of the array |
| nx | number of pads in x-direction |
| ny | number of pads in y-direction |
| px | pitch in x-direction |
| py | pitch in y-direction |
| centre | array centre point |
Definition at line 223 of file PadArray.py.

| plugins.PadArray.PadGridArray.AddPadsToModule | ( | self, | |
| dc ) |
Create the pads and add them to the module in the correct positions.
| dc | the drawing context |
Definition at line 275 of file PadArray.py.
| plugins.PadArray.PadGridArray.AlphaNameFromNumber | ( | self, | |
| n, | |||
| aIndex = 1, | |||
| alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" ) |
Utility function to generate an alphabetical name:
eg. 1 - A, 2 - B, 26 - AA, etc
| aIndex | index of 'A': 0 for 0 - A |
| n | the pad index |
| alphabet | set of allowable chars if not A-Z, e.g. ABCDEFGHJKLMNPRTUVWY for BGA |
Definition at line 244 of file PadArray.py.

| plugins.PadArray.PadGridArray.NamingFunction | ( | self, | |
| x, | |||
| y ) |
Implementation of the naming function: right to left, top-to-bottom.
| x | the pad x index |
| y | the pad y index |
Reimplemented from plugins.PadArray.PadArray.
Reimplemented in plugins.PadArray.EPADGridArray.
Definition at line 265 of file PadArray.py.
| plugins.PadArray.PadGridArray.centre = centre |
Definition at line 242 of file PadArray.py.
| plugins.PadArray.PadGridArray.nx = int(nx) |
Definition at line 238 of file PadArray.py.
| plugins.PadArray.PadGridArray.ny = int(ny) |
Definition at line 239 of file PadArray.py.
| plugins.PadArray.PadGridArray.px = px |
Definition at line 240 of file PadArray.py.
| plugins.PadArray.PadGridArray.py = py |
Definition at line 241 of file PadArray.py.