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

Useful construction functions for common types of pads, providing sensible defaults for common pads. More...

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

Public Member Functions

def __init__ (self, module)
 
def THPad (self, Vsize, Hsize, drill, shape=pcbnew.PAD_SHAPE_OVAL, rot_degree=0)
 A basic through-hole pad of the given size and shape. More...
 
def THRoundPad (self, size, drill)
 A round though-hole pad. More...
 
def NPTHRoundPad (self, drill)
 A round non-plated though hole (NPTH) More...
 
def SMDPad (self, Vsize, Hsize, shape=pcbnew.PAD_SHAPE_RECT, rot_degree=0)
 
def AperturePad (self, Vsize, Hsize, shape=pcbnew.PAD_SHAPE_RECT, rot_degree=0)
 
def SMTRoundPad (self, size)
 A round surface-mount pad. More...
 

Public Attributes

 module
 

Detailed Description

Useful construction functions for common types of pads, providing sensible defaults for common pads.

Definition at line 27 of file PadArray.py.

Constructor & Destructor Documentation

◆ __init__()

def plugins.PadArray.PadMaker.__init__ (   self,
  module 
)
Parameters
modulethe module the pads will be part of

Definition at line 33 of file PadArray.py.

Member Function Documentation

◆ AperturePad()

def plugins.PadArray.PadMaker.AperturePad (   self,
  Vsize,
  Hsize,
  shape = pcbnew.PAD_SHAPE_RECT,
  rot_degree = 0 
)
Create a aperture pad of the given size and shape, i.e. a smd pad shape
on the solder paste and not on a copper
layer
@param Vsize: the vertical size of the aperture
@param Hsize: the horizontal size of the aperture
@param shape: the shape of the pad
@param rot_degree: the pad rotation, in degrees

Definition at line 99 of file PadArray.py.

◆ NPTHRoundPad()

def plugins.PadArray.PadMaker.NPTHRoundPad (   self,
  drill 
)

A round non-plated though hole (NPTH)

Parameters
drillthe drill diameter (equals the NPTH diameter)

Definition at line 68 of file PadArray.py.

◆ SMDPad()

def plugins.PadArray.PadMaker.SMDPad (   self,
  Vsize,
  Hsize,
  shape = pcbnew.PAD_SHAPE_RECT,
  rot_degree = 0 
)
Create a surface-mount pad of the given size and shape
@param Vsize: the vertical size of the pad
@param Hsize: the horizontal size of the pad
@param shape: the shape of the pad
@param rot_degree: the pad rotation, in degrees

Definition at line 82 of file PadArray.py.

Here is the caller graph for this function:

◆ SMTRoundPad()

def plugins.PadArray.PadMaker.SMTRoundPad (   self,
  size 
)

A round surface-mount pad.

A shortcut for SMDPad()

Parameters
sizepad diameter

Definition at line 118 of file PadArray.py.

◆ THPad()

def plugins.PadArray.PadMaker.THPad (   self,
  Vsize,
  Hsize,
  drill,
  shape = pcbnew.PAD_SHAPE_OVAL,
  rot_degree = 0 
)

A basic through-hole pad of the given size and shape.

Parameters
Vsizethe vertical size of the pad
Hsizethe horizontal size of the pad
drillthe drill diameter
shapethe shape of the pad
rot_degreethe pad rotation, in degrees

Definition at line 39 of file PadArray.py.

Here is the caller graph for this function:

◆ THRoundPad()

def plugins.PadArray.PadMaker.THRoundPad (   self,
  size,
  drill 
)

A round though-hole pad.

A shortcut for THPad()

Parameters
sizepad diameter
drilldrill diameter

Definition at line 59 of file PadArray.py.

Member Data Documentation

◆ module

plugins.PadArray.PadMaker.module

Definition at line 37 of file PadArray.py.


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