On This Page (44) Projects & Compilation AltiumDesign, project builders, compiled schematic graphs, netlists, and BOM.
All kinds Classes Enums Functions Constants 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) Kind Signature Summary property compiled_view -> 'AltiumCompiledView'Return the derived checked C0 relationships using existing identities. method effective_component(self, instance_ref: 'str', instance_path: 'Sequence[str]' = ()) -> 'dto.CompilationComponentBase'Derive base or selected-variant facts; reject incomplete named context. classmethod from_file(cls, path: 'Path | str', *, limits: 'SchematicContractLimits | None' = None) -> 'AltiumCompilation'Prepare base schematic data from an owned SchDoc or PrjPcb source. classmethod from_json(cls, data: 'bytes | str', *, limits: 'SchematicContractLimits | None' = None) -> 'AltiumCompilation'Decode the complete product with shared bounded JSON framing. method realized_sources_for_net(self, target: 'dto.NetOccurrence') -> 'dto.RealizedNetSourcesC0'Expand admitted physical associations into every realized drawing appearance. method schematic_graphics(self, realized_page_ref: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'PreparedSchematicGraphics'Produce one checked live scene and bindings from retained file ownership. method schematic_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, method schematic_source_json(self, document_path: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'bytes'Export an exact retained authored source; detached products have no owner. method schematic_text_records(self, document_path: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'tuple[SchematicTextRecord, ...]'Read retained authored annotations without CAD IO or text evaluation. method select_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. method to_dto(self) -> 'dto.CompilationC0'Return copied generated data without exposing the retained snapshot. method to_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) Kind Signature Summary method to_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) Kind Signature Summary method to_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) Kind Signature Summary property summary -> 'AltiumCompiledDesignSummary'Return summary counts and health for this compiled design. method to_dict(self, *, include_debug: 'bool' = False) -> 'dict[str, object]'Return a deterministic JSON-compatible compiled-design payload. method to_netlist(self) -> "'Netlist'"Return the existing Netlist model derived from compiled-flat rows. property top_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) Kind Signature Summary method to_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) Kind Signature Summary method to_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) Kind Signature Summary method to_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) Kind Signature Summary method to_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) Kind Signature Summary method to_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) Kind Signature Summary method to_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) Kind Signature Summary method to_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) Kind Signature Summary method to_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) Kind Signature Summary method to_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) Kind Signature Summary classmethod from_json(cls, payload: 'dict[str, object]') -> "'AltiumCompiledSchematicGraph'"method to_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) Kind Signature Summary method to_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) Kind Signature Summary method explain_net(self, target: 'dto.NetOccurrence') -> 'dto.NetExplanationC0'Return compiled names, contributor fields and impacts for a scoped net. classmethod from_json(cls, data: 'bytes | str', *, limits: 'SchematicContractLimits | None' = None) -> 'AltiumCompiledView'Decode bounded JSON and check electrical and source relationships. method impacts_for_field(self, key: 'dto.FieldKey') -> 'tuple[dto.FieldImpact, ...]'Return every consuming occurrence of a project-qualified authored field. method select_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. method sources_for_net(self, target: 'dto.NetOccurrence') -> 'dto.NetSourcesC0'Return admitted source/page associations and retained coverage issues. method structural_graph(self) -> 'AltiumStructuralGraph'Return the checked electrical membership wrapper for this snapshot. method to_dto(self) -> 'dto.CompiledViewC0'Return a detached generated DTO without exposing snapshot mutation. method to_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) Kind Signature Summary method compile(self, *, force: 'bool' = False, allow_device_sheet_editing: 'bool' = False) -> 'AltiumCompiledDesign'Compile this design into the beta compiled schematic model. property components -> 'list[SchComponentInfo]'All components across all schematics. classmethod from_pcbdoc(cls, path: 'Path | str') -> 'AltiumDesign'Load design from a single PcbDoc (no project context). classmethod from_prjpcb(cls, path: 'Path | str', *, load_mode: 'AltiumProjectLoadMode' = <AltiumProjectLoadMode.FULL: 'full'>) -> 'AltiumDesign'Load design from PrjPcb project file. classmethod from_schdoc(cls, path: 'Path | str') -> 'AltiumDesign'Load design from single SchDoc (no project). method get_component(self, designator: 'str') -> 'SchComponentInfo | None'Find component by designator across all schematics. method get_net(self, name: 'str') -> 'Net | None'Get net by name from netlist. method get_pcb_project_parameters(self) -> 'dict[str, str]'Resolve project-level parameters for PCB text substitution. method get_pcbdoc_paths(self, selector: 'Path | str | None' = None) -> 'list[Path]'Get PcbDoc paths for this design. method get_physical_document_id_for_page(self, page_occurrence_ref: 'str') -> 'str'Return the compiled physical document ID used to render this page. method get_variant_parameter_overrides(self, variant: 'str | None' = None) -> 'dict[str, dict[str, str]]'Get active variant parameter overrides grouped by source designator. method get_variants(self) -> 'list[str]'Get list of available variant names. property load_mode -> 'AltiumProjectLoadMode'Return the immutable workload selected at project construction. method load_pcbdoc(self, selector: 'Path | str | None' = None) -> 'AltiumPcbDoc'Load and cache a PcbDoc by selector. property pcbdoc -> 'AltiumPcbDoc | None'Loaded PcbDoc, if one has already been parsed. method refresh_netlist(self) -> 'Netlist'Force regeneration of netlist (clear cache). method to_bom(self, variant: 'str | None' = None, *, use_pcb_data: 'bool' = False) -> 'list[dict]'Generate a component BOM. method to_bom_payload(self, variant: 'str | None' = None) -> 'SchematicBomPayload'Return a versioned BOM payload projected from compiled components. method to_json(self, include_indexes: 'bool' = True, *, include_compile_metadata: 'bool' = False, include_pnp: 'bool' = True) -> 'dict'Serialize design state to JSON-compatible dict. method to_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. method to_netlist(self, *, allow_device_sheet_editing: 'bool' = False) -> 'Netlist'Generate unified netlist (cached). method to_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. method to_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. method to_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) Kind Signature Summary method to_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) Kind Signature Summary property compilation -> 'AltiumCompilation'Check complete data lazily from this file-owned generation, without IO. property compiled_view -> 'AltiumCompiledView'Electrical and exact authored-source associations from this preparation. method fields_for_net(self, net_id: 'str') -> 'tuple[AltiumSchematicSourceField, ...]'classmethod from_file(cls, path: 'Path | str', *, definition_id: 'str' = 'design') -> 'AltiumPreparedDesign'Own a fresh PrjPcb and retain its single prepared compiler generation. method pin_sources_for_net(self, net_id: 'str') -> 'tuple[AltiumSchematicPinSource, ...]'Return frozen source contacts without limiting lookup to connectors. method resolve_connector_pin(self, selector: 'AltiumDesignEndpointSelector') -> 'AltiumDesignEndpoint'Exact ordinal matching; no designator, net-name or pin-number fallback. method schematic_graphics(self, realized_page_ref: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'PreparedSchematicGraphics'Produce graphics over the same file-owned endpoint compiler generation. method schematic_source_json(self, document_path: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'bytes'Export retained authored SchDoc JSON selected by its exact prepared path. method schematic_text_records(self, document_path: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'tuple[SchematicTextRecord, ...]'Read exact retained annotations independently of complete metadata capture. property source_trace -> 'AltiumSchematicSourceTrace'property structural_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) Kind Signature Summary method add_document(self, path: 'str | Path', unique_id: 'str | None' = None) -> 'None'Add a document to the project. method add_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. property class_generation_options -> 'AltiumPrjPcbClassGenerationOptions'Get project-wide class-generation policy from `[PrjClassGen]`. classmethod create_minimal(cls, name: 'str' = 'project') -> 'AltiumPrjPcb'Create a minimal project file with default settings. method delete_parameter(self, name: 'str') -> 'bool'Delete one project-level parameter by name. property document_class_generation_options -> 'dict[str, AltiumPrjPcbDocumentClassGenerationOptions]'Get class-generation options for each project document by document path. method get_current_variant(self) -> 'str | None'Get the current variant name from the project's [Design] section. method get_document_class_generation_options(self, document: 'int | str | Path') -> 'AltiumPrjPcbDocumentClassGenerationOptions'Get class-generation options for one project document. method get_outjob_paths(self) -> 'list[Path]'Get full paths to all OutJob files referenced in the project. method get_parameter(self, name: 'str') -> 'str | None'Get project parameter value by name (case-insensitive). method get_pcbdoc_paths(self) -> 'list[Path]'Get full paths to all PcbDoc files in the project. method get_reachable_schdoc_paths(self) -> 'list[Path]'Get the SchDoc paths Altium's compile reads, in project order. method get_saved_structure_schdoc_paths(self) -> 'list[Path]'Get SchDoc paths named by the saved `.PrjPcbStructure` file. method get_saved_structure_top_level_schdoc_name(self) -> 'str | None'Get the saved `.PrjPcbStructure` top-level SchDoc file name. method get_schdoc_paths(self) -> 'list[Path]'Get full paths to all SchDoc files in the project. property net_identifier_scope -> 'NetIdentifierScope'Get the Net Identifier Scope (HierarchyMode) from the [Design] section. property netlist_options -> 'dict'Get netlist-related project options from the [Design] section. method outjob(self, name: 'str | Path | None' = None) -> 'AltiumPrjPcbOutJob'Resolve a project OutJob handle. property parameters -> 'dict[str, str]'Get all project parameters, as Altium reads them. method remove_all_documents(self) -> 'None'Remove all documents from the project. method save(self, filepath: 'Path | str') -> 'None'Save project to file. method set_class_generation_options(self, options: 'AltiumPrjPcbClassGenerationOptions') -> 'None'Set project-wide class-generation policy in `[PrjClassGen]`. method set_current_variant(self, name: 'str | None') -> 'None'Set or clear the current project variant. method set_document_class_generation_options(self, document: 'int | str | Path', options: 'AltiumPrjPcbDocumentClassGenerationOptions') -> 'None'Set class-generation options for one project document. method set_documents_from_directory(self, directory: 'Path', pattern: 'str' = '*.SchDoc') -> 'None'Set documents by scanning a directory for files. method set_parameter(self, name: 'str', value: 'str') -> 'None'Set one project-level parameter. method set_parameters(self, parameters: 'Mapping[str, str]') -> 'None'Set multiple project-level parameters. property variants -> '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) Kind Signature Summary method add_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. method add_outjob(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.OutJob` entry. method add_pcbdoc(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.PcbDoc` entry. method add_pcblib(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.PcbLib` entry. method add_schdoc(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.SchDoc` entry. method add_schlib(self, path: 'Path | str', *, unique_id: 'str | None' = None, options: 'Sequence[tuple[str, str]] | None' = None) -> 'AltiumPrjPcbBuilder'Append one `.SchLib` entry. method build(self) -> 'AltiumPrjPcb'Materialize the queued builder state into an `AltiumPrjPcb`. method clear_documents(self) -> 'AltiumPrjPcbBuilder'Remove all queued document entries from the builder. method extend_documents(self, entries: 'Iterable[AltiumPrjPcbDocumentEntry]') -> 'AltiumPrjPcbBuilder'Append multiple pre-built document entries in order. method save(self, filepath: 'Path | str') -> 'Path'Build and save the project file, returning the output path. method set_class_generation_options(self, options: 'AltiumPrjPcbClassGenerationOptions') -> 'AltiumPrjPcbBuilder'Set project-wide class-generation policy for generated `.PrjPcb` files. method set_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) Kind Signature Summary classmethod from_config(cls, config: 'configparser.ConfigParser') -> "'AltiumPrjPcbClassGenerationOptions'"Build options from a project config, using observed Altium defaults when method write_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) Kind Signature Summary classmethod from_document_options(cls, options: 'list[DocumentOption]') -> "'AltiumPrjPcbDocumentClassGenerationOptions'"Build options from one `DocumentN` option list. method write_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) Kind Signature Summary classmethod create(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) Kind Signature Summary property name -> 'str'Filename of the `.OutJob` (including extension). property path -> 'Path'Absolute path to the `.OutJob` file. method run(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) Kind Signature Summary method to_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) Kind Signature Summary method parse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse compile mask record, including Collapsed field. property record_type -> 'SchRecordType'method serialize_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) Kind Signature Summary method parse_from_record(self, record: '_RecordFields', font_manager: 'FontIDManager | None' = None) -> 'None'Parse from a record. property record_type -> 'SchRecordType'method serialize_to_record(self) -> '_RecordFields'Serialize to a record. property text -> '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) Kind Signature Summary classmethod from_json(cls, raw: 'bytes | str', *, limits: 'SchematicContractLimits | None' = None) -> 'AltiumStructuralGraph'Decode the generated closed C0 shape and validate all relationships. property gaps -> 'tuple[str, ...]'property root_definition_ref -> 'str'method terminals_for_net(self, definition_id: 'str', net_id: 'str') -> 'tuple[tuple[tuple[str, ...], str], ...]'Expand to leaf pin IDs with ordered child occurrence paths. method to_dto(self) -> 'CompiledStructureC0'Return a fresh carrier; mutating its arrays cannot modify this graph. method to_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) Kind Signature Summary classmethod from_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) Kind Signature Summary classmethod from_json(cls, mapping: 'Mapping[str, object]', *, limits: 'SchematicContractLimits | None' = None) -> 'SchematicBomPayload'Validate and wrap one already-materialized BOM mapping. classmethod from_json_bytes(cls, raw: 'bytes', *, limits: 'SchematicContractLimits | None' = None) -> 'SchematicBomPayload'Validate and wrap one bounded BOM UTF-8 JSON value. classmethod from_json_text(cls, text: 'str', *, limits: 'SchematicContractLimits | None' = None) -> 'SchematicBomPayload'Validate and wrap one bounded BOM JSON text. property rows -> 'tuple[Mapping[str, object], ...]'Return deeply immutable component mappings in canonical order. property selected_variant -> 'str | None'Return the exact selected variant, or None for the base projection. method to_json(self, *, limits: 'SchematicContractLimits | None' = None) -> 'dict[str, object]'Return the canonical schematic BOM mapping. method to_json_bytes(self, *, limits: 'SchematicContractLimits | None' = None) -> 'bytes'Return canonical compact schematic BOM UTF-8 bytes. method to_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) Kind Signature Summary member SCHDOC= '.SchDoc'member PCDOC= '.PcbDoc'member SCHLIB= '.SchLib'member PCBLIB= '.PcbLib'member OUTJOB= '.OutJob'
enum
AltiumProjectLoadMode from altium_monkey import AltiumProjectLoadMode
enum AltiumProjectLoadMode
Workload selected when loading an Altium project.
Members (2) Kind Signature Summary member FULL= 'full'member METADATA_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.