Skip to content
README.md 1.17 KiB
Newer Older
Fabrice Salvaire's avatar
Fabrice Salvaire committed
# Changelog

- added a BOM export to YAML `dump.py` and `bom.py`
- fixed code for Python3
- original repository is https://github.com/vadmium/python-altium

# Altium schematic reader
Martin Panter's avatar
Martin Panter committed

Martin Panter's avatar
Martin Panter committed
This is a Python command-line script that can
Martin Panter's avatar
Martin Panter committed
parse Altium schematic (\*.SchDoc) files, convert them
Martin Panter's avatar
Martin Panter committed
to SVG images, or display them in a window. It is incomplete and there are
probably many schematic elements and settings that it does not (yet)
understand.

The schematic file format has been documented somewhat in [format.md](
format.md).
Martin Panter's avatar
Martin Panter committed

Martin Panter's avatar
Martin Panter committed
You can redistribute and modify this program under the terms of the Do
What The Fuck You Want To Public License (WTFPL) version 2, as published by
Sam Hocevar. See the [COPYING](COPYING) file for details.

Fabrice Salvaire's avatar
Fabrice Salvaire committed
## Dependencies
Martin Panter's avatar
Martin Panter committed

* Python 3, from <https://www.python.org/>
* The _olefile_ package, <https://decalage.info/python/olefileio>
Martin Panter's avatar
Martin Panter committed
* TK (Only required to display schematics in a window)
* Pillow, from <https://python-pillow.org/> (Only to display schematics that
    contain bitmap images)
Martin Panter's avatar
Martin Panter committed

Fabrice Salvaire's avatar
Fabrice Salvaire committed
## Usage
Martin Panter's avatar
Martin Panter committed

Conversion to SVG:

```shell
python3 altium.py schematic.SchDoc > output.svg
```

Display in a window:

```shell
python3 altium.py --renderer tk schematic.SchDoc
```