rules module#
- class JLCPCBRules[source]#
Bases:
FabricationConstraintsJLCPCB Fabrication Constraints for 1oz Copper on 4-6 layer boards.
- min_copper_width: float = 0.09#
Minimum permissible copper width. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as trace width.
- min_copper_copper_space: float = 0.09#
Minimum permissible copper-to-copper spacing. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as clearance.
- min_copper_hole_space: float = 0.254#
Minimum permissible copper-to-hole spacing. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as clearance.
- min_copper_edge_space: float = 0.3#
Minimum permissible copper-to-board-edge spacing. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as clearance.
- solder_mask_registration: float = 0.05#
Minimum distance between soldermask and the edge of a copper pad.
- min_silk_solder_mask_space: float = 0.15#
Minimum distance between silkscreen and soldermask features.
- min_hole_to_hole: float = 0.5#
Minimum distance between two holes, such as through-hole pads or vias.
- class JLCPCBRogersRules[source]#
Bases:
FabricationConstraintsJLCPCB Fabrication Constraints for their 2-layer, 1oz Rogers process.
Sources, read 2026-11-08:
[HF] https://jlcpcb.com/pcb-fabrication/high-frequency-pcb, the high-frequency PCB capabilities table.
[CAP] https://jlcpcb.com/capabilities/pcb-capabilities, the general capabilities page, for every field the HF table does not give. Where it splits a value by layer count or copper weight, the 2-layer 1 oz figure is used.
Values are JLCPCB’s minimums, not their recommendations, except min_drill_diameter, which takes the no-surcharge drill below.
- min_copper_width: float = 0.1#
Minimum permissible copper width. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as trace width.
- min_copper_copper_space: float = 0.1#
Minimum permissible copper-to-copper spacing. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as clearance.
- min_copper_hole_space: float = 0.28#
Minimum permissible copper-to-hole spacing. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as clearance.
- min_copper_edge_space: float = 0.2#
Minimum permissible copper-to-board-edge spacing. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as clearance.
- solder_mask_registration: float = 0.0#
Minimum distance between soldermask and the edge of a copper pad.
- min_silk_solder_mask_space: float = 0.15#
Minimum distance between silkscreen and soldermask features.
- min_hole_to_hole: float = 0.45#
Minimum distance between two holes, such as through-hole pads or vias.