KiCad Pcbnew Python Scripting
Loading...
Searching...
No Matches
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:

Public Member Functions

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

Public Attributes

 module = 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__()

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()

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()

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()

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()

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()

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()

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 = module

Definition at line 37 of file PadArray.py.


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