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

Schematics & Symbols

AltiumSchDoc, AltiumSchLib, record classes, enums, and mil-based factories.

149 / 149 shown
class

AltiumSchArc

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

Circular arc record.

Arc defined by center, radius, start/end angles.

Public code should use ``location_mils`` and ``radius_mils`` for geometry updates. The raw ``radius`` / ``radius_frac`` fields are internal coord-style storage fields kept for serializer fidelity.

Rendering depends on angle field presence, not only numeric angle values: explicit ``EndAngle=90`` is a true quarter arc, while a missing persisted ``EndAngle`` is handled as native missing-field state during SVG/IR export.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse from a record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
class

AltiumSchBezier

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

Bezier curve record.

Bezier curve defined by control points.

Public code should use ``points_mils`` for normal bezier creation, inspection, and mutation. Bezier points use cubic segments with native control-point groups of ``4 + 3n`` points: four points for the first segment, then three more points for each connected segment. Native V5 bezier records do not carry a line-style field.

Members (4)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse from a record.
propertypoints_mils -> 'list[SchPointMils]'Public bezier control-point list expressed in mils.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
class

AltiumSchBlanket

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

BLANKET record.

Blanket/region annotation for grouping. Inherits from POLYGON but with its own LineStyle support.

Note: Blanket supports LineStyle/LineStyleExt even though Polygon does not (per native file format implementation).

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

AltiumSchBus

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

BUS record.

Represents a bus (multi-signal) connection. Inherits all behavior from WIRE.

Members (1)
KindSignatureSummary
propertyrecord_type -> 'SchRecordType'
class

AltiumSchBusEntry

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

BUS_ENTRY record.

Represents a bus entry point (wire-to-bus connection). Inherits all behavior from LINE.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, object]', font_manager: 'FontIDManager | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, object]'
class

AltiumSchComponent

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

COMPONENT record.

Represents a placed symbol instance in a schematic. Acts as a container for pins, primitives, and parameters.

Members (30)
KindSignatureSummary
methodadd_arc(self, cx: 'int', cy: 'int', radius: 'int', start_angle: 'float' = 0.0, end_angle: 'float' = 360.0, color: 'int' = 0, line_width: 'LineWidth | int' = <LineWidth.SMALL: 1>, owner_part_id: 'int | None' = None) -> 'object'Add an arc in component-local mil coordinates.
methodadd_bezier(self, points: 'list[tuple[int, int]]', color: 'int' = 0, line_width: 'LineWidth | int' = <LineWidth.SMALL: 1>, owner_part_id: 'int | None' = None) -> 'object'Add a bezier curve in component-local mil coordinates.
methodadd_ellipse(self, cx: 'int', cy: 'int', rx: 'int', ry: 'int', color: 'int' = 0, area_color: 'int' = 16777215, is_solid: 'bool' = False, line_width: 'LineWidth | int' = <LineWidth.SMALL: 1>, owner_part_id: 'int | None' = None) -> 'object'Add an ellipse in component-local mil coordinates.
methodadd_footprint(self, model_name: 'str', description: 'str' = '', is_current: 'bool' = True, library_name: 'str' = '') -> 'object'Add a PCB footprint implementation to this placed component.
methodadd_label(self, x: 'int', y: 'int', text: 'str', color: 'int' = 0, font_id: 'int' = 1, orientation: 'int' = 0, owner_part_id: 'int | None' = None) -> 'object'Add a text label in component-local mil coordinates.
methodadd_line(self, x1: 'int', y1: 'int', x2: 'int', y2: 'int', color: 'int' = 0, line_width: 'LineWidth | int' = <LineWidth.SMALL: 1>, owner_part_id: 'int | None' = None) -> 'object'Add a line in component-local mil coordinates.
methodadd_parameter(self, name: 'str', value: 'str', x: 'int' = 0, y: 'int' = 0, visible: 'bool' = False, owner_part_id: 'int | None' = None) -> 'object | None'Add or update a custom parameter using component-local mil coordinates.
methodadd_pin(self, designator: 'str', name: 'str' = '', x: 'int' = 0, y: 'int' = 0, orientation: 'Rotation90 | int' = <Rotation90.DEG_0: 0>, electrical: 'PinElectrical | int' = <PinElectrical.INPUT: 0>, length: 'int' = 200, font: 'str' = 'Arial', font_size: 'int' = 10, show_name: 'bool' = True, show_designator: 'bool' = True, owner_part_id: 'int | None' = None) -> 'object'Add a pin in component-local mil coordinates.
methodadd_polygon(self, points: 'list[tuple[int, int]]', color: 'int' = 0, area_color: 'int' = 16777215, is_solid: 'bool' = False, line_width: 'LineWidth | int' = <LineWidth.SMALL: 1>, owner_part_id: 'int | None' = None) -> 'object'Add a polygon in component-local mil coordinates.
methodadd_polyline(self, points: 'list[tuple[int, int]]', color: 'int' = 0, line_width: 'LineWidth | int' = <LineWidth.SMALL: 1>, owner_part_id: 'int | None' = None) -> 'object'Add a polyline in component-local mil coordinates.
methodadd_rectangle(self, x1: 'int', y1: 'int', x2: 'int', y2: 'int', color: 'int' = 0, fill_color: 'int' = 16777215, is_solid: 'bool' = True, line_width: 'LineWidth | int' = <LineWidth.SMALL: 1>, owner_part_id: 'int | None' = None) -> 'object'Add a rectangle in component-local mil coordinates.
methodadd_round_rectangle(self, x1: 'int', y1: 'int', x2: 'int', y2: 'int', corner_x_radius: 'int' = 10, corner_y_radius: 'int' = 10, color: 'int' = 0, area_color: 'int' = 16777215, is_solid: 'bool' = True, line_width: 'LineWidth | int' = <LineWidth.SMALL: 1>, owner_part_id: 'int | None' = None) -> 'object'Add a rounded rectangle in component-local mil coordinates.
methodadd_rounded_rectangle(self, x1: 'int', y1: 'int', x2: 'int', y2: 'int', corner_x_radius: 'int' = 10, corner_y_radius: 'int' = 10, color: 'int' = 0, area_color: 'int' = 16777215, is_solid: 'bool' = True, line_width: 'LineWidth | int' = <LineWidth.SMALL: 1>, owner_part_id: 'int | None' = None) -> 'object'Add a rounded rectangle in component-local mil coordinates.
propertyalias_list -> 'str'
propertydesign_item_id -> 'str'
methoddisplay_body_bounds_mils(self, *, part_id: 'int | None' = None) -> 'SchRectMils | None'Return schematic mil bounds for the visible component body graphics.
methoddisplay_body_element_ids(self, *, part_id: 'int | None' = None) -> 'list[str]'Return unique IDs for records that form the visible component body.
methodfull_bounds_mils(self, *, include_pins: 'bool' = True, include_parameters: 'bool' = True, part_id: 'int | None' = None) -> 'SchRectMils | None'Return schematic mil bounds for component graphics and optional children.
methodget_pin_hotspot(self, pin_designator: 'str') -> 'tuple[float, float]'Return a placed pin hotspot in schematic mils.
propertylib_reference -> 'str'
methodnon_accessible_children_bounds_mils(self, *, part_id: 'int | None' = None) -> 'SchRectMils | None'Alias for Altium's DNP/non-accessible child bounds concept.
methodnon_accessible_children_element_ids(self, *, part_id: 'int | None' = None) -> 'list[str]'Alias for Altium-style DNP/non-accessible child target records.
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
methodset_comment(self, text: 'str', x: 'int' = 0, y: 'int' = 50, visible: 'bool' = True) -> 'object'Set or create the Comment parameter using component-local mil coordinates.
methodset_comment_style(self, x: 'int | None' = None, y: 'int | None' = None, font_name: 'str' = 'Arial', font_size: 'int' = 10, bold: 'bool' = False) -> 'object'Set the placed Comment parameter position and font in schematic mils.
methodset_current_part(self, part_id: 'int') -> 'AltiumSchComponent'Select the active logical part for this placed component.
methodset_designator_style(self, x: 'int | None' = None, y: 'int | None' = None, font_name: 'str' = 'Arial', font_size: 'int' = 12, bold: 'bool' = True) -> 'object'Set the placed designator record position and font in schematic mils.
methodset_part_count(self, count: 'int') -> 'AltiumSchComponent'Set the logical multipart count for this placed component.
class

AltiumSchCrossSheetConnector

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

Cross-sheet connector record.

This is a distinct schematic object-model surface, but it persists through the same underlying record family as power objects.

Members (1)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'Any | None' = None) -> 'None'
class

AltiumSchDoc

from altium_monkey import AltiumSchDoc
class AltiumSchDoc(filepath: 'Path | str | None' = None, *, create_sheet: 'bool' = True, debug: 'bool' = False) -> 'None'

Represents a complete .SchDoc schematic file.

Attributes: filepath: Path to SchDoc file sheet: SHEET record (root container with font table) components: List of placed component instances (AltiumSchComponent with children) wires: List of wire connections buses: List of bus connections net_labels: List of net labels power_ports: List of power/ground symbols junctions: List of wire junctions ports: List of hierarchical ports sheet_symbols: List of hierarchical sheet boxes graphics: List of sheet-level graphical objects labels: List of sheet-level text labels embedded_images: Dict of embedded images all_objects: List of all parsed objects (preserves file order)

Members (87)
KindSignatureSummary
methodadd_component(self, lib_reference: 'str', designator: 'str' = 'U?', x: 'int' = 0, y: 'int' = 0, library_path: 'str' = '*', orientation: 'int' = 0, is_mirrored: 'bool' = False, part_id: 'int' = 1, part_count: 'int | None' = None, display_mode: 'int' = 0, display_mode_count: 'int' = 1, designator_x: 'int' = 0, designator_y: 'int' = 100, comment_x: 'int' = 0, comment_y: 'int' = -100) -> 'AltiumSchComponent'Add a placed component and return the live component record.
methodadd_component_from_library(self, library_path: 'str | Path', symbol_name: 'str', designator: 'str', x: 'int', y: 'int', orientation: 'int' = 0, is_mirrored: 'bool' = False, part_id: 'int' = 1, display_mode: 'int' = 0) -> 'AltiumSchComponent'Place a component from a SchLib symbol and return the live component record.
methodadd_object(self, obj: 'object', owner: 'object | None' = None) -> 'None'Add an object to the schematic.
propertyall_objects -> 'ObjectCollectionView'
methodapply_template(self, template_path: 'str | Path', *, clear_existing: 'bool' = True, merge_parameters: 'bool' = True, template_filename: 'str | Path | None' = None, apply_visual_sheet_settings: 'bool' = False) -> 'int'Apply a schematic `.SchDot` template to this document.
propertyarcs -> 'ObjectCollection'
methodasset_inventory(self, *, include_hashes: 'bool' = False) -> 'AltiumAssetInventory'Return extractable asset inventory for this SchDoc.
propertybeziers -> 'ObjectCollection'
propertyblankets -> 'ObjectCollection'
propertybus_entries -> 'ObjectCollection'
propertybuses -> 'ObjectCollection'
methodclear_template(self) -> 'int'Remove the schematic template and all template-owned objects.
propertycompile_masks -> 'ObjectCollection'
propertycomponents -> 'ObjectCollection'
propertycross_sheet_connectors -> 'ObjectCollection'
propertydesignators -> 'ObjectCollection'
propertydifferential_pair_directives -> 'ObjectCollection'
propertyellipses -> 'ObjectCollection'
propertyelliptical_arcs -> 'ObjectCollection'
methodextract_asset(self, ref: 'AltiumAssetRef') -> 'AltiumExtractedAsset'Extract one asset selected from `asset_inventory()`.
methodextract_embedded_images(self, output_dir: 'Path | str', *, verbose: 'bool' = False) -> 'list[Path]'Extract embedded schematic IMAGE payloads to `output_dir`.
methodextract_schlib(self, debug: 'bool' = False, strip_parameters: 'bool' = True, strip_implementations: 'bool' = True) -> "'AltiumSchLib'"Extract placed component symbols into an in-memory SchLib.
methodextract_symbol(self, ref_or_name_or_index: 'object', *, strip_parameters: 'bool' = True, strip_implementations: 'bool' = True, debug: 'bool' = False) -> "'AltiumSchLib'"Extract one placed SchDoc symbol as a single-symbol SchLib.
methodextract_symbols(self, output_dir: 'Path', combined_schlib: 'bool' = False, split_schlibs: 'bool' = True, debug: 'bool' = False, strip_parameters: 'bool' = True, strip_implementations: 'bool' = True) -> 'dict[str, bool]'Extract symbols from placed components in this schematic.
methodextract_template(self, output_path: 'str | Path', *, include_parameters: 'bool' = True) -> 'int'Extract the embedded schematic template to a standalone `.SchDot` file.
propertyfile_names -> 'ObjectCollection'
propertyfont_manager -> 'FontIDManager'Get font manager for this document.
classmethodfrom_json(cls, source: 'Path | str | dict') -> 'AltiumSchDoc'Create a new SchDoc from JSON data.
methodget_all_pins(self) -> 'list[SchPinInfo]'Get all pins across all components with component context.
methodget_buses(self) -> 'list[AltiumSchBus]'Get all buses.
methodget_component(self, designator: 'str') -> 'SchComponentInfo | None'Find component by designator.
methodget_components(self) -> 'list[SchComponentInfo]'Get all components with resolved children.
methodget_cross_sheet_connectors(self) -> 'list[SchCrossSheetConnectorInfo]'Get all off-sheet connectors with connection points.
methodget_harness_connectors(self) -> 'list[SchHarnessInfo]'Get all harness connectors with their entries.
methodget_junctions(self) -> 'list[AltiumSchJunction]'Get all junction points.
methodget_labels(self) -> 'list[AltiumSchLabel]'Get all text labels (sheet-level only).
methodget_lines(self) -> 'list[AltiumSchLine]'Get all lines (sheet-level).
methodget_net_labels(self) -> 'list[SchNetLabelInfo]'Get all net labels with connection points.
methodget_parameter(self, name: 'str') -> 'str | None'Get document parameter value by name (case-insensitive).
methodget_parameter_dict(self) -> 'dict[str, str]'Get all document parameters as a dictionary.
methodget_pins_for_component(self, designator: 'str') -> 'list[AltiumSchPin]'Get pins for a specific component.
methodget_ports(self) -> 'list[SchPortInfo]'Get all sheet ports with connection points.
methodget_power_ports(self) -> 'list[SchPowerPortInfo]'Get all power port symbols with connection points.
methodget_rectangles(self) -> 'list[AltiumSchRectangle]'Get all rectangles (sheet-level).
methodget_sheet_symbols(self) -> 'list[SchSheetSymbolInfo]'Get all sheet symbols with resolved entries.
methodget_signal_harnesses(self) -> 'list[AltiumSchSignalHarness]'Get all signal harness wires.
methodget_summary(self) -> 'str'Get a summary string of the schematic contents.
methodget_template(self) -> 'AltiumSchTemplate | None'Get the template object from the document.
methodget_wires(self) -> 'list[AltiumSchWire]'Get all wire segments.
propertygraphics -> 'ObjectCollection'All graphical primitives (lines, rectangles, arcs, etc.).
propertyharness_connectors -> 'ObjectCollection'
propertyharness_entries -> 'ObjectCollection'
propertyharness_types -> 'ObjectCollection'
propertyimages -> 'ObjectCollection'
methodinsert_object(self, obj: 'object', index: 'int', owner: 'object | None' = None) -> 'None'Insert an object at a specific position in the schematic.
propertyjunctions -> 'ObjectCollection'
propertylabels -> 'ObjectCollection'
propertylines -> 'ObjectCollection'
propertynet_labels -> 'ObjectCollection'
propertyno_ercs -> 'ObjectCollection'
propertynotes -> 'ObjectCollection'
propertyobjects -> 'ObjectCollectionView'
propertyparameter_sets -> 'ObjectCollection'
propertyparameters -> 'ObjectCollection'
propertypolygons -> 'ObjectCollection'
propertypolylines -> 'ObjectCollection'
propertyports -> 'ObjectCollection'
propertypower_ports -> 'ObjectCollection'
propertyread_diagnostics -> 'tuple[SchReadDiagnostic, ...]'Problems met while reading the file, in the order they were met.
propertyrectangles -> 'ObjectCollection'
methodremove_object(self, obj: 'object') -> 'bool'Remove an object from the schematic.
propertyrounded_rectangles -> 'ObjectCollection'
methodsave(self, filepath: 'Path | str', debug: 'bool' = False) -> 'bool'Save to binary SchDoc format.
propertysheet_entries -> 'ObjectCollection'
propertysheet_names -> 'ObjectCollection'
propertysheet_symbols -> 'ObjectCollection'
propertysignal_harnesses -> 'ObjectCollection'
propertytext_frames -> 'ObjectCollection'
propertytext_strings -> 'ObjectCollection'
methodto_json(self, filepath: 'Path | str | None' = None) -> 'dict'Export SchDoc to JSON format for interoperability testing.
methodto_paint_ir(self, project_parameters: 'dict[str, str] | None' = None, *, designator_text_overrides: 'dict[str, str] | None' = None, view: "'SchPaintView | None'" = None, title_block_document_path: 'str | None' = None, modified_date: 'str | None' = None, document_path: 'str | None' = None, current_date: 'str | None' = None, current_time: 'str | None' = None) -> "'SchPaintIR'"Build ordered schematic Paint IR in mils for a static or editor view.
methodto_paint_ir_report(self, project_parameters: 'dict[str, str] | None' = None, *, designator_text_overrides: 'dict[str, str] | None' = None, view: "'SchPaintView | None'" = None, title_block_document_path: 'str | None' = None, modified_date: 'str | None' = None, document_path: 'str | None' = None, current_date: 'str | None' = None, current_time: 'str | None' = None) -> "'SchPaintReport'"Build Paint IR and the diagnostics reported while drawing it.
methodto_paint_png(self, project_parameters: 'dict[str, str] | None' = None, *, png_options: 'SchPaintPngOptions | None' = None, view: 'SchPaintView | None' = None) -> 'bytes'Render an output view of this document's Paint IR to PNG.
methodto_schdoc(self, filepath: 'Path | str', debug: 'bool' = False) -> 'bool'Write SchDoc to file.
methodto_svg(self, include_border: 'bool' = True, scale: 'float' = 1.0, options: "'SchPaintSvgOptions | None'" = None, project_parameters: 'dict[str, str] | None' = None, wrap_components: 'bool' = False, *, view: "'SchPaintView | None'" = None) -> 'str'Render one ordinary source document through schematic Paint IR.
methodto_tagged_json(self, filepath: 'Path | str | None' = None) -> 'dict[str, object]'Export the explicit versioned SchDoc interoperability envelope.
propertywires -> 'ObjectCollection'
class

