vias module#

class UnfilledVias[source]#

Bases: object

The plated, unfilled vias JLCPCB will make on any board, Rogers included.

Neither is a via-in-pad via. The 2-layer RO4350B substrates offer only these: JLCPCB neither fills nor caps vias on its Rogers boards.

class StdVia(*args, **kwargs)[source]#

Bases: Via

Standard Via with minimum pad size

name: str | None = 'Standard Via Aggressive - No Extra Cost'#

Name of the via. If not specified, the name of the class will be used. This name must be unique.

start_layer: int = 0#

Starting layer for the via. Setting this to a layer index other than the top layer allows for creating buried or blind vias.

stop_layer: int = -1#

Ending layer for the via.

diameter: float | ViaDiameter = 0.4#

Pad diameter of the via, in mm. Can be overridden on a per-layer basis by diameters.

hole_diameter: float = 0.3#

Drilled or laser-cut hole diameter for the via, in mm.

type: ClassVar[ViaType] = 1#

MechanicalDrill or LaserDrill.

Type:

Type of via drilling method

via_in_pad: bool = False#

Whether the via is allowed to be placed inside a component’s pads.

class StdViaPreferred(*args, **kwargs)[source]#

Bases: Via

Standard Via with preferred pad size (larger)

This via definition uses the preferred +0.15mm for the pad diameter which JLC-PCB recommends

name: str | None = 'Standard Via - No Extra Cost'#

Name of the via. If not specified, the name of the class will be used. This name must be unique.

start_layer: int = 0#

Starting layer for the via. Setting this to a layer index other than the top layer allows for creating buried or blind vias.

stop_layer: int = -1#

Ending layer for the via.

diameter: float | ViaDiameter = 0.45#

Pad diameter of the via, in mm. Can be overridden on a per-layer basis by diameters.

hole_diameter: float = 0.3#

Drilled or laser-cut hole diameter for the via, in mm.

type: ClassVar[ViaType] = 1#

MechanicalDrill or LaserDrill.

Type:

Type of via drilling method

via_in_pad: bool = False#

Whether the via is allowed to be placed inside a component’s pads.

class StandardVias[source]#

Bases: UnfilledVias

The via definitions JLCPCB will make on its FR-4 boards.

The unfilled vias plus StdViaTentedFilled. As of 10/23/2024 StdViaPreferred and StdViaTentedFilled have no up-charge for processing.

class StdViaTentedFilled(*args, **kwargs)[source]#

Bases: Via

Standard Tented and Filled Via

This via is suitable for via-in-pad applications and use the preferred +0.15mm for the pad diameter which JLC-PCB recommends

name: str | None = 'Tented/Filled Standard Via'#

Name of the via. If not specified, the name of the class will be used. This name must be unique.

start_layer: int = 0#

Starting layer for the via. Setting this to a layer index other than the top layer allows for creating buried or blind vias.

stop_layer: int = -1#

Ending layer for the via.

diameter: float | ViaDiameter = 0.45#

Pad diameter of the via, in mm. Can be overridden on a per-layer basis by diameters.

hole_diameter: float = 0.3#

Drilled or laser-cut hole diameter for the via, in mm.

type: ClassVar[ViaType] = 1#

MechanicalDrill or LaserDrill.

Type:

Type of via drilling method

tented: set[Side] | Side | None | bool = True#

Whether the via is tented on Top, Bottom, or both sides. Untented sides will have a solder mask opening.

filled: bool = True#

Whether the via is filled.

via_in_pad: bool = True#

Whether the via is allowed to be placed inside a component’s pads.

class MultiLayerVias[source]#

Bases: object

The extra-cost via tiers JLCPCB offers on 6+ layer boards.

These are not orderable on a 4-layer board, so only substrates with six or more layers mix this in. Every tier costs more than the standard vias; the number in the name is which cost tier it falls in.

class MultiLayerVia1(*args, **kwargs)[source]#

Bases: Via

Multi-layer (6+) via with extra cost + 1.

There are multiple levels of extra cost that JLCPCB supports for smaller vias. This is the first layer. This via definitions uses the standard +0.1mm for the pad diameter

name: str | None = 'Multi-Layer Via Aggressive - Cost + 1'#

Name of the via. If not specified, the name of the class will be used. This name must be unique.

start_layer: int = 0#

Starting layer for the via. Setting this to a layer index other than the top layer allows for creating buried or blind vias.

stop_layer: int = -1#

Ending layer for the via.

diameter: float | ViaDiameter = 0.35#

Pad diameter of the via, in mm. Can be overridden on a per-layer basis by diameters.

hole_diameter: float = 0.25#

Drilled or laser-cut hole diameter for the via, in mm.

type: ClassVar[ViaType] = 1#

MechanicalDrill or LaserDrill.

Type:

Type of via drilling method

via_in_pad: bool = False#

Whether the via is allowed to be placed inside a component’s pads.

class MultiLayerVia1Preferred(*args, **kwargs)[source]#

Bases: Via

Multi-layer (6+) via with extra cost + 1.

There are multiple levels of extra cost that JLCPCB supports for smaller vias. This is the first layer. This via definitions uses the preferred +0.15mm for the pad diameter

name: str | None = 'Multi-Layer Via - Cost + 1'#

