Getting Started
User Guide
create_schematic(name: str) β Schematic
load_schematic(filepath: str) β Schematic
Schematic.components
components.add(lib_id, reference, value, position, **kwargs) β Component
components.get(reference: str) β Optional[Component]
components.remove(reference: str) β bool
components.remove_by_uuid(uuid: str) β bool
components.remove_component(component: Component) β bool
components.filter(**criteria) β List[Component]
components.bulk_update(criteria: Dict, updates: Dict) β int
Schematic.wires
wires.add(start=None, end=None, points=None, **kwargs) β str
add_wire_between_pins(from_ref, from_pin, to_ref, to_pin) β Optional[str]
add_wire_to_pin(point, component_ref, pin) β Optional[str]
wires.get(uuid: str) β Optional[Wire]
wires.remove(uuid: str) β bool
wires.get_by_point(point, tolerance=None) β List[Wire]
are_pins_connected(ref1, pin1, ref2, pin2) β bool
get_net_for_pin(component_ref, pin_number) β Optional[Net]
get_connected_pins(component_ref, pin_number) β List[Tuple[str, str]]
hierarchy.build_hierarchy_tree(root_schematic, root_path) β HierarchyNode
hierarchy.find_reused_sheets() β Dict[str, List[SheetInstance]]
hierarchy.validate_sheet_pins() β List[SheetPinConnection]
hierarchy.trace_signal_path(signal_name, start_path=None) β List[SignalPath]
hierarchy.flatten_hierarchy(prefix_references=False) β Dict
hierarchy.visualize_hierarchy(include_stats=False) β str
Schematic.labels
add_label(text, position, **kwargs) β str
labels.find_by_text(text, exact=True) β List[LabelElement]
labels.remove(uuid: str) β bool
Schematic.save(filepath: str = None)
add_hierarchical_sheet(name, filename, position, size, **kwargs)
add_hierarchical_label(text, label_type, position, **kwargs)
junctions.add(position, **kwargs) β str
no_connects.add(position, **kwargs) β NoConnectElement
texts.add(text, position, **kwargs) β TextElement
Schematic.validate() β List[ValidationIssue]
set_hierarchy_context()
HierarchyManager
HierarchyNode
SheetInstance
SheetPinConnection
SignalPath
core/schematic.py
core/collections/
core/components.py
core/labels.py
core/types.py
parsers/
library/
core/managers/
core/config.py
MCP Server (AI Agents)
Developer Documentation
API Documentation
Component
Component.__init__()
Component.__repr__()
Component.__str__()
Component.copy_properties_from()
Component.footprint
Component.get_pin()
Component.get_pin_position()
Component.get_property()
Component.get_symbol_definition()
Component.in_bom
Component.lib_id
Component.library
Component.list_pins()
Component.move()
Component.on_board
Component.pin_uuids
Component.pins
Component.position
Component.properties
Component.reference
Component.remove_property()
Component.rotate()
Component.rotation
Component.set_property()
Component.show_pins()
Component.symbol_name
Component.to_dict()
Component.translate()
Component.update_from_library()
Component.uuid
Component.validate()
Component.value
ComponentCollection
ComponentCollection.__contains__()
ComponentCollection.__getitem__()
ComponentCollection.__init__()
ComponentCollection.add()
ComponentCollection.add_ic()
ComponentCollection.bulk_update()
ComponentCollection.filter()
ComponentCollection.filter_by_type()
ComponentCollection.get()
ComponentCollection.get_statistics()
ComponentCollection.in_area()
ComponentCollection.near_point()
ComponentCollection.remove()
ComponentCollection.remove_by_uuid()
ComponentCollection.remove_component()
ComponentCollection.sort_by_position()
ComponentCollection.sort_by_reference()
ComponentCollection.validate_all()
DuplicateElementError
DuplicateElementError.__init__()
ElementNotFoundError
ElementNotFoundError.__init__()
KiCADConfig
KiCADConfig.get_property_position()
KiCADConfig.should_add_title_block()
KiCadSchError
PinInfo
PinInfo.__post_init__()
PinInfo.electrical_type
PinInfo.length
PinInfo.name
PinInfo.number
PinInfo.orientation
PinInfo.position
PinInfo.shape
PinInfo.to_dict()
PinInfo.uuid
Schematic
Schematic.__enter__()
Schematic.__exit__()
Schematic.__init__()
Schematic.__repr__()
Schematic.__str__()
Schematic.add_global_label()
Schematic.add_hierarchical_label()
Schematic.add_image()
Schematic.add_label()
Schematic.add_rectangle()
Schematic.add_sheet()
Schematic.add_sheet_pin()
Schematic.add_text()
Schematic.add_text_box()
Schematic.add_wire()
Schematic.add_wire_between_pins()
Schematic.add_wire_to_pin()
Schematic.are_pins_connected()
Schematic.auto_route_pins()
Schematic.backup()
Schematic.bus_entries
Schematic.connect_pins_with_wire()
Schematic.create()
Schematic.draw_bounding_box()
Schematic.draw_component_bounding_boxes()
Schematic.export_bom()
Schematic.export_dxf()
Schematic.export_netlist()
Schematic.export_pdf()
Schematic.export_svg()
Schematic.export_to_python()
Schematic.file_path
Schematic.generator
Schematic.get_component_pin_position()
Schematic.get_connected_pins()
Schematic.get_net_for_pin()
Schematic.get_statistics()
Schematic.get_validation_summary()
Schematic.hierarchical_labels
Schematic.hierarchy
Schematic.junctions
Schematic.library
Schematic.list_component_pins()
Schematic.load()
Schematic.modified
Schematic.nets
Schematic.no_connects
Schematic.remove_hierarchical_label()
Schematic.remove_label()
Schematic.remove_rectangle()
Schematic.remove_sheet()
Schematic.remove_wire()
Schematic.run_erc()
Schematic.save()
Schematic.save_as()
Schematic.set_hierarchy_context()
Schematic.set_paper_size()
Schematic.set_title_block()
Schematic.sheets
Schematic.texts
Schematic.title_block
Schematic.uuid
Schematic.validate()
Schematic.version
SymbolLibraryCache
SymbolLibraryCache.__init__()
SymbolLibraryCache.add_library_path()
SymbolLibraryCache.clear_cache()
SymbolLibraryCache.discover_libraries()
SymbolLibraryCache.get_library_symbols()
SymbolLibraryCache.get_performance_stats()
SymbolLibraryCache.get_symbol()
SymbolLibraryCache.get_symbol_info()
SymbolLibraryCache.search_symbols()
ValidationError
ValidationError.__init__()
ValidationError.add_issue()
ValidationError.get_errors()
ValidationError.get_warnings()
ValidationIssue
ValidationIssue.category
ValidationIssue.context
ValidationIssue.level
ValidationIssue.message
ValidationIssue.suggestion
create_schematic()
get_symbol_cache()
get_symbol_info()
load_schematic()
schematic_to_python()
search_symbols()
use_grid_units()
BaseCollection
BatchContext
IndexRegistry
IndexSpec
PropertyDict
ValidationLevel
WireCollection
LabelCollection
LabelElement
JunctionCollection
TextCollection
TextElement
BusEntry
BusEntry.__post_init__()
BusEntry.position
BusEntry.rotation
BusEntry.size
BusEntry.stroke_type
BusEntry.stroke_width
BusEntry.uuid
HierarchicalLabelShape
HierarchicalLabelShape.BIDIRECTIONAL
HierarchicalLabelShape.INPUT
HierarchicalLabelShape.OUTPUT
HierarchicalLabelShape.PASSIVE
HierarchicalLabelShape.TRISTATE
HierarchicalLabelShape.UNSPECIFIED
Image
Image.data
Image.position
Image.scale
Image.uuid
Junction
Junction.color
Junction.diameter
Junction.position
Junction.uuid
Label
Label.justify_h
Label.justify_v
Label.label_type
Label.position
Label.rotation
Label.shape
Label.size
Label.text
Label.uuid
LabelType
LabelType.GLOBAL
LabelType.HIERARCHICAL
LabelType.LOCAL
Net
Net.add_connection()
Net.components
Net.labels
Net.name
Net.remove_connection()
Net.wires
NoConnect
NoConnect.position
NoConnect.uuid
PinShape
PinShape.CLOCK
PinShape.CLOCK_LOW
PinShape.EDGE_CLOCK_HIGH
PinShape.INPUT_LOW
PinShape.INVERTED
PinShape.INVERTED_CLOCK
PinShape.LINE
PinShape.NON_LOGIC
PinShape.OUTPUT_LOW
PinType
PinType.BIDIRECTIONAL
PinType.FREE
PinType.INPUT
PinType.NO_CONNECT
PinType.OPEN_COLLECTOR
PinType.OPEN_EMITTER
PinType.OUTPUT
PinType.PASSIVE
PinType.POWER_IN
PinType.POWER_OUT
PinType.TRISTATE
PinType.UNSPECIFIED
Point
Point.distance_to()
Point.offset()
Point.x
Point.y
Rectangle
Rectangle.bottom_right
Rectangle.center
Rectangle.contains()
Rectangle.height
Rectangle.top_left
Rectangle.width
Schematic.component_count()
Schematic.connection_count()
Schematic.get_component()
Schematic.get_net()
Schematic.lib_symbols
Schematic.rectangles
SchematicPin
SchematicPin.length
SchematicPin.name
SchematicPin.number
SchematicPin.pin_shape
SchematicPin.pin_type
SchematicPin.position
SchematicPin.rotation
SchematicRectangle
SchematicRectangle.center
SchematicRectangle.end
SchematicRectangle.fill_type
SchematicRectangle.height
SchematicRectangle.start
SchematicRectangle.stroke_type
SchematicRectangle.stroke_width
SchematicRectangle.uuid
SchematicRectangle.width
SchematicSymbol
SchematicSymbol.add_properties()
SchematicSymbol.add_property()
SchematicSymbol.fields_autoplaced
SchematicSymbol.footprint
SchematicSymbol.get_pin()
SchematicSymbol.get_pin_position()
SchematicSymbol.get_property_effects()
SchematicSymbol.hidden_properties
SchematicSymbol.in_bom
SchematicSymbol.instances
SchematicSymbol.lib_id
SchematicSymbol.library
SchematicSymbol.on_board
SchematicSymbol.pin_uuids
SchematicSymbol.pins
SchematicSymbol.position
SchematicSymbol.properties
SchematicSymbol.reference
SchematicSymbol.rotation
SchematicSymbol.set_property_effects()
SchematicSymbol.symbol_name
SchematicSymbol.unit
SchematicSymbol.uuid
SchematicSymbol.value
Sheet
Sheet.dnp
Sheet.exclude_from_sim
Sheet.fields_autoplaced
Sheet.filename
Sheet.fill_color
Sheet.in_bom
Sheet.name
Sheet.on_board
Sheet.pins
Sheet.position
Sheet.size
Sheet.stroke_type
Sheet.stroke_width
Sheet.uuid
SheetPin
SheetPin.name
SheetPin.pin_type
SheetPin.position
SheetPin.size
SheetPin.uuid
SymbolInfo
SymbolInfo.datasheet
SymbolInfo.description
SymbolInfo.keywords
SymbolInfo.lib_id
SymbolInfo.library
SymbolInfo.name
SymbolInfo.pins
SymbolInfo.power_symbol
SymbolInfo.reference_prefix
SymbolInfo.unit_count
SymbolInfo.unit_names
SymbolInstance
SymbolInstance.path
SymbolInstance.project
SymbolInstance.reference
SymbolInstance.unit
Text
Text.bold
Text.color
Text.exclude_from_sim
Text.face
Text.italic
Text.position
Text.rotation
Text.size
Text.text
Text.thickness
Text.uuid
TextBox
TextBox.exclude_from_sim
TextBox.fill_type
TextBox.font_size
TextBox.justify_horizontal
TextBox.justify_vertical
TextBox.margins
TextBox.position
TextBox.rotation
TextBox.size
TextBox.stroke_type
TextBox.stroke_width
TextBox.text
TextBox.uuid
TitleBlock
TitleBlock.comments
TitleBlock.company
TitleBlock.date
TitleBlock.rev
TitleBlock.size
TitleBlock.title
Wire
Wire.end
Wire.from_start_end()
Wire.is_horizontal()
Wire.is_simple()
Wire.is_vertical()
Wire.length
Wire.points
Wire.start
Wire.stroke_type
Wire.stroke_width
Wire.uuid
Wire.wire_type
WireType
WireType.BUS
WireType.WIRE
point_from_dict_or_tuple()
DefaultValues
DefaultValues.fill_type
DefaultValues.font_size
DefaultValues.pin_name_size
DefaultValues.pin_number_size
DefaultValues.project_name
DefaultValues.stroke_type
DefaultValues.stroke_width
FieldNames
FieldNames.arc
FieldNames.at
FieldNames.bezier
FieldNames.center
FieldNames.circle
FieldNames.color
FieldNames.effects
FieldNames.end
FieldNames.fill
FieldNames.font
FieldNames.generator
FieldNames.generator_version
FieldNames.junction
FieldNames.label
FieldNames.lib_id
FieldNames.mid
FieldNames.no_connect
FieldNames.paper
FieldNames.pin
FieldNames.polyline
FieldNames.property
FieldNames.pts
FieldNames.radius
FieldNames.rectangle
FieldNames.sheet
FieldNames.sheet_instances
FieldNames.size
FieldNames.start
FieldNames.stroke
FieldNames.symbol
FieldNames.type
FieldNames.uuid
FieldNames.version
FieldNames.width
FieldNames.wire
FieldNames.xy
FileFormatConstants
FileFormatConstants.file_type
FileFormatConstants.generator_default
FileFormatConstants.generator_version_default
FileFormatConstants.version_default
GridSettings
GridSettings.component_spacing
GridSettings.power_offset
GridSettings.standard_grid
GridSettings.unit_spacing
PaperSizeConstants
PaperSizeConstants.default
PaperSizeConstants.valid_sizes
PositioningSettings
PositioningSettings.grid_size
PositioningSettings.use_grid_units
PropertyOffsets
PropertyOffsets.footprint_rotation
PropertyOffsets.hidden_property_offset
PropertyOffsets.reference_x
PropertyOffsets.reference_y
PropertyOffsets.value_x
PropertyOffsets.value_y
SheetSettings
SheetSettings.default_stroke_type
SheetSettings.default_stroke_width
SheetSettings.file_offset_y
SheetSettings.name_offset_y
ToleranceSettings
ToleranceSettings.coordinate_precision
ToleranceSettings.position_tolerance
ToleranceSettings.wire_segment_min
SExpressionParser
CompactFormatter
DebugFormatter
ExactFormatter
FormatRule
SymbolParser
WireParser
LabelParser
LibraryStats
SymbolDefinition
set_symbol_cache()
SymbolResolver
SymbolValidator
ComponentSearchIndex
ensure_index_built()
get_search_index()
SchematicValidator
collect_validation_errors()
validate_schematic_file()
apply_transformation()
calculate_position_for_pin()
distance_between_points()
points_equal()
snap_to_grid()
SymbolBoundingBoxCalculator
Project Info
Please activate JavaScript to enable the search functionality.