AltiumSchEllipse

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

Ellipse/circle record.

Ellipse defined by center (location) and radii.

Public code should use ``location_mils``, ``radius_mils``, and ``secondary_radius_mils`` for geometry updates. The raw radius fields are internal coord-style storage fields kept for serializer fidelity.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse from a record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
class

AltiumSchEllipticalArc

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

ELLIPTICAL_ARC record.

An arc on an ellipse (non-circular arc).

Public code should use ``location_mils``, ``radius_mils``, and ``secondary_radius_mils`` for geometry updates. The raw radius fields are internal coord-style storage fields kept for serializer fidelity.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchematicFieldOccurrence

from altium_monkey.altium_schematic_refactor import AltiumSchematicFieldOccurrence
class AltiumSchematicFieldOccurrence(net_id: 'str', physical_document_key: 'str', effective_value: 'str', removed: 'bool') -> 'None'

One retained flat-net contribution, including removed boundary evidence.

class

AltiumSchematicFieldRename

from altium_monkey.altium_schematic_refactor import AltiumSchematicFieldRename
class AltiumSchematicFieldRename(selector: 'AltiumSchematicFieldSelector', old_value: 'str', new_value: 'str') -> 'None'

An exact authored-field decision with a checked expected old value.

class

AltiumSchematicFieldSelector

from altium_monkey.altium_schematic_refactor import AltiumSchematicFieldSelector
class AltiumSchematicFieldSelector(object_kind: 'str', object_uid: 'str', owner_uid: 'str', field: "Literal['Name', 'Text']") -> 'None'

Native source key, scoped by the SchDoc supplied to the operation.

class

AltiumSchematicNetTrace

from altium_monkey.altium_schematic_refactor import AltiumSchematicNetTrace
class AltiumSchematicNetTrace(id: 'str', name: 'str | None', terminal_ids: 'tuple[str, ...]') -> 'None'

Design-local net identity and qualified fixed-terminal membership.

class

AltiumSchematicSourceField

from altium_monkey.altium_schematic_refactor import AltiumSchematicSourceField
class AltiumSchematicSourceField(document_path: 'Path', selector: 'AltiumSchematicFieldSelector', raw_value: 'str', occurrences: 'tuple[AltiumSchematicFieldOccurrence, ...]') -> 'None'

Authored value and reverse impacts; discovery does not authorize editing.

class

AltiumSchematicSourceTrace

from altium_monkey.altium_schematic_refactor import AltiumSchematicSourceTrace
class AltiumSchematicSourceTrace(nets: 'tuple[AltiumSchematicNetTrace, ...]', fields: 'tuple[AltiumSchematicSourceField, ...]', gaps: 'tuple[str, ...]') -> 'None'

Immutable read snapshot; gaps prevent claiming complete refactor coverage.

Members (1)
KindSignatureSummary
methodfields_for_net(self, net_id: 'str') -> 'tuple[AltiumSchematicSourceField, ...]'Trace a projected net to exact authored records through compiler evidence.
class

AltiumSchFileName

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

FILE_NAME record.

File name label on hierarchical sheet symbol. Inherits all behavior from LABEL.

Members (1)
KindSignatureSummary
propertyrecord_type -> 'SchRecordType'
class

AltiumSchHarnessConnector

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

HARNESS_CONNECTOR record.

Harness connector container for harness entries. Location is top-left corner, XSize/YSize define dimensions.

Members (10)
KindSignatureSummary
methodadd_entry(self, entry: 'AltiumSchHarnessEntry') -> 'None'Attach a harness entry to this connector.
methodclear_type_label(self) -> 'bool'Remove the current harness type label when present.
methodget_entry(self, name: 'str') -> 'AltiumSchHarnessEntry | None'Return the first harness entry with the given display name.
methodmove_entry(self, entry_or_name: 'AltiumSchHarnessEntry | str', *, index: 'int') -> 'None'Reorder an existing entry within this connector.
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: "'FontIDManager | None'" = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodremove_entry(self, entry: 'AltiumSchHarnessEntry') -> 'bool'Detach a harness entry from this connector.
methodremove_entry_by_name(self, name: 'str') -> 'bool'Remove the first entry whose name matches ``name`` case-insensitively.
methodserialize_to_record(self) -> 'dict[str, Any]'
methodset_type_label(self, type_label: 'AltiumSchHarnessType') -> 'None'Attach or replace the harness type label for this connector.
class

AltiumSchHarnessEntry

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

HARNESS_ENTRY record.

Individual entry/pin on a harness connector. Similar to SHEET_ENTRY but for harnesses.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: "'FontIDManager | None'" = None) -> 'None'Parse harness entry from record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchHarnessType

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

HARNESS_TYPE record.

Harness connector type label. Inherits all behavior from LABEL. Uses OwnerIndexAdditionalList=T for file-order hierarchy.

Members (4)
KindSignatureSummary
propertynot_auto_position -> 'bool'Compatibility view of the managed inverted auto-position field.
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse harness type from record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchHeader

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

Typed schematic stream preamble.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchIeeeSymbol

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

IEEE_SYMBOL record.

A standalone IEEE symbol placed on the schematic. Used for logic gate symbols (AND, OR, NAND, NOR, XOR, etc.) in IEEE format schematics.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: "'FontIDManager | None'" = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchImage

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

IMAGE record.

Represents an embedded or linked schematic image.

`image_data` stores the raw payload from the SchDoc Storage stream for preservation. For some Altium files that payload is a BMP preview plus a native image payload. Use `AltiumSchDoc.extract_embedded_images(...)` when exporting standalone image files.

Members (10)
KindSignatureSummary
propertyborder_color -> 'ColorValue | None'Public border color helper.
propertybounds_mils -> 'SchRectMils'Public image bounds helper expressed in mils.
methoddetect_format(self) -> 'str | None'Detect the raw `image_data` storage format from header bytes.
propertyembedded -> 'bool'Alias for embed_image.
propertyheight -> 'float'Height in low-level schematic record units (10 mil per whole unit).
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'Any | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodruntime_image_key(self, document_id: 'str') -> 'str'Return the runtime image href key for this image record.
methodserialize_to_record(self) -> 'dict[str, Any]'
propertywidth -> 'float'Width in low-level schematic record units (10 mil per whole unit).
class

AltiumSchImplementation

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

Model or footprint implementation reference.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, object]', font_manager: "'FontIDManager | None'" = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, object]'
class

AltiumSchImplementationList

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

Wrapper synthesized around component implementations.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, object]', font_manager: "'FontIDManager | None'" = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, object]'
class

AltiumSchImplParams

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

Compatibility name for the managed ParameterList wrapper.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, object]', font_manager: "'FontIDManager | None'" = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, object]'
class

AltiumSchLabel

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

Altium text label record.

Common text element in symbols with font, orientation, and justification.

font_id enforces integer type at assignment.

Members (3)
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.
class

AltiumSchLib

from altium_monkey import AltiumSchLib
class AltiumSchLib(filepath: 'Path | str | None' = None, debug: 'bool' = False, *, show_comments_designators: 'bool' = False) -> 'None'

Complete parser for Altium .SchLib files.

Members (24)
KindSignatureSummary
methodadd_symbol(self, name: 'str', description: 'str' = '', *, original_name: 'str | None' = None) -> 'AltiumSymbol'Add a new empty symbol to this library.
methodasset_inventory(self, *, include_hashes: 'bool' = False) -> 'AltiumAssetInventory'Return extractable asset inventory for this SchLib.
methodextract_asset(self, ref: 'AltiumAssetRef') -> 'AltiumExtractedAsset'Extract one asset selected from `asset_inventory()`.
methodextract_symbol(self, ref_or_name_or_index: 'object') -> "'AltiumSchLib'"Extract one symbol as a single-symbol SchLib.
classmethodfrom_json(cls, source: 'Path | str | dict') -> 'AltiumSchLib'Create a new SchLib from JSON data.
methodget_summary(self) -> 'dict[str, object]'Get summary statistics for the entire library.
methodget_symbol(self, name: 'str') -> 'AltiumSymbol | None'Get a symbol by name.
staticmethodget_symbol_names(filepath: 'Path') -> 'list[str]'Get symbol names without full parse.
classmethodmerge(cls, input_paths: 'Path | list[Path]', output_path: 'Path', handle_conflicts: 'str' = 'rename', verbose: 'bool' = True) -> 'AltiumSchLib'Merge multiple SchLib files into a single multi-symbol SchLib file.
propertyread_diagnostics -> 'tuple[SchReadDiagnostic, ...]'Problems met while reading the library, in the order they were met.
methodremove_symbol(self, symbol_or_name: 'AltiumSymbol | str') -> 'bool'Remove one symbol and release its library binding and identity locks.
methodrename_symbol(self, symbol_or_name: 'AltiumSymbol | str', storage_name: 'str', *, original_name: 'str | None' = None) -> 'AltiumSymbol'Rename one owned symbol and its complete SchLib storage subtree.
methodsave(self, filepath: 'Path | str', debug: 'bool' = False, *, sync_pin_text_data: 'bool' = False, minimal: 'bool' = False) -> 'None'Save to binary SchLib format.
propertyshow_comments_designators -> 'bool'Whether SchLib rendering and saved files show comments/designators.
methodsplit(self, output_dir: 'Path', name_pattern: 'str' = '{symbol_name}.SchLib', symbol_filter: 'list[str] | None' = None, verbose: 'bool' = True) -> 'dict[str, Path | None]'Split this multi-symbol SchLib into individual files.
methodsymbol_to_paint_ir(self, symbol_name: 'str', part_id: 'int | None' = None, display_mode: 'int | None' = None) -> "'SchPaintIR'"Build source-coordinate Paint IR for one library symbol view.
methodsymbol_to_paint_png(self, symbol_name: 'str', part_id: 'int | None' = None, display_mode: 'int | None' = None, *, png_options: 'SchPaintPngOptions | None' = None) -> 'bytes'Render one library symbol view through Paint IR to PNG.
methodsymbol_to_svg(self, symbol_name: 'str', width: 'int | None' = None, height: 'int | None' = None, padding: 'int' = 50, background: 'str' = '#FFFFFF', auto_fit: 'bool' = True, part_id: 'int | None' = None, display_mode: 'int | None' = None, *, options: "'SchPaintSvgOptions | None'" = None) -> 'str'Render a selected source symbol through schematic Paint IR.
propertysymbols -> 'ObjectCollectionView'Return the live read-only symbol membership view.
methodto_json(self, filepath: 'Path | str | None' = None) -> 'dict'Export SchLib to JSON format for interoperability testing.
methodto_paint_ir(self) -> "dict[str, dict[int, 'SchPaintIR']]"Build Paint IR for every symbol part in deterministic library order.
methodto_schlib(self, filepath: 'Path', debug: 'bool' = False, *, sync_pin_text_data: 'bool' = False, minimal: 'bool' = False) -> 'None'Serialize SchLib back to file.
methodto_svg(self, output_dir: 'Path | None' = None, width: 'int' = 800, height: 'int' = 600, padding: 'int' = 50, background: 'str' = '#FFFFFF', options: "'SchPaintSvgOptions | None'" = None) -> 'dict[str, dict[int, str]]'Render selected parts and publish safe public SVG filenames.
methodto_tagged_json(self, filepath: 'Path | str | None' = None) -> 'dict[str, object]'Export the explicit versioned SchLib interoperability envelope.
class

AltiumSchLine

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

Line segment record.

Single straight line from location to corner.

Public code should use ``location_mils`` and ``corner_mils`` for geometry updates, plus ``line_width`` and ``line_style`` for stroke properties. The raw coord fields are internal serializer-facing storage.