Name of the via. If not specified, the name of the class will be used. This name must be unique.

start_layer: int = 0#

Starting layer for the via. Setting this to a layer index other than the top layer allows for creating buried or blind vias.

stop_layer: int = -1#

Ending layer for the via.

diameter: float | ViaDiameter = 0.4#

Pad diameter of the via, in mm. Can be overridden on a per-layer basis by diameters.

hole_diameter: float = 0.25#

Drilled or laser-cut hole diameter for the via, in mm.

type: ClassVar[ViaType] = 1#

MechanicalDrill or LaserDrill.

Type:

Type of via drilling method

via_in_pad: bool = False#

Whether the via is allowed to be placed inside a component’s pads.

class MultiLayerVia2(*args, **kwargs)[source]#

Bases: Via

Multi-layer (6+) via with extra cost + 2.

There are multiple levels of extra cost that JLCPCB supports for smaller vias. This is the second layer. This via definitions uses the standard +0.1mm for the pad diameter

name: str | None = 'Multi-Layer Via Aggressive - Cost + 2'#

Name of the via. If not specified, the name of the class will be used. This name must be unique.

start_layer: int = 0#

Starting layer for the via. Setting this to a layer index other than the top layer allows for creating buried or blind vias.

stop_layer: int = -1#

Ending layer for the via.

diameter: float | ViaDiameter = 0.3#

Pad diameter of the via, in mm. Can be overridden on a per-layer basis by diameters.

hole_diameter: float = 0.2#

Drilled or laser-cut hole diameter for the via, in mm.

type: ClassVar[ViaType] = 1#

MechanicalDrill or LaserDrill.

Type:

Type of via drilling method

via_in_pad: bool = False#

Whether the via is allowed to be placed inside a component’s pads.

class MultiLayerVia2Preferred(*args, **kwargs)[source]#

Bases: Via

Multi-layer (6+) via with extra cost + 2.

There are multiple levels of extra cost that JLCPCB supports for smaller vias. This is the second layer. This via definitions uses the preferred +0.15mm for the pad diameter

name: str | None = 'Multi-Layer Via - Cost + 2'#

Name of the via. If not specified, the name of the class will be used. This name must be unique.

start_layer: int = 0#

Starting layer for the via. Setting this to a layer index other than the top layer allows for creating buried or blind vias.

stop_layer: int = -1#

Ending layer for the via.

diameter: float | ViaDiameter = 0.35#

Pad diameter of the via, in mm. Can be overridden on a per-layer basis by diameters.

hole_diameter: float = 0.2#

Drilled or laser-cut hole diameter for the via, in mm.

type: ClassVar[ViaType] = 1#

MechanicalDrill or LaserDrill.

Type:

Type of via drilling method

via_in_pad: bool = False#

Whether the via is allowed to be placed inside a component’s pads.

class MultiLayerVia3(*args, **kwargs)[source]#

Bases: Via

Multi-layer (6+) via with extra cost + 3.

There are multiple levels of extra cost that JLCPCB supports for smaller vias. This is the third layer. This via definitions uses the standard +0.1mm for the pad diameter

name: str | None = 'Multi-Layer Via Aggressive - Cost + 3'#

Name of the via. If not specified, the name of the class will be used. This name must be unique.

start_layer: int = 0#

Starting layer for the via. Setting this to a layer index other than the top layer allows for creating buried or blind vias.

stop_layer: int = -1#

Ending layer for the via.

diameter: float | ViaDiameter = 0.25#

Pad diameter of the via, in mm. Can be overridden on a per-layer basis by diameters.

hole_diameter: float = 0.15#

Drilled or laser-cut hole diameter for the via, in mm.

type: ClassVar[ViaType] = 1#

MechanicalDrill or LaserDrill.

Type:

Type of via drilling method

via_in_pad: bool = False#

Whether the via is allowed to be placed inside a component’s pads.

class MultiLayerVia3Preferred(*args, **kwargs)[source]#

Bases: Via

Multi-layer (6+) via with extra cost + 3.

There are multiple levels of extra cost that JLCPCB supports for smaller vias. This is the third layer. This via definitions uses the preferred +0.15mm for the pad diameter

name: str | None = 'Multi-Layer Via - Cost + 3'#

Name of the via. If not specified, the name of the class will be used. This name must be unique.

start_layer: int = 0#

Starting layer for the via. Setting this to a layer index other than the top layer allows for creating buried or blind vias.

stop_layer: int = -1#

Ending layer for the via.

diameter: float | ViaDiameter = 0.3#

Pad diameter of the via, in mm. Can be overridden on a per-layer basis by diameters.

hole_diameter: float = 0.15#

Drilled or laser-cut hole diameter for the via, in mm.

type: ClassVar[ViaType] = 1#

MechanicalDrill or LaserDrill.

Type:

Type of via drilling method

via_in_pad: bool = False#

Whether the via is allowed to be placed inside a component’s pads.

class JLCPCBVias[source]#

Bases: StandardVias, MultiLayerVias

Every via JLCPCB offers for a 6+ layer board, standard and extra-cost alike. Be aware that the extra-cost tiers are charged for.

Kept as the name substrates in this package used before the set was split by layer count; a 4-layer substrate must use StandardVias.