a3ng7n / Altium-Schematic-Parser

Converts Altium .SchDoc files into json
MIT License
28 stars 6 forks source link
altium json parser python schematic

Altium-Schematic-Parser

Converts Altium .SchDoc files into json

Prerequisites

Ex: to export all contents of altiumschematic.schdoc to jsonfile.json within path/to/:

python parse.py "path/to/altiumschematic.schdoc" -o "path/to/jsonfile.json"

NOTE: the default output formatting behavior (-f/--format) if not supplied is to show all contents retaining all hierarchy information

Command line arguments

positional arguments:
  input                 path/to/altiumschematic.schdoc file to parse

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        path/to/jsonfile.json file to output json to, otherwise prints to terminal
  -f {all-list,all-hierarchy,parts-list,net-list}, --format {all-list,all-hierarchy,parts-list,net-list}
                        all-list: All records in a flattened list
                        all-hierarchy: All records in an owner/child "hierarchy"
                        parts-list: A listing of parts and their designators
                        net-list: A listing of nets between parts pins, referred to by their designators

Notes

schdoc file format

Record ids:

Net Association

Altium seems to have a very very very bizarre way of designating or determining the designation of what is a net, and what's connected to that net.