Supports line styles (solid, dashed, dotted, dash-dot) via ``LineStyle`` and ``LineStyleExt`` fields.

Members (4)
KindSignatureSummary
propertyline_style -> 'LineStyle'
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse from a record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
class

AltiumSchMapDefiner

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

Pin-designator mapping entry.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, object]', font_manager: "'FontIDManager | None'" = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, object]'
class

AltiumSchMapDefinerList

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

Compatibility name for the managed ImplementationMap.

Members (6)
KindSignatureSummary
methodadd_map_definer(self, child: "'AltiumSchMapDefiner'") -> 'bool'
methodfind_map_definer(self, designator_interface: 'str') -> "'AltiumSchMapDefiner | None'"
methodparse_from_record(self, record: 'dict[str, object]', font_manager: "'FontIDManager | None'" = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodremove_map_definer(self, child: "'AltiumSchMapDefiner'") -> 'bool'
methodserialize_to_record(self) -> 'dict[str, object]'
class

AltiumSchNetLabel

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

Net label record.

Labels attached to wires/nets to assign net names.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: "'FontIDManager | None'" = None) -> 'None'Parse from a record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
class

AltiumSchNoErc

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

NO_ERC record.

Members (5)
KindSignatureSummary
propertyconnection_pairs_to_suppress -> 'str'
propertyerror_kind_set_to_suppress -> 'str'
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchNote

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

NOTE record.

Note/comment annotation with author and collapse state. Inherits from TEXT_FRAME.

Members (3)
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.
class

AltiumSchParameter

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

Altium component parameter record.

Key-value metadata attached to components.

Members (4)
KindSignatureSummary
propertylocation_mils -> 'SchPointMils'Public parameter location helper expressed in mils.
methodparse_from_record(self, record: '_RecordFields', font_manager: 'FontIDManager | None' = None) -> 'None'Parse parameter from record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> '_RecordFields'
class

AltiumSchParameterSet

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

Parameter-set directive with ordered child parameters.

Members (4)
KindSignatureSummary
methodis_differential_pair(self) -> 'bool'Test the first matching DifferentialPair child's untrimmed text.
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: "'FontIDManager | None'" = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchPieChart

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

PIECHART record.

A filled pie slice (arc with center filled).

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, object]', font_manager: 'FontIDManager | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, object]'
class

AltiumSchPin

from altium_monkey import AltiumSchPin
class AltiumSchPin(designator: 'str | None' = None, name: 'str | None' = None, x: 'int | None' = None, y: 'int | None' = None, *, orientation: 'int | PinOrientation' = 0, length: 'int' = 300, electrical_type: 'int | PinElectrical' = <PinElectrical.INPUT: 0>, pin_color: 'int' = 0, hidden: 'bool' = False, name_visible: 'bool' = True, designator_visible: 'bool' = True, owner_part_id: 'int | None' = None, owner_part_display_mode: 'int' = 0, name_font: 'str | None' = None, name_font_size: 'int | None' = None, name_font_bold: 'bool' = False, name_font_italic: 'bool' = False, name_rotation: 'PinTextRotation | int | None' = None, name_margin_mils: 'float | None' = None, name_color: 'int | None' = None, name_reference_to_component: 'bool' = False, designator_font: 'str | None' = None, designator_font_size: 'int | None' = None, designator_font_bold: 'bool' = False, designator_font_italic: 'bool' = False, designator_rotation: 'PinTextRotation | int | None' = None, designator_margin_mils: 'float | None' = None, designator_color: 'int | None' = None, designator_reference_to_component: 'bool' = False, description: 'str' = '', swap_id_pin: 'str' = '', swap_id_part: 'str' = '', swap_id_sequence: 'str' = '', default_value: 'str' = '', defined_functions: 'Sequence[str] | None' = None, selected_functions: 'Sequence[str] | None' = None, symbol_inner: 'IeeeSymbol | int' = <IeeeSymbol.NONE: 0>, symbol_outer: 'IeeeSymbol | int' = <IeeeSymbol.NONE: 0>, symbol_inner_edge: 'IeeeSymbol | int' = <IeeeSymbol.NONE: 0>, symbol_outer_edge: 'IeeeSymbol | int' = <IeeeSymbol.NONE: 0>) -> 'None'

PIN record.

Represents a component pin with electrical properties, position, and optional IEEE symbol decorations.

This class supports two construction modes:

1. **User-friendly constructor**: Pass designator, name, position, and optional styling parameters. pin = AltiumSchPin("1", "VCC", 0, 0) pin = AltiumSchPin("1", "VCC", 0, 0, name_font="Arial", name_margin_mils=150)

Members (19)
KindSignatureSummary
propertyconnection_point -> 'tuple[int, int]'Pin connection point (wire side / hot spot) as tuple.
propertydesignator_margin_mils -> 'float | None'Designator margin in mils, or None if using default.
propertyelectrical_name -> 'str'Human-readable electrical type name.
methodformat_info(self, indent: 'str' = ' ') -> 'str'Format pin information for display.
methodget_end_location(self) -> 'CoordPoint'Alias for get_hot_spot().
methodget_hot_spot(self) -> 'CoordPoint'Calculate the pin's electrical connection point (hot spot).
methodget_text_y_offset(self) -> 'float'Get the Y offset for designator text due to IEEE symbol bounds expansion.
propertylength -> 'int'Pin length in 10-mil units (internal Altium units).
propertylength_mils -> 'float'Pin length in mils.
propertyname_margin_mils -> 'float | None'Name margin in mils, or None if using default.
propertyneeds_custom_designator_pintextdata -> 'bool'Check if designator needs custom PinTextData entry.
propertyneeds_custom_name_pintextdata -> 'bool'Check if name needs custom PinTextData entry.
propertyneeds_pintextdata -> 'bool'Check if this pin needs any PinTextData entry (name or designator).
propertyorientation_name -> 'str'Human-readable orientation name.
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse PIN from record dictionary.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize PIN to record dictionary.
propertyx_mils -> 'float'X position in mils.
propertyy_mils -> 'float'Y position in mils.
class

AltiumSchPolygon

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

Polygon record.

Closed polygon graphic.

Public code should use ``points_mils`` for normal polygon mutation and inspection, plus ``line_width``, ``is_solid``, and ``transparent`` for stroke/fill state. Raw vertex coords remain internal serializer-facing storage.

Members (4)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse from a record.
propertypoints_mils -> 'list[SchPointMils]'Public polygon vertex list expressed in mils.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
class

AltiumSchPolyline

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

Polyline record.

Multi-segment graphical path with optional endpoint decorations.

Public code should normally mutate: - ``points_mils`` for vertex coordinates - ``line_width`` for stroke thickness - ``line_style`` for dash pattern - ``start_line_shape`` / ``end_line_shape`` for endpoint markers - ``line_shape_size`` for the native endpoint marker size state

``line_shape_size`` deliberately reuses the public ``LineWidth`` enum. That is a naming compromise, not a file-format coincidence: native Altium stores polyline endpoint marker size through the same four-step size model used for schematic line widths.

Members (5)
KindSignatureSummary
propertyline_style -> 'LineStyle'
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'Any | None' = None) -> 'None'Parse from a record.
propertypoints_mils -> 'list[SchPointMils]'Public polyline path points expressed in mils.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
class

AltiumSchPort

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

Port record.

Generic hierarchical port (connects hierarchical blocks).

TEXT FIELDS: - Name: Port name/label displayed inside the port body (e.g., "DATA_IN", "CLK_OUT") - Text: Cross-reference text (displayed when cross-reference mode is enabled)

When CrossReference is hidden (CrossReference=F), the Name field is rendered. When CrossReference is shown (CrossReference=T), the Text field is rendered.

Members (6)
KindSignatureSummary
propertydisplay_text -> 'str'Get the text to display inside the port.
propertyheight_mils -> 'float'Public port height helper expressed in mils.
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.
propertywidth_mils -> 'float'Public port width helper expressed in mils.
class

AltiumSchPowerPort

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

Power port record.

Power/ground symbols (VCC, GND, +5V, etc.).

PROPERTIES: Direct properties: - Style: power symbol style (0-10) - ShowNetName: bool - whether to display net name

Label-like properties: - Text: string - net name (e.g., "VCC", "GND") - FontId: int - font ID for text - Orientation: rotation by 90-degree steps (0-3) - Justification: text alignment (0-8) - IsMirrored: bool - text mirrored - OverrideDisplayString: string - override display text

Members (9)
KindSignatureSummary
propertyfont_id -> 'int'
methodname_font(self, fonts: 'FontIDManager') -> '_FontSpec | None'Resolve an established table font or the native horizontal default.
methodname_font_request(self) -> "tuple[Literal['system_horizontal', 'file_table', 'current_table'], int]"Keep native import-read success separate from current setter state.
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.
propertystyle -> 'PowerObjectStyle'Effective native drawing; unnamed imported bytes draw as a bar.
propertystyle_code -> 'int'Exact native byte, independent of its effective drawing.
propertystyle_is_known -> 'bool'
class

AltiumSchRectangle

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

Rectangle record.

Rectangle from location to corner with optional fill and stroke.

Public code should use ``location_mils``, ``corner_mils``, and ``bounds_mils`` for geometry updates. Use ``line_width``, ``line_style``, ``is_solid``, and ``transparent`` for stroke/fill state. The raw coord fields remain internal serializer-facing storage.

Members (5)
KindSignatureSummary
propertyline_style -> 'LineStyle'
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse from a record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
propertytransparent -> 'bool'
class

AltiumSchRoundedRectangle

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

Rounded rectangle record.

Rectangle with rounded corners.

Public code should use ``location_mils``, ``corner_mils``, and ``bounds_mils`` for geometry updates. Use ``corner_x_radius_mils`` and ``corner_y_radius_mils`` for rounded-corner updates, plus ``line_width`` and ``is_solid`` for stroke/fill state. The raw coord-style corner-radius fields remain internal serializer-facing storage.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse from a record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
class

AltiumSchSheet

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

Sheet properties record.

Root container for schematic. Contains font table, grid settings, template references, and all sheet metadata.

Complete sheet record implementation.

Members (11)
KindSignatureSummary
methodclear_template_references(self) -> 'None'Clear all template-related properties.
methodget_margin_mils(self) -> 'float'Get sheet margin in mils.
methodget_margin_units(self) -> 'float'Get sheet margin in internal schematic document units.
methodget_sheet_size_mils(self) -> 'tuple[float, float]'Get sheet dimensions in mils.
methodget_sheet_size_units(self) -> 'tuple[float, float]'Get sheet dimensions in internal schematic document units.
methodget_style_description(self) -> 'str'Get sheet style description for title block.
methodget_system_font(self) -> 'tuple[str, int]'Get the system font name and size from the font table.
propertyhot_spot_grid_size_mils -> 'float'Hot spot grid size in mils, combining base and fractional parts.
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchSheetEntry

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

Sheet entry record.

Port tab on hierarchical sheet symbol (connects to PORT in sub-sheet). Inherits from Altium's basic entry in native which provides: - Name, TextFontID, TextStyle, HarnessType, Side, DistanceFromTop

Members (5)
KindSignatureSummary
propertydisplay_name -> 'str'Get the name to display (name field takes precedence).
propertyis_harness_entry -> 'bool'Check if this entry is associated with a harness.
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Parse sheet entry from record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchSheetName

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

SHEET_NAME record.

Sheet name label on hierarchical sheet symbol. Inherits all behavior from LABEL.

Members (1)
KindSignatureSummary
propertyrecord_type -> 'SchRecordType'
class

AltiumSchSheetSymbol

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

Sheet symbol record.

Hierarchical sheet symbol (box representing sub-schematic). Container for sheet entries, sheet name, and filename.

Inheritance matches native: Altium's sheet symbol -> Altium's rectangular entry container -> Altium's rectangular group -> Altium's parametrized group -> Altium's graphical object

Members (14)
KindSignatureSummary
methodadd_entry(self, entry: 'object') -> 'None'Attach a sheet entry to this symbol.
methodclear_file_name(self) -> 'bool'Remove the current file-name label when present.
methodclear_sheet_name(self) -> 'bool'Remove the current sheet-name label when present.
methodget_entry(self, name: 'str') -> 'AltiumSchSheetEntry | None'Return the first sheet entry whose name matches ``name``.
propertyis_device_sheet -> 'bool'Check if this is a device sheet (rounded corners).
methodis_multichannel(self) -> 'bool'Check if this sheet symbol represents a multichannel (repeated) sheet.
methodmove_entry(self, entry_or_name: 'object | str', *, index: 'int') -> 'None'Reorder an attached sheet entry within this symbol.
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodremove_entry(self, entry: 'object') -> 'bool'Detach a sheet entry from this symbol.
methodremove_entry_by_name(self, name: 'str') -> 'bool'Remove the first entry whose name matches ``name`` case-insensitively.
methodserialize_to_record(self) -> 'dict[str, Any]'
methodset_file_name(self, label: 'object') -> 'None'Attach or replace the file-name label for this symbol.
methodset_sheet_name(self, label: 'object') -> 'None'Attach or replace the sheet-name label for this symbol.
class

AltiumSchSignalHarness

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

SIGNAL_HARNESS record.

Signal harness bundle between connectors. Inherits from BUS with thicker line width.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, object]', font_manager: 'object | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchTemplate

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

TEMPLATE record.

A reference to a schematic template file. Templates define standard drawing elements like borders and title blocks.

Members (3)
KindSignatureSummary
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'
class

AltiumSchTextFrame

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

Text frame/box record.

Multi-line text with border, word wrapping, and clipping.

Attributes: text: Text content (lines separated by ~1; ~1~1 = empty line) font_id: Font reference ID corner: Bottom-right corner coordinate alignment: Horizontal alignment (0=Left, 1=Center, 2=Right) word_wrap: Enable automatic word wrapping clip_to_rect: Clip text at frame boundaries show_border: Draw border rectangle is_solid: Fill background with area_color line_width: Border line width (LineWidth enum) text_margin: Margin from frame edges (internal units) text_margin_frac: Fractional part of margin text_color: Text color (Win32 BGR), None for default black

Members (4)
KindSignatureSummary
methodparse_from_record(self, record: '_RecordFields', font_manager: 'Any | None' = None) -> 'None'Parse text frame from record.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> '_RecordFields'
propertytext_margin_mils -> 'float'Text margin in mils, combining base and fractional parts.
class

AltiumSchWire

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

Wire/connection record.

Electrical connection between pins and nets.

Members (5)
KindSignatureSummary
methodadd_point(self, x_mils: 'float', y_mils: 'float') -> 'None'Add a point to the wire in mils.
methodparse_from_record(self, record: 'dict[str, Any]', font_manager: 'Any | None' = None) -> 'None'Parse from a record.
propertypoints_mils -> 'list[SchPointMils]'Public wire-like path points expressed in mils.
propertyrecord_type -> 'SchRecordType'
methodserialize_to_record(self) -> 'dict[str, Any]'Serialize to a record.
class

AltiumSymbol

from altium_monkey.altium_schlib import AltiumSymbol
class AltiumSymbol(name: 'str', *, original_name: 'str | None' = None) -> 'None'

Represents a single symbol in a SchLib.

