KiCad Pcbnew Python Scripting
|
A staggered pin array. More...
Public Member Functions | |
__init__ (self, pad, pad_count, line_count, line_pitch, pad_pitch, centre=pcbnew.VECTOR2I(0, 0)) | |
NamingFunction (self, pad_pos) | |
Naming just increased with pad index in array. | |
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 | |
pad_count = int(pad_count) | |
line_count = int(line_count) | |
line_pitch = line_pitch | |
pad_pitch = pad_pitch | |
centre = centre | |
![]() | |
int | firstPadNum = 1 |
pinNames = None | |
pad = pad | |
firstPad = None | |
A staggered pin array.
Definition at line 311 of file PadArray.py.
plugins.PadArray.PadZGridArray.__init__ | ( | self, | |
pad, | |||
pad_count, | |||
line_count, | |||
line_pitch, | |||
pad_pitch, | |||
centre = pcbnew.VECTOR2I(0, 0) ) |
pad | the prototypical pad |
pad_count | total pad count |
line_count | number of staggered lines |
line_pitch | distance between lines |
pad_pitch | distance between pads in a line |
centre | array centre point |
Definition at line 316 of file PadArray.py.
plugins.PadArray.PadZGridArray.AddPadsToModule | ( | self, | |
dc ) |
Create the pads and add them to the module in the correct positions.
dc | the drawing context |
Definition at line 340 of file PadArray.py.
plugins.PadArray.PadZGridArray.NamingFunction | ( | self, | |
pad_pos ) |
Naming just increased with pad index in array.
Reimplemented from plugins.PadArray.PadArray.
Definition at line 334 of file PadArray.py.
plugins.PadArray.PadZGridArray.centre = centre |
Definition at line 332 of file PadArray.py.
plugins.PadArray.PadZGridArray.line_count = int(line_count) |
Definition at line 329 of file PadArray.py.
plugins.PadArray.PadZGridArray.line_pitch = line_pitch |
Definition at line 330 of file PadArray.py.
plugins.PadArray.PadZGridArray.pad_count = int(pad_count) |
Definition at line 328 of file PadArray.py.
plugins.PadArray.PadZGridArray.pad_pitch = pad_pitch |
Definition at line 331 of file PadArray.py.