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

Projects & Compilation

AltiumDesign, project builders, compiled schematic graphs, netlists, and BOM.

44 / 44 shown
class

AltiumCompilation

from altium_monkey import AltiumCompilation
class AltiumCompilation(value: 'dto.CompilationC0', *, limits: 'SchematicContractLimits | None' = None) -> 'None'

Immutable checked compilation data; detached inputs confer no CAD provenance.

Members (12)
KindSignatureSummary
propertycompiled_view -> 'AltiumCompiledView'Return the derived checked C0 relationships using existing identities.
methodeffective_component(self, instance_ref: 'str', instance_path: 'Sequence[str]' = ()) -> 'dto.CompilationComponentBase'Derive base or selected-variant facts; reject incomplete named context.
classmethodfrom_file(cls, path: 'Path | str', *, limits: 'SchematicContractLimits | None' = None) -> 'AltiumCompilation'Prepare base schematic data from an owned SchDoc or PrjPcb source.
classmethodfrom_json(cls, data: 'bytes | str', *, limits: 'SchematicContractLimits | None' = None) -> 'AltiumCompilation'Decode the complete product with shared bounded JSON framing.
methodrealized_sources_for_net(self, target: 'dto.NetOccurrence') -> 'dto.RealizedNetSourcesC0'Expand admitted physical associations into every realized drawing appearance.
methodschematic_graphics(self, realized_page_ref: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'PreparedSchematicGraphics'Produce one checked live scene and bindings from retained file ownership.
methodschematic_graphics_with_options(self, realized_page_ref: 'str', options: 'SchematicGraphicsOptions', *, limits: 'SchematicContractLimits | None' = None) -> 'PreparedSchematicGraphics'Produce one page with caller-set clock, date, document path,
methodschematic_source_json(self, document_path: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'bytes'Export an exact retained authored source; detached products have no owner.
methodschematic_text_records(self, document_path: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'tuple[SchematicTextRecord, ...]'Read retained authored annotations without CAD IO or text evaluation.
methodselect_source(self, source_key: 'dto.SchematicSourceKey', *, instance_path: 'Sequence[str]' = (), realized_page_ref: 'str') -> 'dto.RealizedSourceSelectionC0'Select schematic source in a realized page, preserving physical query scope.
methodto_dto(self) -> 'dto.CompilationC0'Return copied generated data without exposing the retained snapshot.
methodto_json(self, *, limits: 'SchematicContractLimits | None' = None) -> 'bytes'Serialize the complete product under configured or explicit output limits.
class

AltiumCompiledAnnotationState

from altium_monkey import AltiumCompiledAnnotationState
class AltiumCompiledAnnotationState(status: 'str', path: 'str | None', designator_record_count: 'int' = 0, sheet_number_record_count: 'int' = 0, net_name_override_count: 'int' = 0, diagnostics: 'tuple[AltiumCompileDiagnostic, ...]' = ()) -> 'None'

Annotation-file state used for a compiled schematic design.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible annotation state record.
class

AltiumCompiledComponent

from altium_monkey import AltiumCompiledComponent
class AltiumCompiledComponent(id: 'str', logical_document_id: 'str', physical_document_id: 'str', source_object_id: 'str', source_unique_id_path: 'str', logical_designator: 'str', physical_designator: 'str', display_designator: 'str', lib_reference: 'str', design_item_id: 'str', footprint: 'str', component_kind: 'str', component_kind_value: 'int', include_in_netlist: 'bool', exclude_from_bom: 'bool', value: 'str', description: 'str', parameters: 'tuple[tuple[str, str], ...]', pin_count: 'int', all_pin_count: 'int', part_count: 'int', current_part_id: 'int', annotation_state: 'str' = 'logical', annotation_locked: 'bool' = False, diagnostics: 'tuple[AltiumCompileDiagnostic, ...]' = (), _project_multipart_collapsed: 'bool' = False, _managed_source_component_occurrences: 'tuple[tuple[str, str, int, str], ...]' = ()) -> 'None'

One physical component row in the compiled design.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible component record.
class

AltiumCompiledDesign

from altium_monkey import AltiumCompiledDesign
class AltiumCompiledDesign(schema: 'str', source_path: 'str | None', options: 'AltiumProjectCompileOptions', annotation: 'AltiumCompiledAnnotationState', logical_documents: 'tuple[AltiumCompiledLogicalDocument, ...]', physical_documents: 'tuple[AltiumCompiledPhysicalDocument, ...]', sheet_symbols: 'tuple[AltiumCompiledSheetSymbol, ...]', components: 'tuple[AltiumCompiledComponent, ...]', nets: 'tuple[AltiumCompiledNet, ...]', diagnostics: 'tuple[AltiumCompileDiagnostic, ...]', physical_sheet_symbols: 'tuple[AltiumCompiledPhysicalSheetSymbol, ...]' = (), compile: 'dict[str, object]' = <factory>, _parent_harness_boundaries: 'tuple[_ParentHarnessBoundary, ...]' = (), debug: 'dict[str, object]' = <factory>, compiled_schematic_graph: 'AltiumCompiledSchematicGraph | None' = None, physical_page_metadata: 'tuple[AltiumPhysicalPageMetadata, ...]' = (), _component_body_evidence: 'tuple[AltiumCompiledComponent, ...]' = (), _physical_component_pin_uids: 'dict[tuple[tuple[str, str, int, str], ...], tuple[str, ...]] | None' = None, _realized_page_context: 'tuple[_RealizedPageContext, ...] | None' = None) -> 'None'

Compiled schematic design returned by `AltiumDesign.compile()`.

Members (4)
KindSignatureSummary
propertysummary -> 'AltiumCompiledDesignSummary'Return summary counts and health for this compiled design.
methodto_dict(self, *, include_debug: 'bool' = False) -> 'dict[str, object]'Return a deterministic JSON-compatible compiled-design payload.
methodto_netlist(self) -> "'Netlist'"Return the existing Netlist model derived from compiled-flat rows.
propertytop_physical_document -> 'AltiumCompiledPhysicalDocument | None'Return the first top-level physical document, when one exists.
class

AltiumCompiledDesignSummary

from altium_monkey import AltiumCompiledDesignSummary
class AltiumCompiledDesignSummary(logical_document_count: 'int', physical_document_count: 'int', sheet_symbol_count: 'int', physical_sheet_symbol_count: 'int', component_count: 'int', net_count: 'int', flattened_net_count: 'int', diagnostic_count: 'int', has_errors: 'bool', has_warnings: 'bool') -> 'None'

Summary counts and health for a compiled schematic design.

`physical_sheet_symbol_count` counts sheet-symbol placements, as Altium does, not `physical_sheet_symbols` rows: a multi-sheet symbol's placement has one row per child sheet.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible summary record.
class

AltiumCompileDiagnostic

from altium_monkey import AltiumCompileDiagnostic
class AltiumCompileDiagnostic(severity: 'str', code: 'str', message: 'str', source_id: 'str | None' = None) -> 'None'

Diagnostic emitted while building a compiled schematic design.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible diagnostic record.
class

AltiumCompiledLogicalDocument

from altium_monkey import AltiumCompiledLogicalDocument
class AltiumCompiledLogicalDocument(id: 'str', source_path: 'str', file_name: 'str', ordinal: 'int', is_top_level_candidate: 'bool', sheet_symbol_ids: 'tuple[str, ...]' = (), parent_sheet_symbol_ids: 'tuple[str, ...]' = (), component_source_count: 'int' = 0, local_net_count: 'int' = 0, diagnostics: 'tuple[AltiumCompileDiagnostic, ...]' = ()) -> 'None'

One logical schematic document participating in a compile.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible logical-document record.
class

AltiumCompiledNet

from altium_monkey import AltiumCompiledNet
class AltiumCompiledNet(id: 'str', name: 'str', original_name: 'str | None' = None, override_name: 'str | None' = None, scope: 'str' = 'logical_local', logical_document_id: 'str | None' = None, physical_document_ids: 'tuple[str, ...]' = (), auto_named: 'bool' = False, single_pin: 'bool' = False, aliases: 'tuple[str, ...]' = (), terminal_ids: 'tuple[str, ...]' = (), terminals: 'tuple[AltiumCompiledNetTerminal, ...]' = (), endpoint_ids: 'tuple[str, ...]' = (), endpoints: 'tuple[AltiumCompiledNetEndpoint, ...]' = (), item_ids: 'tuple[str, ...]' = (), items: 'tuple[AltiumCompiledNetItem, ...]' = (), source_net_ids: 'tuple[str, ...]' = (), parent_net_id: 'str' = '', child_net_id: 'str' = '', link_ids: 'tuple[str, ...]' = (), diagnostics: 'tuple[AltiumCompileDiagnostic, ...]' = (), _name_source_kind: 'str' = '', _name_source_name: 'str' = '', _name_source_bus_prefix: 'str' = '', _name_source_bus_prefix_full_name: 'str | None' = None, _name_source_bus_suffix: 'str' = '', _name_source_priority: 'int' = 0, _name_source_raw_name: 'str' = '', _name_source_is_bus: 'bool' = False, _name_source_schematic_id: 'str' = '', _name_source_hierarchy_path: 'tuple[str, ...]' = (), _name_source_is_multipath: 'bool' = False, _name_source_relative_multichannel_depth: 'int' = 0, _name_source_full_name: 'str' = '', _name_source_autogenerated: 'bool' = False, _bus_signal_width: 'int' = 0, _bus_signal_offset: 'int' = 0, _source_connection_link_id: 'str' = '', _contains_bus: 'bool' = False, _port_bus_member_names: 'tuple[str, ...]' = (), _scalar_merge_name_sources: 'tuple[tuple[str, str], ...]' = (), _signal_harness_name_candidates: 'tuple[_SignalHarnessNameCandidate, ...]' = (), _hierarchy_parent_entry_name: 'str' = '', _hierarchy_link_name: 'str' = '', _hierarchy_child_name: 'str' = '', _hierarchy_child_object_ids: 'tuple[str, ...]' = (), _hierarchy_match_kind: 'str' = '', _managed_item_count: 'int' = 0, _managed_endpoint_count: 'int' = 0, _managed_removed_item_count: 'int' = 0) -> 'None'

One compiled net row.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible net record.
class

AltiumCompiledNetEndpoint

from altium_monkey import AltiumCompiledNetEndpoint
class AltiumCompiledNetEndpoint(id: 'str', role: 'str', element_id: 'str' = '', object_id: 'str' = '', name: 'str' = '', parent_id: 'str' = '', designator: 'str' = '', pin: 'str' = '', pin_name: 'str' = '', connection_point: 'tuple[int, int] | None' = None, _source_occurrence_id: 'str' = '', _source_pin_object_id: 'int' = 0, _bus_signal_index: 'int | None' = None, _harness_entries_path: 'tuple[str, ...]' = (), _repeat_value: 'int | None' = None, _harness_type_name: 'str' = '', _harness_interface_name: 'str' = '', _harness_type_inferred: 'bool' = False) -> 'None'

Structured endpoint row carried by staged compiled nets.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible endpoint record.
class

AltiumCompiledNetItem

from altium_monkey import AltiumCompiledNetItem
class AltiumCompiledNetItem(id: 'str', kind: 'str', name: 'str' = '', parent_id: 'str' = '', element_id: 'str' = '', object_id: 'str' = '', designator: 'str' = '', pin: 'str' = '', pin_name: 'str' = '', physical_document_id: 'str' = '', connection_point: 'tuple[int, int] | None' = None, removed: 'bool' = False, inferred_from_harness: 'bool' = False, _source_pin_object_id: 'int' = 0) -> 'None'

Structured net-item provenance row carried by staged compiled nets.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible net-item record.
class

AltiumCompiledNetTerminal

from altium_monkey import AltiumCompiledNetTerminal
class AltiumCompiledNetTerminal(id: 'str', designator: 'str', pin: 'str', pin_name: 'str' = '', pin_type: 'str' = 'PASSIVE', _source_component_uid: 'str' = '', _source_pin_uid: 'str' = '', _source_pin_object_id: 'int' = 0, _source_owner_part_id: 'int' = 1) -> 'None'

Structured terminal row carried by staged compiled nets.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible terminal record.
class

AltiumCompiledPhysicalDocument

from altium_monkey import AltiumCompiledPhysicalDocument
class AltiumCompiledPhysicalDocument(id: 'str', logical_document_id: 'str', source_path: 'str', file_name: 'str', ordinal: 'int', physical_instance_path: 'str', physical_instance_unique_id: 'str', channel_index: 'int', channel_prefix: 'str | None', channel_alpha: 'str | None', room_name: 'str', parent_id: 'str | None', parent_sheet_symbol_id: 'str | None', child_ids: 'tuple[str, ...]' = (), component_ids: 'tuple[str, ...]' = (), sheet_number: 'str | None' = None, document_number: 'str | None' = None, physical_room_name: 'str' = '', diagnostics: 'tuple[AltiumCompileDiagnostic, ...]' = (), _managed_parent_from_repeat_sheet_symbol: 'bool' = False, _managed_parent_sheet_symbol_index: 'int' = 0, _managed_parent_sheet_symbol_location: 'tuple[int, int]' = (0, 0), _managed_parent_sheet_symbol_source_id: 'str' = '', _managed_repeat_channel_value: 'int | None' = None, _managed_hierarchy_global_index: 'int | None' = None, _managed_room_sheet_number: 'str | None' = None, _managed_room_document_number: 'str | None' = None) -> 'None'

One physical schematic sheet instance in the compiled design.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible physical-document record.
class

AltiumCompiledPhysicalSheetSymbol

from altium_monkey import AltiumCompiledPhysicalSheetSymbol
class AltiumCompiledPhysicalSheetSymbol(id: 'str', logical_sheet_symbol_id: 'str', owner_logical_document_id: 'str', owner_physical_document_id: 'str', source_object_id: 'str', logical_designator: 'str', physical_designator: 'str', sheet_symbol_file_name: 'str', child_logical_document_id: 'str | None', child_source_path: 'str | None', child_physical_document_id: 'str', child_physical_instance_path: 'str', child_physical_instance_unique_id: 'str', child_channel_index: 'int', entry_count: 'int' = 0) -> 'None'

One child sheet of a physical sheet-symbol placement in the compiled hierarchy.

A placement is one sheet symbol in one physical owner document, once per repeat channel. A multi-sheet symbol (a FileName naming several documents, `GA.SchDoc;GB.SchDoc`) has one row per child sheet for its one placement: the rows share the owner, the logical sheet symbol and the logical designator, and each carries the symbol's stored FileName in `sheet_symbol_file_name`, as Altium reports it. A symbol naming one document carries that child's resolved file name. Counts of physical sheet symbols (the summary's, Altium's per-document count) count placements.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible physical sheet-symbol record.
class

AltiumCompiledSchematicGraph

from altium_monkey import AltiumCompiledSchematicGraph
class AltiumCompiledSchematicGraph(unit_definitions: 'list[dict[str, object]]' = <factory>, page_definitions: 'list[dict[str, object]]' = <factory>, unit_occurrences: 'list[dict[str, object]]' = <factory>, page_occurrences: 'list[dict[str, object]]' = <factory>, hierarchy_occurrences: 'list[dict[str, object]]' = <factory>, component_occurrences: 'list[dict[str, object]]' = <factory>, local_net_occurrences: 'list[dict[str, object]]' = <factory>, terminal_occurrences: 'list[dict[str, object]]' = <factory>, hierarchy_terminal_bindings: 'list[dict[str, object]]' = <factory>, graphical_artifact_links: 'list[dict[str, object]]' = <factory>) -> 'None'

Versioned graph payload with the ten generic contract collections.

Members (2)
KindSignatureSummary
classmethodfrom_json(cls, payload: 'dict[str, object]') -> "'AltiumCompiledSchematicGraph'"
methodto_json(self) -> 'dict[str, object]'
class

AltiumCompiledSheetSymbol

from altium_monkey import AltiumCompiledSheetSymbol
class AltiumCompiledSheetSymbol(id: 'str', logical_document_id: 'str', source_object_id: 'str', designator: 'str', child_filename: 'str', child_logical_document_id: 'str | None', child_source_path: 'str | None' = None, child_match_kind: 'str' = 'none', child_candidate_logical_document_ids: 'tuple[str, ...]' = (), child_physical_document_ids: 'tuple[str, ...]' = (), is_repeat: 'bool' = False, repeat_prefix: 'str | None' = None, repeat_start: 'int | None' = None, repeat_end: 'int | None' = None, entry_count: 'int' = 0, diagnostics: 'tuple[AltiumCompileDiagnostic, ...]' = (), _managed_child_logical_document_ids: 'tuple[str, ...]' = (), _managed_interface_child_logical_document_ids: 'tuple[str, ...]' = (), _managed_retained_child_logical_document_ids: 'tuple[str, ...] | None' = None, _managed_source_index_in_sheet: 'int' = 0, _managed_source_location: 'tuple[int, int]' = (0, 0)) -> 'None'

Sheet-symbol row with its resolved child logical document when known.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible sheet-symbol record.
class

AltiumCompiledView

from altium_monkey import AltiumCompiledView
class AltiumCompiledView(value: 'dto.CompiledViewC0', *, limits: 'SchematicContractLimits | None' = None) -> 'None'

Detached checked relationship snapshot; names are never identity joins.

Members (8)
KindSignatureSummary
methodexplain_net(self, target: 'dto.NetOccurrence') -> 'dto.NetExplanationC0'Return compiled names, contributor fields and impacts for a scoped net.
classmethodfrom_json(cls, data: 'bytes | str', *, limits: 'SchematicContractLimits | None' = None) -> 'AltiumCompiledView'Decode bounded JSON and check electrical and source relationships.
methodimpacts_for_field(self, key: 'dto.FieldKey') -> 'tuple[dto.FieldImpact, ...]'Return every consuming occurrence of a project-qualified authored field.
methodselect_source(self, source_key: 'dto.CompiledSourceKey', *, instance_path: 'Sequence[str]' = (), page_ref: 'str | None' = None) -> 'dto.SourceSelectionC0'Resolve an exact owned source selector in an instance and page scope.
methodsources_for_net(self, target: 'dto.NetOccurrence') -> 'dto.NetSourcesC0'Return admitted source/page associations and retained coverage issues.
methodstructural_graph(self) -> 'AltiumStructuralGraph'Return the checked electrical membership wrapper for this snapshot.
methodto_dto(self) -> 'dto.CompiledViewC0'Return a detached generated DTO without exposing snapshot mutation.
methodto_json(self, *, limits: 'SchematicContractLimits | None' = None) -> 'bytes'Serialize the snapshot using the configured or supplied output limits.
class

AltiumDesign

from altium_monkey import AltiumDesign
class AltiumDesign(project: 'AltiumPrjPcb | None' = None, schdocs: 'list[AltiumSchDoc]' = <factory>, _netlist: 'Netlist | None' = None, _netlist_allow_device_sheet_editing: 'bool | None' = None, _compiled_design: 'AltiumCompiledDesign | None' = None, _compiled_design_allow_device_sheet_editing: 'bool | None' = None, _compiled_source_documents: 'tuple[AltiumSchDoc, ...]' = (), _schematic_hierarchy_cache: 'dict[str, object] | None' = None, _options: 'NetlistOptions | None' = None, _load_mode: 'AltiumProjectLoadMode' = <AltiumProjectLoadMode.FULL: 'full'>, _pcbdoc: 'AltiumPcbDoc | None' = None, _pcbdoc_loaded: 'bool' = False, _pcbdoc_cache: 'dict[str, AltiumPcbDoc]' = <factory>) -> 'None'

Composed Altium design model.

Unified entry point for all design analysis operations.

# From single schematic design = AltiumDesign.from_schdoc("schematic.SchDoc")

# Get netlist netlist = design.to_netlist()

Members (24)
KindSignatureSummary
methodcompile(self, *, force: 'bool' = False, allow_device_sheet_editing: 'bool' = False) -> 'AltiumCompiledDesign'Compile this design into the beta compiled schematic model.
propertycomponents -> 'list[SchComponentInfo]'All components across all schematics.
classmethodfrom_pcbdoc(cls, path: 'Path | str') -> 'AltiumDesign'Load design from a single PcbDoc (no project context).
classmethodfrom_prjpcb(cls, path: 'Path | str', *, load_mode: 'AltiumProjectLoadMode' = <AltiumProjectLoadMode.FULL: 'full'>) -> 'AltiumDesign'Load design from PrjPcb project file.
classmethodfrom_schdoc(cls, path: 'Path | str') -> 'AltiumDesign'Load design from single SchDoc (no project).
methodget_component(self, designator: 'str') -> 'SchComponentInfo | None'Find component by designator across all schematics.
methodget_net(self, name: 'str') -> 'Net | None'Get net by name from netlist.
methodget_pcb_project_parameters(self) -> 'dict[str, str]'Resolve project-level parameters for PCB text substitution.
methodget_pcbdoc_paths(self, selector: 'Path | str | None' = None) -> 'list[Path]'Get PcbDoc paths for this design.
methodget_physical_document_id_for_page(self, page_occurrence_ref: 'str') -> 'str'Return the compiled physical document ID used to render this page.
methodget_variant_parameter_overrides(self, variant: 'str | None' = None) -> 'dict[str, dict[str, str]]'Get active variant parameter overrides grouped by source designator.
methodget_variants(self) -> 'list[str]'Get list of available variant names.
propertyload_mode -> 'AltiumProjectLoadMode'Return the immutable workload selected at project construction.
methodload_pcbdoc(self, selector: 'Path | str | None' = None) -> 'AltiumPcbDoc'Load and cache a PcbDoc by selector.
propertypcbdoc -> 'AltiumPcbDoc | None'Loaded PcbDoc, if one has already been parsed.
methodrefresh_netlist(self) -> 'Netlist'Force regeneration of netlist (clear cache).
methodto_bom(self, variant: 'str | None' = None, *, use_pcb_data: 'bool' = False) -> 'list[dict]'Generate a component BOM.
methodto_bom_payload(self, variant: 'str | None' = None) -> 'SchematicBomPayload'Return a versioned BOM payload projected from compiled components.
methodto_json(self, include_indexes: 'bool' = True, *, include_compile_metadata: 'bool' = False, include_pnp: 'bool' = True) -> 'dict'Serialize design state to JSON-compatible dict.
methodto_logical_paint_ir(self, schdoc: 'AltiumSchDoc', project_parameters: 'dict[str, str] | None' = None, *, view: "'SchPaintView | None'" = None) -> "'SchPaintIR'"Build Paint IR for one project sheet as its logical view shows it.
methodto_netlist(self, *, allow_device_sheet_editing: 'bool' = False) -> 'Netlist'Generate unified netlist (cached).
methodto_physical_paint_ir(self, page_occurrence_ref: 'str', project_parameters: 'dict[str, str] | None' = None, *, view: "'SchPaintView | None'" = None, current_date: 'str | None' = None, current_time: 'str | None' = None, modified_date: 'str | None' = None, document_path: 'str | None' = None) -> "'SchPaintIR'"Build Paint IR for one compiled physical schematic page.
methodto_physical_svg(self, page_occurrence_ref: 'str', *, include_border: 'bool' = True, scale: 'float' = 1.0, project_parameters: 'dict[str, str] | None' = None, wrap_components: 'bool' = False, options: "'SchPaintSvgOptions | None'" = None) -> 'str'Render one compiled physical page through Paint IR.
methodto_pnp(self, variant: 'str | None' = None, units: 'str' = 'mm', exclude_no_bom: 'bool' = False, position_mode: 'PnpPositionMode | str' = 'altium-pick-place', use_schematic_metadata: 'bool' = False) -> 'list[PnpEntry]'Generate Pick-and-Place data from PCB.
class

AltiumDesignEndpoint

from altium_monkey.altium_prepared_design import AltiumDesignEndpoint
class AltiumDesignEndpoint(selector: 'AltiumDesignEndpointSelector', status: "Literal['exact', 'unresolved', 'ambiguous']", terminal_id: 'str | None' = None, net_id: 'str | None' = None, reason: 'str | None' = None) -> 'None'

An exact pin can lack admitted canonical net membership; reason says why.

class

AltiumDesignEndpointSelector

from altium_monkey.altium_prepared_design import AltiumDesignEndpointSelector
class AltiumDesignEndpointSelector(document_uid: 'str', component_uid: 'str', pin_uid: 'str') -> 'None'

Registered document ID, connector DM_UniqueId and pin UniqueIdName.

class

AltiumPhysicalPageMetadata

from altium_monkey import AltiumPhysicalPageMetadata
class AltiumPhysicalPageMetadata(page_occurrence_ref: 'str', physical_instance_path: 'str', channel_index: 'int' = 0, channel_prefix: 'str' = '', channel_alpha: 'str' = '', room_name: 'str' = '', physical_room_name: 'str' = '', document_number: 'str' = '') -> 'None'

Altium-only physical/render metadata keyed by canonical page occurrence.

Members (1)
KindSignatureSummary
methodto_json(self) -> 'dict[str, object]'
class

AltiumPreparedDesign

from altium_monkey.altium_prepared_design import AltiumPreparedDesign
class AltiumPreparedDesign(design: 'AltiumDesign', *, definition_id: 'str' = 'design') -> 'None'

Read snapshot for one persisted project, without recompiling queries.

Changes to authored objects require a new preparation. Canonical net IDs use the established schematic-refactor identity scope, independent of this graph registry's definition_id. B0 enumeration IDs are never join targets.

Members (11)
KindSignatureSummary
propertycompilation -> 'AltiumCompilation'Check complete data lazily from this file-owned generation, without IO.
propertycompiled_view -> 'AltiumCompiledView'Electrical and exact authored-source associations from this preparation.
methodfields_for_net(self, net_id: 'str') -> 'tuple[AltiumSchematicSourceField, ...]'
classmethodfrom_file(cls, path: 'Path | str', *, definition_id: 'str' = 'design') -> 'AltiumPreparedDesign'Own a fresh PrjPcb and retain its single prepared compiler generation.
methodpin_sources_for_net(self, net_id: 'str') -> 'tuple[AltiumSchematicPinSource, ...]'Return frozen source contacts without limiting lookup to connectors.
methodresolve_connector_pin(self, selector: 'AltiumDesignEndpointSelector') -> 'AltiumDesignEndpoint'Exact ordinal matching; no designator, net-name or pin-number fallback.
methodschematic_graphics(self, realized_page_ref: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'PreparedSchematicGraphics'Produce graphics over the same file-owned endpoint compiler generation.
methodschematic_source_json(self, document_path: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'bytes'Export retained authored SchDoc JSON selected by its exact prepared path.
methodschematic_text_records(self, document_path: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'tuple[SchematicTextRecord, ...]'Read exact retained annotations independently of complete metadata capture.
propertysource_trace -> 'AltiumSchematicSourceTrace'
propertystructural_graph -> 'AltiumStructuralGraph'
class

AltiumPrjPcb

from altium_monkey.altium_prjpcb import AltiumPrjPcb
class AltiumPrjPcb(filepath: 'Path | str | None' = None) -> 'None'

Parser and writer for Altium .PrjPcb project files.

Attributes: filepath: Path to the project file config: ConfigParser object with project data documents: List of document paths

Members (28)
KindSignatureSummary
methodadd_document(self, path: 'str | Path', unique_id: 'str | None' = None) -> 'None'Add a document to the project.
methodadd_variant(self, name: 'str', *, unique_id: 'str | None' = None, allow_fabrication: 'bool' = True, current: 'bool' = False) -> 'str'Add an empty project variant and optionally make it current.
propertyclass_generation_options -> 'AltiumPrjPcbClassGenerationOptions'Get project-wide class-generation policy from `[PrjClassGen]`.
classmethodcreate_minimal(cls, name: 'str' = 'project') -> 'AltiumPrjPcb'Create a minimal project file with default settings.
methoddelete_parameter(self, name: 'str') -> 'bool'Delete one project-level parameter by name.
propertydocument_class_generation_options -> 'dict[str, AltiumPrjPcbDocumentClassGenerationOptions]'Get class-generation options for each project document by document path.
methodget_current_variant(self) -> 'str | None'Get the current variant name from the project's [Design] section.
methodget_document_class_generation_options(self, document: 'int | str | Path') -> 'AltiumPrjPcbDocumentClassGenerationOptions'Get class-generation options for one project document.
methodget_outjob_paths(self) -> 'list[Path]'Get full paths to all OutJob files referenced in the project.
methodget_parameter(self, name: 'str') -> 'str | None'Get project parameter value by name (case-insensitive).
methodget_pcbdoc_paths(self) -> 'list[Path]'Get full paths to all PcbDoc files in the project.
methodget_reachable_schdoc_paths(self) -> 'list[Path]'Get the SchDoc paths Altium's compile reads, in project order.
methodget_saved_structure_schdoc_paths(self) -> 'list[Path]'Get SchDoc paths named by the saved `.PrjPcbStructure` file.
methodget_saved_structure_top_level_schdoc_name(self) -> 'str | None'Get the saved `.PrjPcbStructure` top-level SchDoc file name.
methodget_schdoc_paths(self) -> 'list[Path]'Get full paths to all SchDoc files in the project.
propertynet_identifier_scope -> 'NetIdentifierScope'Get the Net Identifier Scope (HierarchyMode) from the [Design] section.
propertynetlist_options -> 'dict'Get netlist-related project options from the [Design] section.
methodoutjob(self, name: 'str | Path | None' = None) -> 'AltiumPrjPcbOutJob'Resolve a project OutJob handle.
propertyparameters -> 'dict[str, str]'Get all project parameters, as Altium reads them.
methodremove_all_documents(self) -> 'None'Remove all documents from the project.
methodsave(self, filepath: 'Path | str') -> 'None'Save project to file.
methodset_class_generation_options(self, options: 'AltiumPrjPcbClassGenerationOptions') -> 'None'Set project-wide class-generation policy in `[PrjClassGen]`.
methodset_current_variant(self, name: 'str | None') -> 'None'Set or clear the current project variant.
methodset_document_class_generation_options(self, document: 'int | str | Path', options: 'AltiumPrjPcbDocumentClassGenerationOptions') -> 'None'Set class-generation options for one project document.
methodset_documents_from_directory(self, directory: 'Path', pattern: 'str' = '*.SchDoc') -> 'None'Set documents by scanning a directory for files.
methodset_parameter(self, name: 'str', value: 'str') -> 'None'Set one project-level parameter.
methodset_parameters(self, parameters: 'Mapping[str, str]') -> 'None'Set multiple project-level parameters.
propertyvariants -> 'dict[str, dict]'Get all project variants with their configuration and DNP lists.
class

AltiumPrjPcbBuilder

from altium_monkey import AltiumPrjPcbBuilder
class AltiumPrjPcbBuilder(name: 'str' = 'project', *, net_identifier_scope: 'NetIdentifierScope' = <NetIdentifierScope.AUTOMATIC: 0>, open_outputs: 'bool' = True, class_generation_options: 'AltiumPrjPcbClassGenerationOptions | None' = None) -> 'None'

Builder for minimal project/bootstrap `.PrjPcb` files.

Members (12)
KindSignatureSummary
methodadd_document(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one document entry using the provided relative project path.
methodadd_outjob(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.OutJob` entry.
methodadd_pcbdoc(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.PcbDoc` entry.
methodadd_pcblib(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.PcbLib` entry.
methodadd_schdoc(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.SchDoc` entry.
methodadd_schlib(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.SchLib` entry.
methodbuild(self) -> 'AltiumPrjPcb'Materialize the queued builder state into an `AltiumPrjPcb`.
methodclear_documents(self) -> 'AltiumPrjPcbBuilder'Remove all queued document entries from the builder.
methodextend_documents(self, entries: 'Iterable[AltiumPrjPcbDocumentEntry]') -> 'AltiumPrjPcbBuilder'Append multiple pre-built document entries in order.
methodsave(self, filepath: 'Path | str') -> 'Path'Build and save the project file, returning the output path.
methodset_class_generation_options(self, options: 'AltiumPrjPcbClassGenerationOptions') -> 'AltiumPrjPcbBuilder'Set project-wide class-generation policy for generated `.PrjPcb` files.
methodset_net_identifier_scope(self, scope: 'NetIdentifierScope | int') -> 'AltiumPrjPcbBuilder'Set the project-wide net identifier scope written to `HierarchyMode`.
class

AltiumPrjPcbClassGenerationOptions

from altium_monkey.altium_prjpcb import AltiumPrjPcbClassGenerationOptions
class AltiumPrjPcbClassGenerationOptions(comp_class_manual_enabled: 'bool' = False, comp_class_manual_room_enabled: 'bool' = False, net_class_auto_bus_enabled: 'bool' = True, net_class_auto_comp_enabled: 'bool' = False, net_class_auto_named_harness_enabled: 'bool' = False, net_class_manual_enabled: 'bool' = False, net_class_separate_for_bus_sections: 'bool' = False) -> 'None'

Project-wide class-generation policy from `.PrjPcb` `[PrjClassGen]`.

These options control which schematic/user-defined classes Altium offers or pushes during compile/ECO workflows. They do not themselves create PCB classes; they preserve the policy that lets Altium transfer directive data such as schematic `ClassName` and `DifferentialPairClassName` parameters into PcbDoc `Classes6/Data`.

Attributes map directly to Altium project keys: - `comp_class_manual_enabled`: `CompClassManualEnabled` - `comp_class_manual_room_enabled`: `CompClassManualRoomEnabled` - `net_class_auto_bus_enabled`: `NetClassAutoBusEnabled` - `net_class_auto_comp_enabled`: `NetClassAutoCompEnabled` - `net_class_auto_named_harness_enabled`: `NetClassAutoNamedHarnessEnabled` - `net_class_manual_enabled`: `NetClassManualEnabled` - `net_class_separate_for_bus_sections`: `NetClassSeparateForBusSections`

Members (2)
KindSignatureSummary
classmethodfrom_config(cls, config: 'configparser.ConfigParser') -> "'AltiumPrjPcbClassGenerationOptions'"Build options from a project config, using observed Altium defaults when
methodwrite_to_config(self, config: 'configparser.ConfigParser') -> 'None'Write this policy to `[PrjClassGen]`.
class

AltiumPrjPcbDocumentClassGenerationOptions

from altium_monkey.altium_prjpcb import AltiumPrjPcbDocumentClassGenerationOptions
class AltiumPrjPcbDocumentClassGenerationOptions(component_class_auto_enabled: 'bool' = True, component_class_auto_room_enabled: 'bool' = False, net_class_auto_scope: 'str' = 'None', generate_class_cluster: 'bool' = False) -> 'None'

Per-document class-generation options from a `.PrjPcb` `DocumentN` section.

These options are carried on individual source/library documents and control document-scoped class generation behavior during Altium compile/ECO flows. They are preserved as document options on save.

Attributes map directly to Altium document keys: - `component_class_auto_enabled`: `ClassGenCCAutoEnabled` - `component_class_auto_room_enabled`: `ClassGenCCAutoRoomEnabled` - `net_class_auto_scope`: `ClassGenNCAutoScope` - `generate_class_cluster`: `GenerateClassCluster`

Members (2)
KindSignatureSummary
classmethodfrom_document_options(cls, options: 'list[DocumentOption]') -> "'AltiumPrjPcbDocumentClassGenerationOptions'"Build options from one `DocumentN` option list.
methodwrite_to_document(self, document: 'DocumentEntry') -> 'None'Write this policy into one project document entry.
class

AltiumPrjPcbDocumentEntry

from altium_monkey import AltiumPrjPcbDocumentEntry
class AltiumPrjPcbDocumentEntry(path: 'str', unique_id: 'str', options: 'tuple[tuple[str, str], ...]' = <factory>) -> 'None'

Typed project document entry.

The `options` tuple preserves the full `DocumentN` payload shape when callers need to carry additional Altium-owned fields beyond the required path/ID pair.

Members (1)
KindSignatureSummary
classmethodcreate(cls, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbDocumentEntry'
class

AltiumPrjPcbOutJob

from altium_monkey.altium_prjpcb import AltiumPrjPcbOutJob
class AltiumPrjPcbOutJob(project: 'AltiumPrjPcb', path: 'Path') -> 'None'

OutJob handle bound to a specific AltiumPrjPcb instance.

This is a lightweight consumer API for running OutJobs directly from a loaded project object.

Members (3)
KindSignatureSummary
propertyname -> 'str'Filename of the `.OutJob` (including extension).
propertypath -> 'Path'Absolute path to the `.OutJob` file.
methodrun(self, preferred_version: 'int | str | None' = None, *, timeout_seconds: 'float' = 300.0, normalize_generated_paths: 'bool' = True, default_generated_output_path: 'str | None' = None, bind_pcbdoc_path: 'Path | str | None' = None, auto_bind_pcbdoc: 'bool' = False, stage_outjob_copy: 'bool' = True, script_directory: 'Path | str | None' = None, keep_script_artifacts: 'bool' = False, poll_interval_seconds: 'float' = 0.5, kill_after_run: 'bool' = False) -> 'OutJobRunResult'Run this OutJob.
class

AltiumProjectCapabilityError

from altium_monkey import AltiumProjectCapabilityError
class AltiumProjectCapabilityError

The selected project load mode does not provide a requested capability.

class

AltiumProjectCompileOptions

from altium_monkey import AltiumProjectCompileOptions
class AltiumProjectCompileOptions(hierarchy_mode: 'str', hierarchy_mode_value: 'int', effective_hierarchy_mode: 'str', allow_port_net_names: 'bool', allow_sheet_entry_net_names: 'bool', netlist_single_pin_nets: 'bool', append_sheet_number_to_local_nets: 'bool', power_port_names_take_priority: 'bool', name_nets_hierarchically: 'bool', auto_sheet_numbering: 'bool', allow_device_sheet_editing: 'bool', channel_designator_format: 'str', channel_room_naming_style: 'int', channel_room_level_separator: 'str', new_indexing_of_sheet_symbols: 'bool', reorder_documents_on_compile: 'bool', push_eco_to_annotation_file: 'bool', option_sources: 'dict[str, str]' = <factory>, deferred_options: 'tuple[str, ...]' = ()) -> 'None'

Resolved project options that influence schematic compilation.

Members (1)
KindSignatureSummary
methodto_dict(self) -> 'dict[str, object]'Return a JSON-compatible compile-options record.
class

AltiumSchCompileMask

from altium_monkey import AltiumSchCompileMask
class AltiumSchCompileMask() -> 'None'

COMPILE_MASK record.

Compile mask region to exclude from DRC. Inherits from RECTANGLE.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse compile mask record, including Collapsed field.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize compile mask record, including Collapsed field.
class

AltiumSchDesignator

from altium_monkey import AltiumSchDesignator
class AltiumSchDesignator() -> 'None'

Altium component designator record.

The reference designator text (e.g., "U1", "R5").

Members (4)
KindSignatureSummary
methodparse_from_record(self, record: '_RecordFields', font_manager: 'FontIDManager | None' = None) -> 'None'Parse from a record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> '_RecordFields'Serialize to a record.
propertytext -> 'str'
class

AltiumSchematicPinSource

from altium_monkey.altium_prepared_design import AltiumSchematicPinSource
class AltiumSchematicPinSource(terminal_id: 'str', component_id: 'str', document_path: 'Path', physical_document_key: 'str', component_uid: 'str', pin_uid: 'str', hardware_designation: 'str') -> 'None'

One admitted drawn contact behind a canonical physical pin.

Source UIDs are native evidence; canonical IDs belong to the prepared definition. Multipart bodies and repeated page occurrences stay distinct.

class

AltiumStructuralGraph

from altium_monkey.altium_structural_graph import AltiumStructuralGraph
class AltiumStructuralGraph(dto: 'CompiledStructureC0', *, limits: 'SchematicContractLimits | None' = None) -> 'None'

Validated C0 electrical graph; source facts remain separate evidence.

IDs are scoped to their owning definition. Definition IDs are unique within this registry. Read APIs return values, not mutable authority for membership.

Members (6)
KindSignatureSummary
classmethodfrom_json(cls, raw: 'bytes | str', *, limits: 'SchematicContractLimits | None' = None) -> 'AltiumStructuralGraph'Decode the generated closed C0 shape and validate all relationships.
propertygaps -> 'tuple[str, ...]'
propertyroot_definition_ref -> 'str'
methodterminals_for_net(self, definition_id: 'str', net_id: 'str') -> 'tuple[tuple[tuple[str, ...], str], ...]'Expand to leaf pin IDs with ordered child occurrence paths.
methodto_dto(self) -> 'CompiledStructureC0'Return a fresh carrier; mutating its arrays cannot modify this graph.
methodto_json(self, *, limits: 'SchematicContractLimits | None' = None) -> 'bytes'
class

AmbiguousNetNameError

from altium_monkey import AmbiguousNetNameError
class AmbiguousNetNameError(name: 'str', candidate_names: 'list[str]') -> 'None'

A net name or alias identifies more than one net in the netlist.

Bare source-local names (for example a channel sheet's local label) may remain as scoped provenance aliases on several compiled nets at once. Strict lookup refuses to guess between them and lists the candidate canonical net names for disambiguation.

class

NetlistOptions

from altium_monkey.altium_netlist_options import NetlistOptions
class NetlistOptions(net_identifier_scope: 'NetIdentifierScope' = <NetIdentifierScope.GLOBAL: 3>, allow_ports_to_name_nets: 'bool' = False, allow_sheet_entries_to_name_nets: 'bool' = True, allow_single_pin_nets: 'bool' = False, append_sheet_numbers_to_local_nets: 'bool' = False, power_port_names_take_priority: 'bool' = False, higher_level_names_take_priority: 'bool' = False, auto_sheet_numbering: 'bool' = False, channel_designator_format: 'str' = '', project_parameters: 'dict[str, str]' = <factory>, sheet_parameters: 'dict[str, str]' = <factory>) -> 'None'

Options that affect netlist generation behavior.

Members (1)
KindSignatureSummary
classmethodfrom_prjpcb(cls, prjpcb: 'AltiumPrjPcb') -> 'NetlistOptions'Create options from an `AltiumPrjPcb` instance.
class

NetlistSourcePage

from altium_monkey import NetlistSourcePage
class NetlistSourcePage(physical_document_id: 'str | None', source_sheet_file: 'str | None') -> 'None'

Correlated physical-page and logical-source identity.

class

SchematicBomPayload

from altium_monkey import SchematicBomPayload
class SchematicBomPayload() -> 'None'

Immutable public wrapper around the generated schematic BOM DTO.

Members (8)
KindSignatureSummary
classmethodfrom_json(cls, mapping: 'Mapping[str, object]', *, limits: 'SchematicContractLimits | None' = None) -> 'SchematicBomPayload'Validate and wrap one already-materialized BOM mapping.
classmethodfrom_json_bytes(cls, raw: 'bytes', *, limits: 'SchematicContractLimits | None' = None) -> 'SchematicBomPayload'Validate and wrap one bounded BOM UTF-8 JSON value.
classmethodfrom_json_text(cls, text: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'SchematicBomPayload'Validate and wrap one bounded BOM JSON text.
propertyrows -> 'tuple[Mapping[str, object], ...]'Return deeply immutable component mappings in canonical order.
propertyselected_variant -> 'str | None'Return the exact selected variant, or None for the base projection.
methodto_json(self, *, limits: 'SchematicContractLimits | None' = None) -> 'dict[str, object]'Return the canonical schematic BOM mapping.
methodto_json_bytes(self, *, limits: 'SchematicContractLimits | None' = None) -> 'bytes'Return canonical compact schematic BOM UTF-8 bytes.
methodto_json_text(self, *, limits: 'SchematicContractLimits | None' = None) -> 'str'Return canonical compact schematic BOM JSON text.
class

SchematicContractError

from altium_monkey import SchematicContractError
class SchematicContractError(code: 'str', path: 'str', detail: 'str') -> 'None'

Stable schematic transport failure with code and JSON Pointer path.

class

SchematicContractLimits

from altium_monkey import SchematicContractLimits
class SchematicContractLimits(max_input_bytes: 'int' = 9223372036854775807, max_output_bytes: 'int' = 9223372036854775807, max_recursion_depth: 'int' = 128, max_components: 'int' = 9223372036854775807, max_nets: 'int' = 9223372036854775807, max_terminals: 'int' = 9223372036854775807, max_endpoints: 'int' = 9223372036854775807, max_graphical_links: 'int' = 9223372036854775807, max_source_pages: 'int' = 9223372036854775807, max_aliases: 'int' = 9223372036854775807, max_hierarchy_paths: 'int' = 9223372036854775807, max_hierarchy_levels: 'int' = 9223372036854775807, max_parameter_pairs: 'int' = 9223372036854775807, max_json_values: 'int' = 9223372036854775807, max_array_elements: 'int' = 9223372036854775807, max_object_members: 'int' = 9223372036854775807, max_string_bytes: 'int' = 9223372036854775807, max_total_string_bytes: 'int' = 9223372036854775807) -> 'None'

Caller-lowerable resource ceilings for schematic contract codecs.

Altium has no such limits, so every count and byte default is uncapped (``_UNCAPPED``, half the 64-bit range, as in Rust) and running out of memory is the only bound. The recursion depth keeps a finite default for stack safety. Callers may lower any limit.

enum

AltiumPrjPcbDocumentKind

from altium_monkey import AltiumPrjPcbDocumentKind
enum AltiumPrjPcbDocumentKind

Supported project document kinds for builder convenience helpers.

Members (5)
KindSignatureSummary
memberSCHDOC= '.SchDoc'
memberPCDOC= '.PcbDoc'
memberSCHLIB= '.SchLib'
memberPCBLIB= '.PcbLib'
memberOUTJOB= '.OutJob'
enum

AltiumProjectLoadMode

from altium_monkey import AltiumProjectLoadMode
enum AltiumProjectLoadMode

Workload selected when loading an Altium project.

Members (2)
KindSignatureSummary
memberFULL= 'full'
memberMETADATA_ONLY= 'metadata_only'
function

component_kind_includes_in_netlist

from altium_monkey.altium_component_kind import component_kind_includes_in_netlist
def component_kind_includes_in_netlist(kind: 'ComponentKind | int') -> 'bool'

Return whether this component kind participates in netlist generation.

function

make_sch_compile_mask

from altium_monkey import make_sch_compile_mask
def make_sch_compile_mask(*, bounds_mils: 'SchRectMils', color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, collapsed: 'bool' = False) -> 'AltiumSchCompileMask'

Construct a detached schematic compile-mask directive.

Args: bounds_mils: Absolute compile-mask bounds in mils. color: Optional border color helper. ``None`` clears the persisted border-color field. fill_color: Optional fill color helper. ``None`` clears the persisted area-color field. line_width: Compile-mask border thickness enum. Defaults to ``LineWidth.SMALLEST`` to match the native new-object baseline. collapsed: Whether the compile mask starts in its collapsed display state.

Returns: A detached ``AltiumSchCompileMask`` ready to be added with ``schdoc.add_object(...)``.

Notes: Native V5 compile-mask records do not carry the general rectangle ``line_style`` surface, so the public factory intentionally focuses on bounds, colors, thickness, and collapse state.

function

validate_compiled_design_payload

from altium_monkey import validate_compiled_design_payload
def validate_compiled_design_payload(payload: 'object') -> 'None'

Reject payloads outside the handwritten diagnostic b0 contract.

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