New code should create symbols through ``AltiumSchLib.add_symbol(...)`` instead of constructing ``AltiumSymbol(...)`` directly. Direct construction is a low-level parser/authoring detail and should generally be reserved for ``altium_monkey`` internals and tightly scoped conversion code.

Objects are stored in a single authoritative collection. ``.objects`` and typed convenience properties (``.pins``, ``.graphic_primitives``, ``.rectangles``, etc.) return live read-only views. Use the symbol's explicit add/remove APIs to change membership.

Members (52)
KindSignatureSummary
methodadd_arc(self, x: 'int', y: 'int', radius: 'int', *, start_angle: 'float' = 0.0, end_angle: 'float' = 360.0, color: 'int' = 0, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, owner_part_id: 'int' = -1) -> 'object'Add an arc to this symbol.
methodadd_bezier(self, vertices: 'list[tuple[int, int]]', *, color: 'int' = 0, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, owner_part_id: 'int' = -1) -> 'object'Add a Bezier curve to this symbol.
methodadd_designator(self, text: 'str' = 'U?', x: 'int' = 0, y: 'int' = 0, *, color: 'int' = 0, font_id: 'int' = 1, owner_part_id: 'int' = -1) -> 'AltiumSchDesignator'Add a designator to this symbol.
methodadd_ellipse(self, x: 'int', y: 'int', radius_x: 'int', radius_y: 'int', *, color: 'int' = 0, area_color: 'int' = 16777215, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, is_solid: 'bool' = True, owner_part_id: 'int' = -1) -> 'object'Add an ellipse to this symbol.
methodadd_elliptical_arc(self, x: 'int', y: 'int', radius: 'int', secondary_radius: 'int', *, start_angle: 'float' = 0.0, end_angle: 'float' = 360.0, color: 'int' = 0, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, owner_part_id: 'int' = -1) -> 'object'Add an elliptical arc to this symbol.
methodadd_footprint(self, model_name: 'str', *, description: 'str' = '', is_current: 'bool' = True, library_name: 'str' = '') -> 'AltiumSchImplementation'Add a PCB footprint implementation to this symbol.
methodadd_image(self, filename: 'str', image_data: 'bytes', x: 'int', y: 'int', corner_x: 'int', corner_y: 'int', *, keep_aspect: 'bool' = True, embedded: 'bool' = True, owner_part_id: 'int' = -1) -> 'object'Add an embedded image to this symbol.
methodadd_implementation(self, impl_record: 'dict[str, object] | AltiumSchImplementation', children: 'list[dict[str, object] | Any] | None' = None) -> 'AltiumSchImplementation'Add an implementation record with optional child records.
methodadd_label(self, text: 'str', x: 'int', y: 'int', *, color: 'int' = 0, font_id: 'int' = 1, orientation: "'TextOrientation'" = <TextOrientation.DEGREES_0: 0>, owner_part_id: 'int' = -1) -> 'AltiumSchLabel'Add a text label to this symbol.
methodadd_line(self, x1: 'int', y1: 'int', x2: 'int', y2: 'int', *, color: 'int' = 0, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, owner_part_id: 'int' = -1) -> 'object'Add a line to this symbol.
methodadd_object(self, obj: 'Any') -> 'Any'Add an object to this symbol and bind document-scoped context if present.
methodadd_objects(self, objects: 'Iterable[Any]') -> 'list[Any]'Add objects to this symbol in order, as add_object would one at a time.
methodadd_parameter(self, name: 'str', text: 'str' = '', *, x: 'int' = 0, y: 'int' = 0, is_hidden: 'bool' = False, font_id: 'int' = 1, read_only: 'bool' = False, index_in_sheet: 'int | None' = None, owner_part_id: 'int' = -1, owner_index: 'int | None' = None, unique_id: 'str' = '') -> 'AltiumSchParameter'Add a parameter to this symbol.
methodadd_pin(self, pin: 'AltiumSchPin') -> 'AltiumSchPin'Add a pin to this symbol.
methodadd_polygon(self, vertices: 'list[tuple[int, int]]', *, color: 'int' = 0, area_color: 'int' = 16777215, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, is_solid: 'bool' = True, owner_part_id: 'int' = -1) -> 'object'Add a polygon to this symbol.
methodadd_polyline(self, vertices: 'list[tuple[int, int]]', *, color: 'int' = 0, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, owner_part_id: 'int' = -1) -> 'object'Add a polyline to this symbol.
methodadd_record(self, record: 'dict[str, Any]', font_manager: 'FontIDManager | None' = None) -> 'None'Add a parsed record to the symbol.
methodadd_rectangle(self, x1: 'int', y1: 'int', x2: 'int', y2: 'int', *, color: 'int' = 0, area_color: 'int' = 16777215, line_width: 'LineWidth' = <LineWidth.SMALL: 1>, is_solid: 'bool' = True, transparent: 'bool' = False, owner_part_id: 'int' = -1) -> 'object'Add a rectangle to this symbol.
methodadd_rounded_rectangle(self, x1: 'int', y1: 'int', x2: 'int', y2: 'int', *, corner_x_radius: 'int' = 50, corner_y_radius: 'int' = 50, color: 'int' = 0, area_color: 'int' = 16777215, line_width: 'LineWidth' = <LineWidth.SMALL: 1>, is_solid: 'bool' = True, owner_part_id: 'int' = -1) -> 'object'Add a rounded rectangle to this symbol.
propertyarcs -> 'ObjectCollection'
propertybeziers -> 'ObjectCollection'
propertydesignators -> 'ObjectCollection'
propertyellipses -> 'ObjectCollection'
methodget_all_records(self) -> 'list'Get all parsed record objects (excluding raw records and pins).
methodget_bounds(self, part_id: 'int | None' = None, display_mode: 'int | None' = None, *, _eligible_source_ids: 'Collection[int] | None' = None, _parent_by_source_id: 'Mapping[int, object | None] | None' = None, _geometry_ctx: '_PaintSourceContext | None' = None) -> 'tuple[int, int, int, int] | None'Calculate the bounding box for this symbol in internal units (10-mil).
methodget_summary(self) -> 'dict[str, Any]'Get summary statistics for this symbol.
propertygraphic_primitives -> 'ObjectCollection'All graphical primitive objects (lines, rectangles, arcs, etc.).
propertyieee_symbols -> 'ObjectCollection'
propertyimages -> 'ObjectCollection'
propertyimpl_params -> 'ObjectCollection'
propertyimplementation_lists -> 'ObjectCollection'
propertyimplementations -> 'ObjectCollection'
propertylabels -> 'ObjectCollection'
propertylines -> 'ObjectCollection'
propertymap_definer_lists -> 'ObjectCollection'
propertymap_definers -> 'ObjectCollection'
propertyname -> 'str'The storage key, kept in the instance dictionary as a plain attribute
propertyobjects -> 'ObjectCollectionView'Return a live read-only view of all symbol objects.
propertyoriginal_name -> 'str | None'The library reference, kept and reported as ``name`` is.
propertyparameters -> 'ObjectCollection'
propertypie_charts -> 'ObjectCollection'
propertypins -> 'ObjectCollection'
propertypolygons -> 'ObjectCollection'
propertypolylines -> 'ObjectCollection'
propertyrectangles -> 'ObjectCollection'
methodremove_object(self, obj: 'object') -> 'bool'Remove an object subtree and release its managed identity locks.
methodset_description(self, description: 'str') -> 'AltiumSymbol'Set the symbol/component description.
methodset_part_count(self, count: 'int') -> 'AltiumSymbol'Set the logical schematic part count.
methodsync_graphics_to_raw_records(self) -> 'int'Sync OOP graphical/text records back to raw_records.
methodsync_pins_to_raw_records(self) -> 'int'Sync OOP PIN objects back to raw_records for serialization.
methodsynthesize_raw_records(self) -> 'list[dict[str, object]]'Generate raw_records from OOP objects in self.objects.
propertytext_frames -> 'ObjectCollection'
class

ExportStepOutput

from altium_monkey.altium_outjob import ExportStepOutput
class ExportStepOutput(document_path: 'str' = '', output_name: 'str' = 'Export STEP') -> 'None'

Typed STEP export output definition.

Members (1)
KindSignatureSummary
methodto_spec(self) -> 'OutJobOutputSpec'
class

PreparedSchematicGraphics

from altium_monkey.altium_schematic_graphics import PreparedSchematicGraphics
class PreparedSchematicGraphics() -> 'None'

Live Scene-to-authored-source proof, with checked root electrical context.

The source basis does not certify every asserted System interconnection, current CAD freshness or permission to edit.

Members (7)
KindSignatureSummary
propertybindings_json -> 'bytes'Return checked bindings for every actual scene group.
propertyconnection_points_mil -> 'Mapping[str, tuple[float, float]]'Actual source hotspots in right/up mils, keyed by exact group occurrence.
propertydiagnostics -> 'tuple[SchPaintDiagnostic, ...]'Drawing diagnostics, beside the Paint IR.
methodoccurrences_for_net(self, target: 'dto.NetOccurrence') -> 'dto.PaintOccurrencesForNetC0'Find this page's occurrences through the checked root net query.
propertypaint_ir_json -> 'bytes'Return the exact serialized scene named by the binding digest.
methodselect_occurrence(self, occurrence_id: 'str') -> 'dto.PaintOccurrenceSelectionC0'Select the direct retained sources of one actual scene occurrence.
propertysvg -> 'bytes'Return SVG from the same scene, with occurrence metadata enabled.
class

SchematicGraphicsOptions

from altium_monkey.altium_schematic_graphics import SchematicGraphicsOptions
class SchematicGraphicsOptions(current_date: 'str | None' = None, current_time: 'str | None' = None, modified_date: 'str | None' = None, document_path: 'str | None' = None, junction_colors: 'SchJunctionColors | None' = None, wrap_components: 'bool' = False) -> 'None'

Caller-set drawing inputs for one page.

Each None keeps Altium's own rule: the system clock for ``CurrentDate`` and ``CurrentTime``, the source file's write date for ``ModifiedDate``, the page's source path for the displayed document path (``=DocumentFullPathAndName`` and the title-block File field), and the standalone automatic junction palette (navy). ``wrap_components`` wraps each component's drawing in one SVG group that names its source; the Paint IR is unchanged.

class

SchematicGraphicsUnavailable

from altium_monkey.altium_schematic_graphics import SchematicGraphicsUnavailable
class SchematicGraphicsUnavailable

A specifically admitted unsupported display capability prevents this scene.

class

SchematicPrintOutput

from altium_monkey.altium_outjob import SchematicPrintOutput
class SchematicPrintOutput(document_path: 'str' = '', output_name: 'str' = 'Schematic Prints', page_options: 'str' = 'Record=PageOptions|CenterHorizontal=True|CenterVertical=True|PrintScale=1.00|XCorrection=1.00|YCorrection=1.00|PrintKind=0|BorderSize=5000000|LeftOffset=0|BottomOffset=0|Orientation=2|PaperLength=1000|PaperWidth=1000|Scale=100|PaperSource=7|PrintQuality=-3|MediaType=1|DitherType=10|PrintScaleMode=0|PaperKind=Letter|PaperIndex=1') -> 'None'

Typed schematic print output definition.

Members (1)
KindSignatureSummary
methodto_spec(self) -> 'OutJobOutputSpec'
class

SchematicTextRecord

from altium_monkey.altium_schematic_text import SchematicTextRecord
class SchematicTextRecord(kind: "Literal['note', 'text_frame', 'label']", text: 'str', position_mils: 'tuple[float, float]', corner_mils: 'tuple[float, float] | None', unique_id: 'str | None', author: 'str | None', owner_index: 'int | None') -> 'None'

Authored text/box coordinates in mils, without rendered or electrical meaning.

owner_index is the existing parsed native source index, not template proof or a governed model reference. A missing/unparsable stored value may normalize to zero in the reader. A Note's author preserves its string, including empty.

class

SchFontSpec

from altium_monkey import SchFontSpec
class SchFontSpec(name: 'str', size: 'int', bold: 'bool' = False, italic: 'bool' = False, underline: 'bool' = False, strikeout: 'bool' = False) -> 'None'

Public schematic font specification.

This boundary type lets high-level object factories describe text styling without exposing document font-table details. The document resolves the specification to a concrete `font_id` when the object is added.

class

SchPointMils

from altium_monkey import SchPointMils
class SchPointMils(x_mils: 'float', y_mils: 'float') -> 'None'

Public schematic point helper expressed in mils.

This is the preferred public coordinate boundary type for schematic mutation/factory APIs. It keeps the public contract in mils while still leaving room for explicit `from_mm(...)` construction later.

Members (6)
KindSignatureSummary
classmethodfrom_mils(cls, x_mils: 'float', y_mils: 'float') -> 'SchPointMils'Construct a public point directly from mil coordinates.
classmethodfrom_mm(cls, x_mm: 'float', y_mm: 'float') -> 'SchPointMils'Construct a public point from millimeter coordinates.
methodto_coord_point(self) -> 'CoordPoint'Convert the public point helper to an internal `CoordPoint`.
methodtranslated(self, dx_mils: 'float', dy_mils: 'float') -> 'SchPointMils'Return a copy translated by the given mil offsets.
propertyx_mm -> 'float'X coordinate converted to millimeters.
propertyy_mm -> 'float'Y coordinate converted to millimeters.
class

SchRectMils

from altium_monkey import SchRectMils
class SchRectMils(x1_mils: 'float', y1_mils: 'float', x2_mils: 'float', y2_mils: 'float') -> 'None'

Public schematic rectangle helper expressed in mils.

The rectangle stores two opposite corners and normalizes them on demand. This makes it suitable for user-facing note/text-frame/style APIs where the caller should not need to care about the internal corner ordering.

Members (8)
KindSignatureSummary
classmethodfrom_corners_mils(cls, x1_mils: 'float', y1_mils: 'float', x2_mils: 'float', y2_mils: 'float') -> 'SchRectMils'Construct a public rectangle from mil-space corner coordinates.
classmethodfrom_corners_mm(cls, x1_mm: 'float', y1_mm: 'float', x2_mm: 'float', y2_mm: 'float') -> 'SchRectMils'Construct a public rectangle from millimeter corner coordinates.
classmethodfrom_points(cls, p1: 'SchPointMils', p2: 'SchPointMils') -> 'SchRectMils'Construct a rectangle from two public point helpers.
propertyheight_mils -> 'float'Rectangle height in mils.
methodnormalized(self) -> 'SchRectMils'Return a copy whose corners are ordered lower-left to upper-right.
methodto_coord_points(self) -> 'tuple[CoordPoint, CoordPoint]'Convert the rectangle to normalized internal `CoordPoint` corners.
methodtranslated(self, dx_mils: 'float', dy_mils: 'float') -> 'SchRectMils'Return a copy translated by the given mil offsets.
propertywidth_mils -> 'float'Rectangle width in mils.
class

SchSymbolAssetDetails

from altium_monkey import SchSymbolAssetDetails
class SchSymbolAssetDetails(display_name: 'str' = '', safe_name: 'str' = '', component_count: 'int' = 0, component_designators: 'tuple[str, ...]' = (), selected_designator: 'str' = '', lib_reference: 'str' = '', design_item_id: 'str' = '', original_name: 'str' = '', description: 'str' = '', pin_count: 'int' = 0, object_count: 'int' = 0, part_count: 'int | None' = None) -> 'None'

