Python API to read and parse Altium schematic documents.
s = schdoc.Schematic("<path-to-.SchDoc>")
s.read()
path
: File path to schematic documentrecords
: All parsed records in the documentfiles
: All files in document (currently only supporting images)name
: Name of the schematic
- Record ID: 1
- library_reference
- design_item_id
- description
- current_part_id
- display_mode
- part_count
- Record ID: 2
- x
- y
- length
- owner_display_mode
- orientation
- angle
- name
- show_name
- designator
- show_designator
- angle_vec
- name_orientation
- Record ID: 3
- Record ID: 4
- x
- y
- text
- hidden
- color
- orientation
- justification
- font_id
- Record ID: 5
- Record ID: 6
- points
- width
- color
- start_shape
- end_shape
- shape_size
- line_style
- Record ID: 7
- points
- width
- line_color
- fill_color
- Record ID: 8
- x
- y
- radius_x
- radius_y
- radius_y
- width
- line_color
- fill_color
- transparent
- Record ID: 9
- Record ID: 10
- Record ID: 11
- x
- y
- radius
- secondary_radius
- start_angle
- end_angle
- width
- color
- Record ID: 12
- x
- y
- radius
- start_angle
- end_angle
- width
- color
- Record ID: 13
- x1
- x2
- y1
- y2
- width
- color
- Record ID: 14
- left
- right
- top
- bottom
- line_color
- fill_color
- owner_display_mode
- transparent
- Record ID: 15
- x
- y
- width
- height
- fill_color
- line_color
- Record ID: 16
- from_top
- iotype
- font_id
- side
- style
- color
- text_color
- fill_color
- name
- type
- Record ID: 17
- x
- y
- color
- show_text
- text
- style
- justification
- is_off_sheet_connector
- Record ID: 18 - x
- y
- width
- height
- border_color
- fill_color
- color
- text
- iotype
- orientation
- Record ID: 22 - x
- y
- color
- orientation
- symbol
- Record ID: 25
- x
- y
- color
- text
- orientation
- justification
- font_id
- Record ID: 26 - points
- color
- width
- Record ID: 27
- points
- color
- Record ID: 28 - left
- bottom
- right
- top
- border_color
- text_color
- fill_color
- text
- orientation
- alignment
- show_border
- transparent
- text_margin
- word_wrap
- font_id
- Record ID: 29
- x
- y
- color
- Record ID: 30
- x
- y
- corner_x
- corner_y
- corner_x_frac
- corner_y_frac
- keep_aspect
- embedded
- filename
- Record ID: 31 SHEET_SIZES = [ ] - grid_size
- show_grid
- areacolor - width
- height
- width
- height - fonts
- fonts[f]
- Record ID: 32
- x
- y
- color
- text
- font_id
- Record ID: 33
- x
- y
- color
- text
- font_id
- Record ID: 34
- x
- y
- color
- hidden
- text
- mirrored
- orientation
- font_id
- owner_display_mode def get_refdes(self):
- Record ID: 39
- Record ID: 41
- x
- y
- color
- name
- text
- hidden
- mirrored
- orientation
- font_id
- owner_display_mode
- Record ID: 43
- Record ID: 44
- Record ID: 45
- iscurrent
- description
- modelname
- model_type
- Record ID: 46
- Record ID: 47
- pin_name
- Record ID: 48
https://github.com/esophagoose/python-altium/blob/master/format.md