|
KiCad Pcbnew Python Scripting
|
Shortcut cases for a single-row grid array. More...

Public Member Functions | |
| __init__ (self, pad, n, pitch, isVertical, centre=pcbnew.VECTOR2I(0, 0)) | |
Public Member Functions inherited from plugins.PadArray.PadGridArray | |
| __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) | |
Additional Inherited Members | |
Public Attributes inherited from plugins.PadArray.PadGridArray | |
| 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 | |
Shortcut cases for a single-row grid array.
Can be used for constructing sections of larger footprints.
Definition at line 366 of file PadArray.py.
| plugins.PadArray.PadLineArray.__init__ | ( | self, | |
| pad, | |||
| n, | |||
| pitch, | |||
| isVertical, | |||
| centre = pcbnew.VECTOR2I(0, 0) ) |
| pad | the prototypical pad |
| n | number of pads in array |
| pitch | distance between pad centres |
| isVertical | horizontal or vertical array (can also use the drawing contexts transforms for more control) |
| centre | array centre |
Definition at line 372 of file PadArray.py.