Typed details for a schematic symbol extractable asset.

constant

ALTIUM_PORTABLE_FONT_REPLACEMENTS

from altium_monkey import ALTIUM_PORTABLE_FONT_REPLACEMENTS
ALTIUM_PORTABLE_FONT_REPLACEMENTS: tuple
enum

BusTextStyle

from altium_monkey import BusTextStyle
enum BusTextStyle

Bus/harness text display style.

Members (2)
KindSignatureSummary
memberFULL= 0
memberPREFIX= 1
enum

DocumentBorderStyle

from altium_monkey import DocumentBorderStyle
enum DocumentBorderStyle

Title block style enum.

Stored values: - 0: Standard Altium title block - 1: ANSI Y14.1 title block

Note: Despite the enum name, this controls title block style, not border on/off. Border visibility is controlled by the separate 'border_on' property.

Members (2)
KindSignatureSummary
memberSTANDARD= 0
memberANSI= 1
function

embedded_asset_schema_id

from altium_monkey import embedded_asset_schema_id
def embedded_asset_schema_id() -> 'str'

Return the current embedded asset inventory JSON schema id.

function

extractable_asset_schema_id

from altium_monkey import extractable_asset_schema_id
def extractable_asset_schema_id() -> 'str'

Return the current extractable asset inventory JSON schema id.

enum

IeeeSymbol

from altium_monkey import IeeeSymbol
enum IeeeSymbol

IEEE symbol types for pin decorations.

Used for symbol_inner, symbol_outer, symbol_inner_edge, symbol_outer_edge. These decorations indicate signal characteristics (clock, active low, etc.).

Members (37)
KindSignatureSummary
memberNONE= 0
memberDOT= 1
memberRIGHT_LEFT_SIGNAL_FLOW= 2
memberCLOCK= 3
memberACTIVE_LOW_INPUT= 4
memberANALOG_SIGNAL_IN= 5
memberNOT_LOGIC_CONNECTION= 6
memberSHIFT_RIGHT= 7
memberPOSTPONED_OUTPUT= 8
memberOPEN_COLLECTOR= 9
memberHIZ= 10
memberHIGH_CURRENT= 11
memberPULSE= 12
memberSCHMITT= 13
memberDELAY= 14
memberGROUP_LINE= 15
memberGROUP_BIN= 16
memberACTIVE_LOW_OUTPUT= 17
memberPI_SYMBOL= 18
memberGREATER_EQUAL= 19
memberLESS_EQUAL= 20
memberSIGMA= 21
memberOPEN_COLLECTOR_PULL_UP= 22
memberOPEN_EMITTER= 23
memberOPEN_EMITTER_PULL_UP= 24
memberDIGITAL_SIGNAL_IN= 25
memberAND= 26
memberINVERTER= 27
memberOR= 28
memberXOR= 29
memberSHIFT_LEFT= 30
memberINPUT_OUTPUT= 31
memberOPEN_CIRCUIT_OUTPUT= 32
memberLEFT_RIGHT_SIGNAL_FLOW= 33
memberBIDIRECTIONAL_SIGNAL_FLOW= 34
memberINTERNAL_PULL_UP= 35
memberINTERNAL_PULL_DOWN= 36
function

make_sch_arc

from altium_monkey import make_sch_arc
def make_sch_arc(*, center_mils: 'SchPointMils', radius_mils: 'float', start_angle_degrees: 'float' = 0.0, end_angle_degrees: 'float' = 90.0, color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALL: 1>) -> 'AltiumSchArc'

Construct a detached circular schematic arc.

Args: center_mils: Arc center point in mils. radius_mils: Arc radius in mils. Must be greater than zero. start_angle_degrees: Arc start angle in degrees. end_angle_degrees: Arc end angle in degrees. color: Optional arc stroke color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. line_width: Arc stroke thickness enum. Defaults to ``LineWidth.SMALL`` to match Altium's native new-arc default.

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

function

make_sch_bezier

from altium_monkey import make_sch_bezier
def make_sch_bezier(*, points_mils: 'list[SchPointMils]', color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALL: 1>) -> 'AltiumSchBezier'

Construct a detached schematic bezier curve.

Args: points_mils: Ordered cubic bezier control points in mils. Native schematic beziers use ``4 + 3n`` points: four points for the first segment, then three more for each connected segment. color: Optional bezier stroke color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. line_width: Bezier stroke thickness enum. Defaults to ``LineWidth.SMALL`` to match Altium's native new-bezier default.

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

Notes: Native V5 bezier serialization does not carry a line-style field, so the public factory intentionally omits any ``line_style`` parameter.

function

make_sch_blanket

from altium_monkey import make_sch_blanket
def make_sch_blanket(*, points_mils: 'list[SchPointMils]', color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, line_style: 'LineStyle' = <LineStyle.DASHED: 1>, fill_background: 'bool' = False, transparent_fill: 'bool' = True, collapsed: 'bool' = False) -> 'AltiumSchBlanket'

Construct a detached schematic blanket directive.

Args: points_mils: Ordered blanket polygon vertices in mils. At least three points are required. color: Optional blanket border color helper. ``None`` clears the persisted border-color field. fill_color: Optional blanket fill color helper. ``None`` clears the persisted area-color field. line_width: Blanket border thickness enum. Defaults to ``LineWidth.SMALLEST`` to match Altium's native new-blanket default. line_style: Blanket border dash pattern enum. Defaults to ``LineStyle.DASHED`` to match Altium's native new-blanket default. fill_background: Session/rendering compatibility control. V5 blanket records do not persist this value. transparent_fill: Session/rendering compatibility control. V5 blanket records do not persist this value. collapsed: Whether the blanket starts in its collapsed display state.

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

function

make_sch_bus

from altium_monkey import make_sch_bus
def make_sch_bus(*, points_mils: 'list[SchPointMils]', color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.MEDIUM: 2>) -> 'AltiumSchBus'

Construct a detached schematic bus path.

Args: points_mils: Ordered bus path points in mils. At least two points are required. color: Optional bus color helper. ``None`` clears the persisted bus color field. line_width: Bus line thickness enum. The public ``MEDIUM`` default is an authoring API override of the low-level managed ``SMALL`` default.

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

function

make_sch_bus_entry

from altium_monkey import make_sch_bus_entry
def make_sch_bus_entry(*, start_mils: 'SchPointMils', end_mils: 'SchPointMils', color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>) -> 'AltiumSchBusEntry'

Construct a detached schematic bus entry segment.

Args: start_mils: Start point in mils. end_mils: End point in mils. color: Optional bus-entry color helper. ``None`` clears the persisted bus-entry color field. line_width: Bus-entry line thickness enum. The public ``SMALLEST`` default is an authoring API override of the low-level managed ``SMALL`` default.

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

function

make_sch_ellipse

from altium_monkey import make_sch_ellipse
def make_sch_ellipse(*, center_mils: 'SchPointMils', radius_mils: 'float', secondary_radius_mils: 'float', color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, fill_background: 'bool' = True) -> 'AltiumSchEllipse'

Construct a detached schematic ellipse or full ellipse outline.

Args: center_mils: Ellipse center point in mils. radius_mils: Primary ellipse radius in mils. Must be greater than zero. secondary_radius_mils: Secondary ellipse radius in mils. Must be greater than zero. color: Optional ellipse stroke color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. fill_color: Optional fill color helper. ``None`` omits the persisted area-color field, whose V5 reopen semantic is black. line_width: Ellipse stroke thickness enum. Defaults to ``LineWidth.SMALLEST`` to match Altium's native new-ellipse default. fill_background: Whether the ellipse is saved with the native solid fill flag enabled.

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

function

make_sch_elliptical_arc

from altium_monkey import make_sch_elliptical_arc
def make_sch_elliptical_arc(*, center_mils: 'SchPointMils', radius_mils: 'float', secondary_radius_mils: 'float', start_angle_degrees: 'float' = 0.0, end_angle_degrees: 'float' = 90.0, color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALL: 1>) -> 'AltiumSchEllipticalArc'

Construct a detached elliptical schematic arc.

Args: center_mils: Elliptical arc center point in mils. radius_mils: Primary ellipse radius in mils. Must be greater than zero. secondary_radius_mils: Secondary ellipse radius in mils. Must be greater than zero. start_angle_degrees: Arc start angle in degrees. end_angle_degrees: Arc end angle in degrees. color: Optional stroke color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. line_width: Stroke thickness enum. Defaults to ``LineWidth.SMALL`` to match Altium's native new-arc default.

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

function

make_sch_embedded_image

from altium_monkey import make_sch_embedded_image
def make_sch_embedded_image(*, bounds_mils: 'SchRectMils', source_path: 'str | Path', keep_aspect: 'bool' = True, filename: 'str | None' = None, orientation: 'Rotation90' = <Rotation90.DEG_0: 0>, draw_border: 'bool' = False, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, border_color: 'ColorValue | None' = None) -> 'AltiumSchImage'

Construct a detached schematic embedded-image object.

Args: bounds_mils: Absolute image rectangle in mils. source_path: Path to the source image file to embed in the document. keep_aspect: Whether the image should preserve its aspect ratio. filename: Optional logical filename stored in the SchDoc storage stream. Defaults to the source file name. orientation: Image rotation in 90-degree increments. draw_border: Whether the image border is rendered. line_width: Border thickness enum when ``draw_border`` is enabled. border_color: Optional image border color helper. ``None`` leaves the native default border color behavior.

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

function

make_sch_file_name

from altium_monkey import make_sch_file_name
def make_sch_file_name(*, text: 'str', location_mils: 'SchPointMils', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=True, underline=False, strikeout=False), color: 'ColorValue | None' = None, orientation: 'TextOrientation' = <TextOrientation.DEGREES_0: 0>, justification: 'TextJustification' = <TextJustification.BOTTOM_LEFT: 0>, mirrored: 'bool' = False) -> 'AltiumSchFileName'

Construct a detached file-name label owned by a sheet symbol.

Args: text: Child schematic filename text. location_mils: Label anchor location in mils. font: Public font description resolved when the label is added to a document or library. color: Optional text color helper. orientation: Text rotation in 90-degree increments. justification: Text anchor justification relative to ``location_mils``. mirrored: Whether the label is mirrored.

Returns: A detached ``AltiumSchFileName`` ready to be attached through ``sheet_symbol.set_file_name(...)``.

function

make_sch_full_circle

from altium_monkey import make_sch_full_circle
def make_sch_full_circle(*, center_mils: 'SchPointMils', radius_mils: 'float', color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALL: 1>) -> 'AltiumSchArc'

Construct a detached full circular outline using the schematic arc record.

Args: center_mils: Circle center point in mils. radius_mils: Circle radius in mils. Must be greater than zero. color: Optional circle stroke color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. line_width: Circle stroke thickness enum. Defaults to ``LineWidth.SMALL`` to match Altium's native new-arc default.

Returns: A detached ``AltiumSchArc`` configured as a 360-degree circle and ready to be added with ``schdoc.add_object(...)``.

function

make_sch_harness_connector

from altium_monkey import make_sch_harness_connector
def make_sch_harness_connector(*, bounds_mils: 'SchRectMils', side: 'SchHarnessConnectorSide' = <SchHarnessConnectorSide.RIGHT: 1>, primary_position_mils: 'float | None' = None, border_width: 'LineWidth' = <LineWidth.SMALL: 1>, border_color: 'ColorValue | None' = ColorValue(_win32=13213327), fill_color: 'ColorValue | None' = ColorValue(_win32=16511725)) -> 'AltiumSchHarnessConnector'

Construct a detached schematic harness connector.

Args: bounds_mils: Connector body rectangle in mils. side: Native harness-connector side enum. primary_position_mils: Brace connection position measured along the connector edge in mils. For left/right connectors this is the distance from the top. For top/bottom connectors it is the distance from the left. border_width: Connector border thickness enum. border_color: Optional connector border color helper. fill_color: Optional connector fill color helper.

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

function

make_sch_harness_entry

from altium_monkey import make_sch_harness_entry
def make_sch_harness_entry(*, name: 'str', distance_from_top_mils: 'float', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), border_color: 'ColorValue | None' = ColorValue(_win32=7354880), fill_color: 'ColorValue | None' = ColorValue(_win32=8454143), text_color: 'ColorValue | None' = None, text_style: 'BusTextStyle' = <BusTextStyle.FULL: 0>, harness_type: 'str' = '', side: 'SchHarnessConnectorSide | None' = None) -> 'AltiumSchHarnessEntry'

Construct a detached schematic harness entry.

Args: name: Entry display name. distance_from_top_mils: Entry offset along the connector edge in mils. font: Public font description resolved when the entry is added to a document or library. border_color: Optional entry border color helper. fill_color: Optional entry fill color helper. text_color: Optional entry text color helper. text_style: Native bus/harness text display style enum. harness_type: Optional native harness-type association string. side: Optional explicit entry side enum. When omitted, the native entry-side default remains in place.

Returns: A detached ``AltiumSchHarnessEntry`` ready to be attached through ``connector.add_entry(...)``.

function

make_sch_harness_type

from altium_monkey import make_sch_harness_type
def make_sch_harness_type(*, text: 'str', location_mils: 'SchPointMils', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), color: 'ColorValue | None' = None, justification: 'TextJustification' = <TextJustification.CENTER_CENTER: 4>, orientation: 'TextOrientation' = <TextOrientation.DEGREES_0: 0>) -> 'AltiumSchHarnessType'

Construct a detached schematic harness type label.

Args: text: Type-label text. location_mils: Absolute label anchor location in mils. font: Public font description resolved when the label is added to a document or library. color: Optional text color helper. justification: Native text justification enum. orientation: Native text orientation enum.

Returns: A detached ``AltiumSchHarnessType`` ready to be attached through ``connector.set_type_label(...)``.

function

make_sch_junction

from altium_monkey import make_sch_junction
def make_sch_junction(*, location_mils: 'SchPointMils', color: 'ColorValue | None' = None) -> 'AltiumSchJunction'

Construct a detached schematic wire junction.

Args: location_mils: Absolute junction center in mils. color: Optional junction color helper. ``None`` clears the persisted junction color field.

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

function

make_sch_line

from altium_monkey import make_sch_line
def make_sch_line(*, start_mils: 'SchPointMils', end_mils: 'SchPointMils', color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALL: 1>, line_style: 'LineStyle' = <LineStyle.SOLID: 0>) -> 'AltiumSchLine'

Construct a detached schematic line segment.

Args: start_mils: Line start point in mils. end_mils: Line end point in mils. color: Optional line color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. line_width: Line stroke thickness enum. Defaults to ``LineWidth.SMALL`` to match Altium's native new-line default. line_style: Line dash pattern enum. Defaults to ``LineStyle.SOLID`` to match Altium's native new-line default.

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

function

make_sch_net_label

from altium_monkey import make_sch_net_label
def make_sch_net_label(*, location_mils: 'SchPointMils', text: 'str', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), color: 'ColorValue | None' = None, orientation: 'TextOrientation' = <TextOrientation.DEGREES_0: 0>, justification: 'TextJustification' = <TextJustification.BOTTOM_LEFT: 0>, mirrored: 'bool' = False) -> 'AltiumSchNetLabel'

