KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
plugins.PadArray.PadCustomArray Class Reference

Layout pads according to a custom array of [x,y] data. More...

Inheritance diagram for plugins.PadArray.PadCustomArray:
Inheritance graph
[legend]

Public Member Functions

def __init__ (self, pad, array)
 
def NamingFunction (self, n)
 Simple increment along the given array.
 
def AddPadsToModule (self, dc)
 Create the pads and add them to the module in the correct positions.
 
- Public Member Functions inherited from plugins.PadArray.PadArray
def __init__ (self, pad)
 
def SetPinNames (self, pinNames)
 Set a name for all the pins.
 
def SetFirstPadType (self, firstPad)
 If the array has a different first pad, this is the pad that is used.
 
def SetFirstPadInArray (self, fpNum)
 Set the numbering for the first pad in the array.
 
def AddPad (self, pad)
 Add a pad to the array, under the same footprint as the main prototype pad.
 
def GetPad (self, is_first_pad, pos)
 Get a pad in the array with the given position.
 
def GetName (self, *args, **kwargs)
 Get the pad name from the naming function, or the pre-set pinNames parameter (set with SetPinNames)
 
def NamingFunction (self, *args, **kwargs)
 Implement this as needed for each array type.
 

Public Attributes

 array
 
- Public Attributes inherited from plugins.PadArray.PadArray
 firstPadNum
 
 pinNames
 
 pad
 
 firstPad
 

Detailed Description

Layout pads according to a custom array of [x,y] data.

Definition at line 448 of file PadArray.py.

Constructor & Destructor Documentation

◆ __init__()

def plugins.PadArray.PadCustomArray.__init__ (   self,
  pad,
  array 
)
Parameters
padthe prototypical pad
arraythe position data array

Reimplemented from plugins.PadArray.PadArray.

Definition at line 453 of file PadArray.py.

Here is the caller graph for this function:

Member Function Documentation

◆ AddPadsToModule()

def plugins.PadArray.PadCustomArray.AddPadsToModule (   self,
  dc 
)

Create the pads and add them to the module in the correct positions.

Parameters
dcthe drawing context

Definition at line 469 of file PadArray.py.

◆ NamingFunction()

def plugins.PadArray.PadCustomArray.NamingFunction (   self,
  n 
)

Simple increment along the given array.

Parameters
nthe pad index in the array

Reimplemented from plugins.PadArray.PadArray.

Definition at line 462 of file PadArray.py.

Here is the caller graph for this function:

Member Data Documentation

◆ array

plugins.PadArray.PadCustomArray.array

Definition at line 460 of file PadArray.py.


The documentation for this class was generated from the following file: