altium monkey v2026.11.26 · gobblerito
On This Page (6)

altium-monkey 2026.07.01 Release Notes

Package version: 2026.7.1

2026.07.01 is represented in Python package metadata as the PEP 440 canonical form 2026.7.1.

This release expands PCB stackup authoring, adds named keepout restriction helpers, improves font portability, and tightens PcbDoc/PcbLib record preservation for automated board generation.

PCB Stackup Authoring

PcbDoc layer-stack authoring now supports rigid .stackup and .stackupx files as inputs to AltiumLayerStackDocument.from_stackup(...) and AltiumLayerStackDocument.from_stackupx(...), followed by PcbDocBuilder.set_layer_stack_document(...).

Generated PcbDocs preserve copper, dielectric, solder-mask, solder-paste, overlay, layer-pair, internal-plane ID, and layer type semantics on readback, and can be exported again through to_stackup(...) and to_stackupx(...). The new public pcbdoc_create_from_stackup_files example demonstrates both import paths. Rigid-flex StackupX authoring still requires explicit board-region geometry and is not inferred from interchange files alone.

Programmatic rigid stack creation is now available through AltiumLayerStackDocument.from_rigid_layer_rows(...) and AltiumRigidStackRowSpec. Semantic row constructors cover common rigid authoring cases through AltiumComponentPlacement, AltiumDielectricLayerKind, AltiumCopperMaterialSpec, and AltiumDielectricMaterialSpec, so callers do not need raw StackupX GUIDs or property type tuples for ordinary copper, prepreg, core, solder-mask, and overlay rows.

Stackup-level electrical settings such as roughness model, roughness factors, copper resistance, via plating thickness, realistic ratio, and temperatures are modeled by AltiumStackupSettings, AltiumStackupType, and AltiumStackupRoughnessModel. AltiumStackupDocument, AltiumStackupXDocument, and AltiumLayerPair are first-class public exports. The pcbdoc_create_custom_rigid_stack example now writes PcbDoc, .stackup, and .stackupx outputs from the same code-authored stack model, and the new pcbdoc_create_jlcpcb_rigid_stack example demonstrates a JLCPCB-style eight-layer rigid stack authored through the semantic API.

PCB Keepout Restrictions

PCB keepout restriction helpers are now public. Python callers can use PcbKeepoutRestriction, decode_pcb_keepout_restrictions(...), encode_pcb_keepout_restrictions(...), pcb_keepout_restriction_names(...), and pcb_keepout_restriction_unknown_bits(...) to decode and author the confirmed Altium object-specific keepout mask bits: via 0x01, track 0x02, copper 0x04, SMD pad 0x08, and through-hole pad 0x10.

The raw keepout_restrictions integer remains the authoritative stored field so unknown future bits can still round-trip.

PCB Record Models And Preservation

PcbDoc VIA records now expose the parsed drill_layer_pair_type field used by backdrill-aware board files.

PcbDoc rule records now expose parsed semantic rule data, including canonical rule-kind aliases, semantic model names, parsed scope expressions, typed scalar accessors, connect-style settings, per-layer width and differential-pair metrics, routing-layer flags, room outlines, clearance object pairs, and routing-neckdown layer lengths. Raw extra_fields remain preserved for unsupported or pass-through fields.

Typed Rules6 write-back is now supported through semantic field setters on rule objects. PcbDoc saves rewrite Rules6/Header and Rules6/Data while preserving parsed record leaders.

Rigid-flex board-region bend-line edits, typed Dimensions6 helpers and write-back, board-level ExtendedPrimitiveInformation summaries and write-back, and read-only board-level CustomShapes summaries are now available through the Python API. Parsed custom pads also expose their resolved custom layer set through PcbPadSummary.custom_shape_layers.

Font And SchDoc Image Compatibility

Font portability helpers now expose FontReplacementRule, portable_font_replacements(), and ALTIUM_PORTABLE_FONT_REPLACEMENTS from the altium_monkey package root and altium_monkey.altium_font_resolver. These mirror the existing portable replacement table while giving Python callers a typed rule API.

SchDoc IR image geometry now matches Altium for wrapped TSVGImage payloads: gotImage source dimensions use the embedded BMP preview size while runtime SVG rendering still uses the SVG payload.

Compatibility Notes

The internal PcbDoc VIA authoring constant VIA_AD25_DEFAULT_SOLDER_MASK_EXPANSION_IU was renamed to VIA_TENTING_DEFAULT_SOLDER_MASK_EXPANSION_IU so the API wording describes the tenting behavior rather than implying an AD25-only rule. The old name is not retained.

Validation

This release was checked with focused keepout helper tests, package validation, public tests, wheel build and clean-install checks, private signoff, and the affected source quality gates.

altium-monkey v2026.11.26 · gobblerito·Docs updated 2026.11.29 17:55 UTC (0665053)