Construct a detached schematic net label using public-facing parameters.

Args: location_mils: Net-label anchor location in mils. text: Single-line net name text. font: Public font description resolved when the net label is added to a document or library. color: Optional text color helper. ``None`` clears the persisted net-label color field. orientation: Net-label rotation in 90-degree increments. justification: Text anchor justification relative to ``location_mils``. mirrored: Whether the net label is mirrored.

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

function

make_sch_no_erc

from altium_monkey import make_sch_no_erc
def make_sch_no_erc(*, location_mils: 'SchPointMils', symbol: 'NoErcSymbol' = <NoErcSymbol.CROSS_THIN: 0>, orientation: 'Rotation90' = <Rotation90.DEG_90: 1>, color: 'ColorValue' = ColorValue(_win32=255), is_active: 'bool' = True, suppress_all: 'bool' = True, error_kind_set_to_suppress: 'str' = '', connection_pairs_to_suppress: 'str' = '') -> 'AltiumSchNoErc'

Construct a detached generic schematic No ERC directive.

Args: location_mils: Absolute directive origin in mils. symbol: Native No ERC marker style enum. orientation: Native 90-degree orientation enum. Defaults to ``Rotation90.DEG_90`` to match Altium's new-object default. color: Directive color helper. Defaults to Altium's native directive red. is_active: Whether the directive is active. suppress_all: Whether the directive suppresses all supported ERC classes. When ``False``, the two optional suppression payload strings are written through to the record. error_kind_set_to_suppress: Advanced native suppression payload for partial No ERC directives. The empty public default is an explicit factory override; low-level managed objects initialize the full suppressible error-kind set. connection_pairs_to_suppress: Advanced native suppression payload for selective connection-pair suppression. The empty public default is an explicit factory override of the managed all-pairs state.

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

function

make_sch_note

from altium_monkey import make_sch_note
def make_sch_note(*, bounds_mils: 'SchRectMils', text: 'str', author: 'str' = 'Author', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), border_color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = None, text_color: 'ColorValue | None' = None, alignment: 'SchHorizontalAlign' = <SchHorizontalAlign.LEFT: 1>, word_wrap: 'bool' = True, clip_to_rect: 'bool' = True, text_margin_mils: 'float' = 5.0, collapsed: 'bool' = False) -> 'AltiumSchNote'

Construct a detached schematic note using public-facing note parameters.

Args: bounds_mils: Absolute note rectangle in mils. text: Note text. Ordinary Python newlines are accepted and are encoded to Altium's multiline text format on save. author: Author string stored on the note object. font: Public font description resolved when the note is added to a document or library. border_color: Optional note border color helper. ``None`` clears the persisted border-color field. fill_color: Optional note fill color helper. ``None`` clears the persisted fill-color field. text_color: Optional note text color helper. ``None`` clears the persisted text-color field. alignment: Horizontal text alignment inside the note. word_wrap: Whether note text wraps to the note width. clip_to_rect: Whether note text is clipped to the note bounds. text_margin_mils: Non-negative note text margin in mils. collapsed: Whether the note is saved in the collapsed native note form.

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

Notes: This factory is the shared construction path for detached schematic note objects. The note is later added to a document with ``add_object(...)``, which resolves document-bound resources such as font IDs from ``font``.

function

make_sch_off_sheet_connector

from altium_monkey import make_sch_off_sheet_connector
def make_sch_off_sheet_connector(*, location_mils: 'SchPointMils', text: 'str', style: 'OffSheetConnectorStyle' = <OffSheetConnectorStyle.LEFT: 0>, font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), color: 'ColorValue | None' = None, orientation: 'TextOrientation' = <TextOrientation.DEGREES_0: 0>, show_net_name: 'bool' = True) -> 'AltiumSchCrossSheetConnector'

Construct a detached schematic off-sheet connector.

Args: location_mils: Off-sheet connector anchor location in mils. text: Connector name shown next to the symbol. style: Built-in off-sheet connector direction enum. font: Public font description resolved when the connector is added to a document or library. color: Optional symbol/text color helper. ``None`` clears the persisted off-sheet connector color field. orientation: Connector orientation in 90-degree increments. show_net_name: Whether the connector name is shown.

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

Notes: This public surface targets Altium's native built-in left/right off-sheet connector styles.

function

make_sch_parameter

from altium_monkey import make_sch_parameter
def make_sch_parameter(*, location_mils: 'SchPointMils', name: 'str', text: 'str', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), color: 'ColorValue | None' = None, orientation: 'TextOrientation' = <TextOrientation.DEGREES_0: 0>, justification: 'TextJustification' = <TextJustification.BOTTOM_LEFT: 0>, show_name: 'bool' = False, hidden: 'bool' = False) -> 'AltiumSchParameter'

Construct a detached schematic parameter record.

Args: location_mils: Parameter anchor location in mils. name: Parameter name string. text: Parameter value string. font: Public font description resolved when the parameter is added to a document or library. color: Optional text color helper. ``None`` clears the persisted text color field. orientation: Text rotation in 90-degree increments. justification: Text anchor justification relative to ``location_mils``. show_name: Whether the rendered text includes the parameter name. hidden: Whether the parameter is hidden.

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

function

make_sch_parameter_set

from altium_monkey import make_sch_parameter_set
def make_sch_parameter_set(*, location_mils: 'SchPointMils', name: 'str' = 'Parameter Set', orientation: 'Rotation90' = <Rotation90.DEG_0: 0>, style: 'ParameterSetStyle' = <ParameterSetStyle.LARGE: 0>, color: 'ColorValue' = ColorValue(_win32=255)) -> 'AltiumSchParameterSet'

Construct a detached schematic parameter-set directive container.

Args: location_mils: Absolute directive origin in mils. name: Visible parameter-set label string. orientation: Native 90-degree orientation enum. style: Native parameter-set display style enum. color: Directive color helper. Defaults to Altium's native directive red.

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

Notes: Parameter sets can own child parameter records. Add those child parameters separately with ``schdoc.add_object(parameter, owner=set)``. Differential-pair directives are a parameter-set variant: add a hidden child parameter with ``name="DifferentialPair"`` and ``text="True"``.

function

make_sch_pin

from altium_monkey import make_sch_pin
def make_sch_pin(*, designator: 'str', location_mils: 'SchPointMils', name: 'str' = '', orientation: 'Rotation90' = <Rotation90.DEG_0: 0>, length_mils: 'float' = 300.0, electrical_type: 'PinElectrical' = <PinElectrical.INPUT: 0>, pin_color: 'ColorValue' = ColorValue(_win32=0), hidden: 'bool' = False, name_visible: 'bool' = True, designator_visible: 'bool' = True, owner_part_id: 'int | None' = None, owner_part_display_mode: 'int' = 0, name_font: 'SchFontSpec | None' = None, name_rotation: 'PinTextRotation | None' = None, name_margin_mils: 'float | None' = None, name_color: 'ColorValue | None' = None, name_reference_to_component: 'bool' = False, designator_font: 'SchFontSpec | None' = None, designator_rotation: 'PinTextRotation | None' = None, designator_margin_mils: 'float | None' = None, designator_color: 'ColorValue | None' = None, designator_reference_to_component: 'bool' = False, description: 'str' = '', swap_id_pin: 'str' = '', swap_id_part: 'str' = '', swap_id_sequence: 'str' = '', default_value: 'str' = '', defined_functions: 'Sequence[str]' = (), selected_functions: 'Sequence[str]' = (), symbol_inner: 'IeeeSymbol' = <IeeeSymbol.NONE: 0>, symbol_outer: 'IeeeSymbol' = <IeeeSymbol.NONE: 0>, symbol_inner_edge: 'IeeeSymbol' = <IeeeSymbol.NONE: 0>, symbol_outer_edge: 'IeeeSymbol' = <IeeeSymbol.NONE: 0>) -> 'AltiumSchPin'

Create a schematic library pin using public mil-space inputs.

The returned object is an `AltiumSchPin` record. Add it to a symbol with `symbol.add_pin(pin)`. SchLib save resolves pin text font IDs and PinTextData streams; callers do not need to manage font-table indexes.

Args: designator: Pin number shown on the symbol, such as "1" or "A1". location_mils: Pin origin in public schematic mils. name: Functional pin name shown near the pin. orientation: Pin direction as a `Rotation90` value. length_mils: Pin line length in mils. Fractional mil values are preserved in the text record fields when serialized. electrical_type: Electrical behavior as a `PinElectrical` enum value. pin_color: Pin line color as a `ColorValue`. hidden: Hide the complete pin when true. name_visible: Show the pin name when true. designator_visible: Show the pin designator when true. owner_part_id: Multi-part component part id. None uses the record default. owner_part_display_mode: Multi-part display mode id. name_font: Optional `SchFontSpec` for custom pin-name text. name_rotation: Optional pin-name text rotation, horizontal or vertical. name_margin_mils: Optional custom pin-name text margin in mils. name_color: Optional pin-name text color as a `ColorValue`. name_reference_to_component: Position name text relative to the component body instead of the pin. designator_font: Optional `SchFontSpec` for custom designator text. designator_rotation: Optional designator text rotation. designator_margin_mils: Optional custom designator margin in mils. designator_color: Optional designator text color as a `ColorValue`. designator_reference_to_component: Position designator text relative to the component body instead of the pin. description: Optional pin description. swap_id_pin: Pin swap-group identifier. swap_id_part: Part swap-group identifier. swap_id_sequence: Swap sequence identifier. default_value: Optional simulation/default logic value. symbol_inner: IEEE symbol drawn inside the component body. symbol_outer: IEEE symbol drawn outside the component body. symbol_inner_edge: IEEE symbol drawn at the inner edge. symbol_outer_edge: IEEE symbol drawn at the outer edge.

Returns: An unattached `AltiumSchPin` ready for `AltiumSymbol.add_pin(...)`.

function

make_sch_polygon

from altium_monkey import make_sch_polygon
def make_sch_polygon(*, points_mils: 'list[SchPointMils]', color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.LARGE: 3>, fill_background: 'bool' = True, transparent_fill: 'bool' = False) -> 'AltiumSchPolygon'

Construct a detached schematic polygon.

Args: points_mils: Ordered polygon vertices in mils. At least three points are required. color: Optional polygon border color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. fill_color: Optional polygon fill color helper. ``None`` omits the persisted area-color field, whose V5 reopen semantic is black. line_width: Polygon border thickness enum. Defaults to ``LineWidth.LARGE`` to match Altium's native new-polygon default. fill_background: Whether the polygon interior is filled. transparent_fill: Whether the filled interior uses the native transparent-fill flag.

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

Notes: Native V5 polygon serialization does not carry a line-style field, so the public factory intentionally omits any ``line_style`` parameter.

function

make_sch_polyline

from altium_monkey import make_sch_polyline
def make_sch_polyline(*, points_mils: 'list[SchPointMils]', color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALL: 1>, line_style: 'LineStyle' = <LineStyle.SOLID: 0>, start_line_shape: 'LineShape' = <LineShape.NONE: 0>, end_line_shape: 'LineShape' = <LineShape.NONE: 0>, line_shape_size: 'LineWidth' = <LineWidth.SMALLEST: 0>) -> 'AltiumSchPolyline'

Construct a detached schematic polyline.

Args: points_mils: Ordered polyline vertices in mils. At least two points are required. color: Optional polyline color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. line_width: Polyline stroke thickness enum. Defaults to ``LineWidth.SMALL`` to match Altium's native new-polyline default. line_style: Polyline dash pattern enum. start_line_shape: Optional marker drawn on the first vertex. end_line_shape: Optional marker drawn on the last vertex. line_shape_size: Native endpoint marker size state. This reuses the public ``LineWidth`` enum because Altium stores endpoint marker size through the same four-step native size model used for schematic line widths: ``SMALLEST``, ``SMALL``, ``MEDIUM``, and ``LARGE``.

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

function

make_sch_port

from altium_monkey import make_sch_port
def make_sch_port(*, location_mils: 'SchPointMils', name: 'str', width_mils: 'int' = 500, height_mils: 'int' = 100, io_type: 'PortIOType' = <PortIOType.UNSPECIFIED: 0>, style: 'PortStyle' = <PortStyle.NONE_HORIZONTAL: 0>, font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), border_color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = None, text_color: 'ColorValue | None' = None, alignment: 'SchHorizontalAlign' = <SchHorizontalAlign.LEFT: 1>, border_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, auto_size: 'bool' = True, show_net_name: 'bool' = True, harness_type: 'str' = '') -> 'AltiumSchPort'

Construct a detached schematic hierarchical port using public-facing units.

Args: location_mils: Port anchor location in mils. name: Port name shown on the port body. width_mils: Port body length in mils. Port width is stored natively in 10-mil units and is rounded to the nearest native unit. height_mils: Port body thickness in mils. Port height is stored natively in 10-mil units and is rounded to the nearest native unit. io_type: Port I/O direction enum. style: Native port style enum. font: Public font description resolved when the port is added to a document or library. border_color: Optional border color helper. ``None`` clears the persisted border-color field. fill_color: Optional fill color helper. ``None`` clears the persisted fill-color field. text_color: Optional text color helper. ``None`` clears the persisted text-color field. alignment: Port text alignment enum. border_width: Port border thickness enum. ``LineWidth.SMALLEST`` matches the native default field-omission behavior. auto_size: Whether Altium may auto-size the port. show_net_name: Whether the port name is shown. harness_type: Optional harness type string. Ordinary hierarchical ports should leave this empty.

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

Notes: This factory targets ordinary named ports. Cross-reference display mode and custom object-definition-backed port graphics are intentionally out of scope for this public surface.

function

make_sch_power_port

from altium_monkey import make_sch_power_port
def make_sch_power_port(*, location_mils: 'SchPointMils', text: 'str', style: 'PowerObjectStyle' = <PowerObjectStyle.BAR: 2>, font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), color: 'ColorValue | None' = None, orientation: 'TextOrientation' = <TextOrientation.DEGREES_0: 0>, show_net_name: 'bool | None' = None) -> 'AltiumSchPowerPort'

Construct a detached schematic power port using built-in Altium styles.

Args: location_mils: Power-port anchor location in mils. text: Net name displayed and connected by the power port. style: Built-in power-port style enum. font: Public font description resolved when the power port is added to a document or library. color: Optional symbol/text color helper. ``None`` clears the persisted power-port color field. orientation: Power-port orientation in 90-degree increments. show_net_name: Optional explicit net-name visibility override. When ``None``, the native style-based default is used, which hides names for ground-style symbols.

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

Notes: This public factory currently targets ordinary built-in power-port symbols such as bar, arrow, wave, and ground variants. Advanced custom power-port graphics backed by ``ObjectDefinitionId`` are intentionally out of scope for this surface.

function

make_sch_rectangle

from altium_monkey import make_sch_rectangle
def make_sch_rectangle(*, bounds_mils: 'SchRectMils', color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, line_style: 'LineStyle' = <LineStyle.SOLID: 0>, fill_background: 'bool' = True, transparent_fill: 'bool' = False) -> 'AltiumSchRectangle'

Construct a detached schematic rectangle.

