Skip to content

jsl/landpatterns/pad-grid

Package name: jsl/landpatterns/pad-grid

Summary

General Definitions

Function Description
pad-grid-th Construct a Through-Hole Pad Grid using a GridPlanner
pad-grid-smt Construct an SMT Pad Grid using a GridPlanner

Definitions

General Definitions

pad-grid-th

Construct a Through-Hole Pad Grid using a GridPlanner

public defn pad-grid-th ( -- lead-type:TH-Lead, planner:PadPlanner, lead-grid:GridPlanner, num-scheme:Numbering, density-level:DensityLevel = ?) -> Seq<VirtualPad>

  • lead-type: TH-Lead - Through-Hole Lead parameterization
  • planner: PadPlanner - Pad Planner providing shapes and population
  • lead-grid: GridPlanner - Construct a grid of positions for the pads
  • num-scheme: Numbering - Lead numbering of the grid.
  • density-level: DensityLevel - IPC density level. The default value is based on DENSITY-LEVEL from jsl/design/settings
  • Returns Seq<VirtualPad> - Sequence of pads for applying to a VirtualLP node.
  • Throws ValueError - If the planner doesn't support through-hole generators. To support through-hole, the planner needs to implement the hole-generator defmethod and have it return a function instead of false.

pad-grid-smt

Construct an SMT Pad Grid using a GridPlanner

public defn pad-grid-smt ( -- pad-size:Dims, planner:PadPlanner, lead-grid:GridPlanner, num-scheme:Numbering) -> Seq<VirtualPad>

  • pad-size: Dims - Dimensions of the pad to construct
  • planner: PadPlanner - Pad Planner that determines shaping and population
  • lead-grid: GridPlanner - Grid construction in the form of pad positions
  • num-scheme: Numbering - Pad numbering scheme depending on location.
  • Returns Seq<VirtualPad> - Sequence of pads for applying to a VirtualLP node.

This is a common helper routine for constructing a grid of pads.

Related Packages

Forwarded by packages: jsl/landpatterns/framework, jsl/landpatterns