Args: bounds_mils: Absolute rectangle bounds in mils. color: Optional border color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. fill_color: Optional fill color helper. ``None`` omits the persisted area-color field, whose V5 reopen semantic is black. line_width: Rectangle border thickness enum. Defaults to ``LineWidth.SMALLEST`` to match Altium's native new-rectangle default. line_style: Rectangle border dash pattern enum. fill_background: Whether the rectangle interior is filled. transparent_fill: Whether the filled interior uses the native transparent-fill flag.

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

function

make_sch_rounded_rectangle

from altium_monkey import make_sch_rounded_rectangle
def make_sch_rounded_rectangle(*, bounds_mils: 'SchRectMils', corner_x_radius_mils: 'float' = 200.0, corner_y_radius_mils: 'float' = 200.0, color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALLEST: 0>, fill_background: 'bool' = True) -> 'AltiumSchRoundedRectangle'

Construct a detached schematic rounded rectangle.

Args: bounds_mils: Absolute rounded-rectangle bounds in mils. corner_x_radius_mils: Rounded-corner X radius in mils. Must be non-negative. corner_y_radius_mils: Rounded-corner Y radius in mils. Must be non-negative. color: Optional border color helper. ``None`` omits the persisted color field, whose V5 reopen semantic is black. fill_color: Optional fill color helper. ``None`` omits the persisted area-color field, whose V5 reopen semantic is black. line_width: Rounded-rectangle border thickness enum. Defaults to ``LineWidth.SMALLEST`` to match Altium's native new-object default. fill_background: Whether the rounded rectangle interior is filled.

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

Notes: Native rounded rectangles do not expose the plain rectangle ``line_style`` or ``transparent`` surface in the V5 schematic record format, so those options are intentionally omitted here.

function

make_sch_sheet_entry

from altium_monkey import make_sch_sheet_entry
def make_sch_sheet_entry(*, name: 'str', side: 'SheetEntrySide' = <SheetEntrySide.RIGHT: 1>, io_type: 'SchSheetEntryIOType' = <SchSheetEntryIOType.UNSPECIFIED: 0>, distance_from_top_mils: 'float', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=True, italic=False, underline=False, strikeout=False), border_color: 'ColorValue | None' = ColorValue(_win32=1052688), fill_color: 'ColorValue | None' = ColorValue(_win32=16777215), text_color: 'ColorValue | None' = None, arrow_kind: 'SchSheetEntryArrowKind' = <SchSheetEntryArrowKind.BLOCK_TRIANGLE: 0>, text_style: 'BusTextStyle' = <BusTextStyle.FULL: 0>, harness_type: 'str' = '') -> 'AltiumSchSheetEntry'

Construct a detached sheet entry owned by a sheet symbol.

Args: name: Entry display name. side: Native sheet-entry side enum. io_type: Native sheet-entry I/O direction enum. distance_from_top_mils: Entry offset from the owning symbol edge in mils. Altium sheet entries use a 100-mil placement grid. font: Public font description resolved when the entry is added to a document or library. border_color: Optional entry border color helper. fill_color: Optional entry fill color helper. text_color: Optional entry text color helper. arrow_kind: Native sheet-entry arrow-shape enum. text_style: Shared native entry-label display style enum. harness_type: Optional native harness-type association string.

Returns: A detached ``AltiumSchSheetEntry`` ready to be attached through ``sheet_symbol.add_entry(...)``.

function

make_sch_sheet_name

from altium_monkey import make_sch_sheet_name
def make_sch_sheet_name(*, text: 'str', location_mils: 'SchPointMils', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=14, bold=True, italic=False, underline=False, strikeout=False), color: 'ColorValue | None' = None, orientation: 'TextOrientation' = <TextOrientation.DEGREES_0: 0>, justification: 'TextJustification' = <TextJustification.BOTTOM_LEFT: 0>, mirrored: 'bool' = False) -> 'AltiumSchSheetName'

Construct a detached sheet-name label owned by a sheet symbol.

Args: text: Sheet-name text shown above the symbol body. location_mils: Label anchor location in mils. font: Public font description resolved when the label is added to a document or library. color: Optional text color helper. orientation: Text rotation in 90-degree increments. justification: Text anchor justification relative to ``location_mils``. mirrored: Whether the label is mirrored.

Returns: A detached ``AltiumSchSheetName`` ready to be attached through ``sheet_symbol.set_sheet_name(...)``.

function

make_sch_sheet_symbol

from altium_monkey import make_sch_sheet_symbol
def make_sch_sheet_symbol(*, bounds_mils: 'SchRectMils', border_width: 'LineWidth' = <LineWidth.MEDIUM: 2>, border_color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = ColorValue(_win32=15724527), fill_background: 'bool' = True, symbol_type: 'SchSheetSymbolType' = <SchSheetSymbolType.NORMAL: 0>, show_hidden_fields: 'bool' = False, design_item_id: 'str' = '', source_library_name: 'str' = '', vault_guid: 'str' = '', item_guid: 'str' = '', revision_guid: 'str' = '', revision_name: 'str' = '') -> 'AltiumSchSheetSymbol'

Construct a detached hierarchical sheet symbol.

Args: bounds_mils: Sheet-symbol body rectangle in mils. border_width: Symbol border thickness enum. border_color: Optional border color helper. ``None`` leaves the native border color behavior. fill_color: Optional interior fill color helper. The default matches Altium's ordinary new-sheet-symbol fill color. fill_background: Whether the sheet-symbol interior is filled. symbol_type: Native sheet-symbol type enum. Use ``SchSheetSymbolType.DEVICE_SHEET`` for the rounded-corner variant. show_hidden_fields: Whether the symbol is saved with hidden child fields visible. design_item_id: Optional design-item identifier string. source_library_name: Optional source-library name string. vault_guid: Optional vault GUID string. item_guid: Optional item GUID string. revision_guid: Optional revision GUID string. revision_name: Optional revision name string.

Returns: A detached ``AltiumSchSheetSymbol`` with the managed default sheet-name and file-name child pair, ready to own entries before it is added with ``schdoc.add_object(...)``.

Notes: Attach ``make_sch_sheet_entry(...)`` records with ``sheet_symbol.add_entry(...)``. Calls to ``set_sheet_name(...)`` and ``set_file_name(...)`` replace the managed default child labels.

function

make_sch_signal_harness

from altium_monkey import make_sch_signal_harness
def make_sch_signal_harness(*, points_mils: 'list[SchPointMils]', color: 'ColorValue | None' = ColorValue(_win32=15187117), line_width: 'LineWidth' = <LineWidth.MEDIUM: 2>) -> 'AltiumSchSignalHarness'

Construct a detached signal-harness polyline.

Args: points_mils: Harness path points in mils. color: Optional harness color helper. line_width: Harness line thickness enum.

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

function

make_sch_text_frame

from altium_monkey import make_sch_text_frame
def make_sch_text_frame(*, bounds_mils: 'SchRectMils', text: 'str', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), border_color: 'ColorValue | None' = None, fill_color: 'ColorValue | None' = None, text_color: 'ColorValue | None' = None, alignment: 'SchHorizontalAlign' = <SchHorizontalAlign.LEFT: 1>, line_width: 'LineWidth' = <LineWidth.SMALL: 1>, word_wrap: 'bool' = True, clip_to_rect: 'bool' = True, text_margin_mils: 'float' = 5.0, show_border: 'bool' = True, fill_background: 'bool' = True) -> 'AltiumSchTextFrame'

Construct a detached schematic text frame using public-facing parameters.

Args: bounds_mils: Absolute text-frame rectangle in mils. text: Text content to place in the frame. Newlines are preserved. font: Public font description resolved when the frame is added to a document or library. border_color: Optional border color helper. ``None`` omits the persisted border color, whose V5 reopen semantic is black. fill_color: Optional background fill color helper. ``None`` omits the persisted fill color, whose V5 reopen semantic is black. text_color: Optional text color helper. ``None`` omits the persisted text color, whose V5 reopen semantic is black. alignment: Horizontal text alignment inside the frame. line_width: Border thickness enum for the text-frame outline. word_wrap: Whether text wraps to the frame width. clip_to_rect: Whether text is clipped to the frame bounds. text_margin_mils: Non-negative text margin in mils. show_border: Whether the frame outline is drawn. fill_background: Whether the background is filled with ``fill_color``.

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

function

make_sch_text_string

from altium_monkey import make_sch_text_string
def make_sch_text_string(*, location_mils: 'SchPointMils', text: 'str', font: 'SchFontSpec' = SchFontSpec(name='Arial', size=10, bold=False, italic=False, underline=False, strikeout=False), color: 'ColorValue | None' = None, orientation: 'TextOrientation' = <TextOrientation.DEGREES_0: 0>, justification: 'TextJustification' = <TextJustification.BOTTOM_LEFT: 0>, mirrored: 'bool' = False, url: 'str' = '') -> 'AltiumSchLabel'

Construct a detached schematic text string using public-facing parameters.

Args: location_mils: Text anchor location in mils. text: Single-line text content. Use a text frame or note for multiline text. font: Public font description resolved when the text string is added to a document or library. color: Optional text color helper. ``None`` clears the persisted text color field. orientation: Text rotation in 90-degree increments. justification: Text anchor justification relative to ``location_mils``. mirrored: Whether the text string is mirrored. url: Optional URL string stored on the text string object.

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

function

make_sch_wire

from altium_monkey import make_sch_wire
def make_sch_wire(*, points_mils: 'list[SchPointMils]', color: 'ColorValue | None' = None, line_width: 'LineWidth' = <LineWidth.SMALL: 1>) -> 'AltiumSchWire'

Construct a detached schematic wire path.

Args: points_mils: Ordered wire path points in mils. At least two points are required. color: Optional wire color helper. ``None`` clears the persisted wire color field. line_width: Wire thickness enum. Defaults to ``LineWidth.SMALL`` to match Altium's native new-wire default.

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

function

merge_directory

from altium_monkey.altium_schlib_merger import merge_directory
def merge_directory(input_dir: 'Path', output_path: 'Path', *, pattern: 'str' = '*.SchLib', handle_conflicts: 'str' = 'rename', verbose: 'bool' = True) -> 'bool'

Merge all SchLib files in a directory.

Args: input_dir: Directory containing SchLib files. output_path: Output merged SchLib path. pattern: Glob pattern for SchLib files. handle_conflicts: How to handle name conflicts. verbose: Print progress.

Returns: True if successful.

function

merge_schlibs

from altium_monkey.altium_schlib_merger import merge_schlibs
def merge_schlibs(input_paths: 'list[Path]', output_path: 'Path', *, handle_conflicts: 'str' = 'rename', verbose: 'bool' = True) -> 'bool'

Merge multiple SchLib files into one.

Args: input_paths: List of SchLib file paths. output_path: Output merged SchLib path. handle_conflicts: "rename" (append suffix), "skip", or "error". verbose: Print progress.

Returns: True if successful.

enum

NoErcSymbol

from altium_monkey import NoErcSymbol
enum NoErcSymbol

NO_ERC visual symbol types.

Members (5)
KindSignatureSummary
memberCROSS_THIN= 0
memberCROSS= 1
memberCROSS_SMALL= 2
memberCHECKBOX= 3
memberTRIANGLE= 4
function

normalize_rectangle_coords

from altium_monkey.altium_symbol_transform import normalize_rectangle_coords
def normalize_rectangle_coords(rect: 'object') -> 'None'

Normalize rectangle coordinates (positive-slope normalization convention).

Altium convention: Location.X <= Corner.X and Location.Y <= Corner.Y After un-mirror transformation, coordinates may be swapped.

Modifies rect in-place.

Args: rect: Object with location and corner CoordPoint attributes

enum

OffSheetConnectorStyle

from altium_monkey import OffSheetConnectorStyle
enum OffSheetConnectorStyle

Off-sheet connector symbol styles.

These match Altium's stored values for cross-sheet connectors.

Members (2)
KindSignatureSummary
memberLEFT= 0
memberRIGHT= 1
enum

ParameterSetStyle

from altium_monkey import ParameterSetStyle
enum ParameterSetStyle

Parameter set display style.

Controls how a parameter set is displayed on the schematic.

Native Altium schematic parameter sets only expose two styles: large and tiny. There is no native medium style.

Members (2)
KindSignatureSummary
memberLARGE= 0
memberTINY= 1
enum

PinElectrical

from altium_monkey import PinElectrical
enum PinElectrical

Pin electrical types.

Defines the electrical characteristics of a pin for ERC checking.

Members (8)
KindSignatureSummary
memberINPUT= 0
memberIO= 1
memberOUTPUT= 2
memberOPEN_COLLECTOR= 3
memberPASSIVE= 4
memberHIZ= 5
memberOPEN_EMITTER= 6
memberPOWER= 7
enum

PinItemMode

from altium_monkey import PinItemMode
enum PinItemMode

Pin text item mode (default vs custom).

Controls whether name/designator use default or custom font/position.

Members (2)
KindSignatureSummary
memberDEFAULT= 0
memberCUSTOM= 1
enum

PinOrientation

from altium_monkey import PinOrientation
enum PinOrientation

Pin orientation/direction.

Used for schematic pin placement indicating which direction the pin points. Same values as Rotation90 but with directional naming for pin contexts.

Members (4)
KindSignatureSummary
memberRIGHT= 0
memberUP= 1
memberLEFT= 2
memberDOWN= 3
enum

PinTextAnchor

from altium_monkey import PinTextAnchor
enum PinTextAnchor

Pin text rotation anchor point.

Determines reference point for text rotation calculation.

Members (2)
KindSignatureSummary
memberPIN= 0
memberCOMPONENT= 1
enum

PinTextOrientation

from altium_monkey import PinTextOrientation
enum PinTextOrientation

Pin text orientation in degree values.

Used by PinTextData helper surfaces that expose the stream orientation as concrete degrees rather than quarter-turn indices.

Members (4)
KindSignatureSummary
memberDEG_0= 0
memberDEG_90= 90
memberDEG_180= 180
memberDEG_270= 270
enum

PinTextRotation

from altium_monkey import PinTextRotation
enum PinTextRotation

Pin text rotation values.

Only 0 and 90 degrees are valid for pin name/designator text. Used in AltiumSchPin constructor for name_rotation and designator_rotation.

Note: This uses actual degree values (0, 90), not indices like Rotation90. The PinTextData stream stores rotation as a flag bit, not this value directly.

Members (2)
KindSignatureSummary
memberHORIZONTAL= 0
memberVERTICAL= 90
function

portable_font_replacements

from altium_monkey import portable_font_replacements
def portable_font_replacements() -> 'tuple[FontReplacementRule, ...]'

Return the default portable family replacements used by Altium WASM rendering.

enum

PortIOType

from altium_monkey import PortIOType
enum PortIOType

Port I/O direction type.

Defines the electrical direction of a hierarchical port for ERC. Used in AltiumSchPort.io_type field.

Members (4)
KindSignatureSummary
memberUNSPECIFIED= 0
memberOUTPUT= 1
memberINPUT= 2
memberBIDIRECTIONAL= 3
enum

PortStyle

from altium_monkey import PortStyle
enum PortStyle

Port arrow/shape styles.

Defines the visual shape of hierarchical port connectors. Used in AltiumSchPort.style field.

Members (8)
KindSignatureSummary
memberNONE_HORIZONTAL= 0
memberLEFT= 1
memberRIGHT= 2
memberLEFT_RIGHT= 3
memberNONE_VERTICAL= 4
memberTOP= 5
memberBOTTOM= 6
memberTOP_BOTTOM= 7
enum

PowerObjectStyle

from altium_monkey import PowerObjectStyle
enum PowerObjectStyle

Power port symbol styles.

Defines the visual representation of power port symbols on schematics. Used in AltiumSchPowerPort.style field.

Members (11)
KindSignatureSummary
memberCIRCLE= 0
memberARROW= 1
memberBAR= 2
memberWAVE= 3
memberGND_POWER= 4
memberGND_SIGNAL= 5
memberGND_EARTH= 6
memberGOST_ARROW= 7
memberGOST_GND_POWER= 8
memberGOST_GND_EARTH= 9
memberGOST_BAR= 10
function

rename_schematic_source_fields

from altium_monkey.altium_schematic_refactor import rename_schematic_source_fields
def rename_schematic_source_fields(document: 'AltiumSchDoc', edits: 'Sequence[AltiumSchematicFieldRename]') -> 'int'

Preflight all scalar edits, then change only their Name/Text properties.

Does not save files, infer net-level intent, update PCB data or resize ports. Recompile/reopen at the caller's staging boundary to verify connectivity.

function

render_schematic_harness_file

from altium_monkey.altium_schematic_refactor import render_schematic_harness_file
def render_schematic_harness_file(document: 'AltiumSchDoc') -> 'bytes | None'

Render generated connector definitions; None means no sibling storage.

Uses admitted per-document source, raw merged entries, CRLF and the managed Windows-1252 best-fit codec. Type rows use deterministic ordinal name order; native culture-dependent presentation order is not a byte-parity promise. Does not read/write sidecars or include external locked/custom definitions.

enum

Rotation90

from altium_monkey import Rotation90
enum Rotation90

Rotation in 90-degree increments.

Used for pin orientation and text rotation.

Members (4)
KindSignatureSummary
memberDEG_0= 0
memberDEG_90= 1
memberDEG_180= 2
memberDEG_270= 3
constant

SCHDOC_INTEROP_SCHEMA

from altium_monkey import SCHDOC_INTEROP_SCHEMA
SCHDOC_INTEROP_SCHEMA: str
enum

SchHarnessConnectorSide

from altium_monkey import SchHarnessConnectorSide
enum SchHarnessConnectorSide

Harness connector side placement.

Members (4)
KindSignatureSummary
memberLEFT= 0
memberRIGHT= 1
memberTOP= 2
memberBOTTOM= 3
enum

SchHorizontalAlign

from altium_monkey import SchHorizontalAlign
enum SchHorizontalAlign

Horizontal alignment for schematic note and text-frame content.

These values match Altium's horizontal alignment storage for schematic text frames and notes.

Members (3)
KindSignatureSummary
memberCENTER= 0
memberLEFT= 1
memberRIGHT= 2
constant

SCHLIB_INTEROP_SCHEMA

from altium_monkey import SCHLIB_INTEROP_SCHEMA
SCHLIB_INTEROP_SCHEMA: str
enum

SchRecordType

from altium_monkey.altium_record_types import SchRecordType
enum SchRecordType

Record type IDs for Altium SchLib/SchDoc files.

Same record types are used in both SchLib (symbol libraries) and SchDoc (schematic documents), though some types are more common in one vs the other.

Members (64)
KindSignatureSummary
memberHEADER= 0
memberCOMPONENT= 1
memberPIN= 2
memberIEEE_SYMBOL= 3
memberLABEL= 4
memberBEZIER= 5
memberPOLYLINE= 6
memberPOLYGON= 7
memberELLIPSE= 8
memberPIECHART= 9
memberROUND_RECTANGLE= 10
memberELLIPTICAL_ARC= 11
memberARC= 12
memberLINE= 13
memberRECTANGLE= 14
memberSHEET_SYMBOL= 15
memberSHEET_ENTRY= 16
memberPOWER_PORT= 17
memberPORT= 18
memberNO_ERC= 22
memberNET_LABEL= 25
memberBUS= 26
memberWIRE= 27
memberTEXT_FRAME= 28
memberJUNCTION= 29
memberIMAGE= 30
memberSHEET= 31
memberSHEET_NAME= 32
memberFILE_NAME= 33
memberDESIGNATOR= 34
memberBUS_ENTRY= 37
memberTEMPLATE= 39
memberPARAMETER= 41
memberPARAMETER_SET= 43
memberIMPLEMENTATION_LIST= 44
memberIMPLEMENTATION= 45
memberMAP_DEFINER_LIST= 46
memberMAP_DEFINER= 47
memberIMPL_PARAMS= 48
memberHARNESS_COMPONENT= 106
memberHARNESS_SPLICE= 108
memberHARNESS_LAYOUT_LABEL= 109
memberHARNESS_LAYOUT_CONNECTION_POINT= 110
memberHARNESS_BUNDLE= 111
memberLINE_VIEW= 126
memberHARNESS_LAYOUT_COVERING= 128
memberREUSE_BLOCK_IMPLEMENTATION_INFO= 138
memberHARNESS_CAVITY= 140
memberHARNESS_CAVITY_COMPONENT= 141
memberNOTE= 209
memberCOMPILE_MASK= 211
memberHARNESS_CONNECTOR= 215
memberHARNESS_ENTRY= 216
memberHARNESS_TYPE= 217
memberSIGNAL_HARNESS= 218
memberHIGH_LEVEL_CODE_SYMBOL= 220
memberHIGH_LEVEL_CODE_ENTRY= 221
memberHIGH_LEVEL_CODE_NAME= 222
memberHIGH_LEVEL_CODE_FILE_NAME= 223
memberBLANKET= 225
memberHYPERLINK= 226
memberRICH_TEXT_DOCUMENT= 240
memberRTF_LINK= 241
memberOBJECT_DEFINITION= 129
enum

SchSheetEntryArrowKind

from altium_monkey import SchSheetEntryArrowKind
enum SchSheetEntryArrowKind

Arrow shape for sheet entries.

Members (4)
KindSignatureSummary
memberBLOCK_TRIANGLE= 0
memberTRIANGLE= 1
memberARROW= 2
memberARROW_TAIL= 3
enum

SchSheetEntryIOType

from altium_monkey import SchSheetEntryIOType
enum SchSheetEntryIOType

I/O direction for sheet entries.

Members (4)
KindSignatureSummary
memberUNSPECIFIED= 0
memberOUTPUT= 1
memberINPUT= 2
memberBIDIRECTIONAL= 3
enum

SchSheetSymbolType

from altium_monkey import SchSheetSymbolType
enum SchSheetSymbolType

Sheet symbol type (affects visual appearance).

Members (3)
KindSignatureSummary
memberNORMAL= 0
memberDEVICE_SHEET= 1
memberDESIGN_ITEM= 2
enum

SheetEntrySide

from altium_monkey import SheetEntrySide
enum SheetEntrySide

Sheet entry side placement.

Members (4)
KindSignatureSummary
memberLEFT= 0
memberRIGHT= 1
memberTOP= 2
memberBOTTOM= 3
enum

SheetStyle

from altium_monkey import SheetStyle
enum SheetStyle

Sheet size styles used by schematic documents.

Members (18)
KindSignatureSummary
memberA4= 0
memberA3= 1
memberA2= 2
memberA1= 3
memberA0= 4
memberA= 5
memberB= 6
memberC= 7
memberD= 8
memberE= 9
memberLETTER= 10
memberLEGAL= 11
memberTABLOID= 12
memberORCAD_A= 13
memberORCAD_B= 14
memberORCAD_C= 15
memberORCAD_D= 16
memberORCAD_E= 17
enum

StdLogicState

from altium_monkey import StdLogicState
enum StdLogicState

Standard logic state for formal type specification.

Used for simulation and formal verification.

Members (9)
KindSignatureSummary
memberUNINITIALIZED= 0
memberFORCING_UNKNOWN= 1
memberFORCING_0= 2
memberFORCING_1= 3
memberHIZ= 4
memberWEAK_UNKNOWN= 5
memberWEAK_0= 6
memberWEAK_1= 7
memberDONT_CARE= 8
enum

SymbolLineWidth

from altium_monkey import SymbolLineWidth
enum SymbolLineWidth

Symbol/line width sizes.

Used for pin symbol line thickness.

Members (4)
KindSignatureSummary
memberZERO= 0
memberSMALL= 1
memberMEDIUM= 2
memberLARGE= 3
enum

TextJustification

from altium_monkey import TextJustification
enum TextJustification

Text horizontal justification.

Controls horizontal alignment of text elements.

Members (9)
KindSignatureSummary
memberBOTTOM_LEFT= 0
memberBOTTOM_CENTER= 1
memberBOTTOM_RIGHT= 2
memberCENTER_LEFT= 3
memberCENTER_CENTER= 4
memberCENTER_RIGHT= 5
memberTOP_LEFT= 6
memberTOP_CENTER= 7
memberTOP_RIGHT= 8
enum

TextOrientation

from altium_monkey import TextOrientation
enum TextOrientation

Text orientation in 90-degree increments.

Used for Label, Parameter, Designator, PowerPort, TextFrame orientation. Same values as Rotation90 but with DEGREES_* naming for text contexts.

Members (4)
KindSignatureSummary
memberDEGREES_0= 0
memberDEGREES_90= 1
memberDEGREES_180= 2
memberDEGREES_270= 3
function

to_schematic_space

from altium_monkey.altium_symbol_transform import to_schematic_space
def to_schematic_space(obj: 'T', component: '_TransformComponent', regenerate_id: 'bool' = True) -> 'T'

Transform an OOP object from symbol-space to schematic-space.

Returns a deep copy with transformed coordinates. Works with any object that has location/corner/vertices attributes (AltiumSchPin, AltiumSchRectangle, AltiumSchLine, AltiumSchPolyline, etc.).

This is the inverse of to_symbol_space() and is used when inserting library symbols into schematics.

Args: obj: OOP record object with coordinate attributes component: AltiumSchComponent with location, orientation, is_mirrored regenerate_id: If True, generate a new unique_id for the clone (default True)

function

to_symbol_space

from altium_monkey.altium_symbol_transform import to_symbol_space
def to_symbol_space(obj: 'T', component: '_TransformComponent') -> 'T'

Transform an OOP object from schematic-space to symbol-space.

Returns a deep copy with transformed coordinates. Works with any object that has location/corner/vertices attributes (AltiumSchPin, AltiumSchRectangle, AltiumSchLine, AltiumSchPolyline, etc.).

Args: obj: OOP record object with coordinate attributes component: AltiumSchComponent with location, orientation, is_mirrored

Returns: Deep copy of obj with coordinates transformed to symbol-space

function

trace_schematic_source_fields

from altium_monkey.altium_schematic_refactor import trace_schematic_source_fields
def trace_schematic_source_fields(design: 'AltiumDesign') -> 'AltiumSchematicSourceTrace'

Recompile and expose checked flat-net/source associations as rich values.

IDs are scoped to this Design and stable under naming-only edits when source identity is admitted. This is not a C0 wire export or a full hierarchy facade. Unsupported identities, source associations and terminal-free partitions are reported as gaps rather than fabricated memberships.

function

transform_pin_orientation

from altium_monkey.altium_symbol_transform import transform_pin_orientation
def transform_pin_orientation(pin_orient: 'int', comp_orient: 'int', is_mirrored: 'bool') -> 'int'

Transform PIN orientation from schematic-space to symbol-space.

PIN orientations: 0=RIGHT, 1=UP, 2=LEFT, 3=DOWN

Args: pin_orient: PIN orientation in schematic (0-3) comp_orient: Component rotation (0-3) is_mirrored: Component is horizontally mirrored

Returns: PIN orientation in symbol-space (0-3)

function

transform_pin_orientation_to_schematic

from altium_monkey.altium_symbol_transform import transform_pin_orientation_to_schematic
def transform_pin_orientation_to_schematic(pin_orient: 'int', comp_orient: 'int', is_mirrored: 'bool') -> 'int'

Transform PIN orientation from symbol-space to schematic-space.

This is the inverse of transform_pin_orientation().

PIN orientations: 0=RIGHT, 1=UP, 2=LEFT, 3=DOWN

Args: pin_orient: PIN orientation in symbol (0-3) comp_orient: Component rotation (0-3) is_mirrored: Component is horizontally mirrored

function

transform_point_to_schematic_space

from altium_monkey.altium_symbol_transform import transform_point_to_schematic_space
def transform_point_to_schematic_space(x_mils: 'float', y_mils: 'float', comp_x_mils: 'float', comp_y_mils: 'float', orientation: 'int', is_mirrored: 'bool') -> 'tuple[float, float]'

Transform a point from symbol-space to schematic-space.

This is the inverse of transform_point_to_symbol_space().

Args: x_mils: Point X coordinate in mils (symbol space) y_mils: Point Y coordinate in mils (symbol space) comp_x_mils: Component location X in mils comp_y_mils: Component location Y in mils orientation: Component rotation (0=0deg, 1=90deg, 2=180deg, 3=270deg CCW) is_mirrored: Component is horizontally mirrored (Y-axis flip)

Returns: Tuple (x, y) in schematic-space mils

function

transform_point_to_symbol_space

from altium_monkey.altium_symbol_transform import transform_point_to_symbol_space
def transform_point_to_symbol_space(x_mils: 'float', y_mils: 'float', comp_x_mils: 'float', comp_y_mils: 'float', orientation: 'int', is_mirrored: 'bool') -> 'tuple[float, float]'

Transform a point from schematic-space to symbol-space.

Args: x_mils: Point X coordinate in mils (schematic space) y_mils: Point Y coordinate in mils (schematic space) comp_x_mils: Component location X in mils comp_y_mils: Component location Y in mils orientation: Component rotation (0=0deg, 1=90deg, 2=180deg, 3=270deg CCW) is_mirrored: Component is horizontally mirrored (Y-axis flip)

Returns: Tuple (x, y) in symbol-space mils

Note: Altium applies transformations in order: Rotate -> Mirror To reverse: Translate -> Un-mirror -> Un-rotate

function

validate_schdoc_interop_json

from altium_monkey import validate_schdoc_interop_json
def validate_schdoc_interop_json(source: 'Path | str | dict[str, object]') -> 'None'

Validate tagged or legacy SchDoc JSON without retaining a document.

function

validate_schematic_field_renames

from altium_monkey.altium_schematic_refactor import validate_schematic_field_renames
def validate_schematic_field_renames(document: 'AltiumSchDoc', edits: 'Sequence[AltiumSchematicFieldRename]') -> 'None'

Check the entire exact-field batch without changing any source object.

function

validate_schlib_interop_json

from altium_monkey import validate_schlib_interop_json
def validate_schlib_interop_json(source: 'Path | str | dict[str, object]') -> 'None'

Validate tagged or legacy SchLib JSON without retaining a library.

enum

WorkspaceOrientation

from altium_monkey import WorkspaceOrientation
enum WorkspaceOrientation

Sheet orientation.

Members (2)
KindSignatureSummary
memberLANDSCAPE= 0
memberPORTRAIT= 1
altium-monkey v2026.11.26 · gobblerito·Docs updated 2026.11.29 17:55 UTC (0665053)