|
| 1 | +# PartDb-Altium-Sql-Link |
| 2 | + |
| 3 | +[](LICENSE) |
| 4 | + |
| 5 | + |
| 6 | +## Table of Contents |
| 7 | + |
| 8 | +- [Background](#background) |
| 9 | +- [Requirements](#requirements) |
| 10 | +- [Install](#install) |
| 11 | +- [Usage](#usage) |
| 12 | +- [Note](#note) |
| 13 | +- [Maintainers](#maintainers) |
| 14 | +- [Contributing](#contributing) |
| 15 | +- [License](#license) |
| 16 | + |
| 17 | + |
| 18 | +## Background |
| 19 | +The code in this repository connects [PartDb](https://github.com/Part-DB/Part-DB-server) with [Altium Designer](https://www.altium.com/de/altium-designer). |
| 20 | +You can define a symbol and up to three footprints (comma separated) for a part under the EDA-Settings (that is originally used for the KiCad API). |
| 21 | +The parts are then browseable in Altium. |
| 22 | +Footprints and Symbols remains as files in Altium. |
| 23 | + |
| 24 | + |
| 25 | +## Requirements |
| 26 | +- PartDb is running with mySQL (and you have access to it) |
| 27 | +- Altium is connected using ODBC |
| 28 | + |
| 29 | + |
| 30 | +## Install |
| 31 | +- Replace the "yourServerName" string in the SQL files with your servername or IP of the PartDb server. |
| 32 | +- Setup the views parallel to the tables of PartDb on your mySql-Server. The files starting with "create..." are just a help if needed. [HeidiSQL](https://www.heidisql.com) was a good tool therefor. |
| 33 | + - src/allParts (required) |
| 34 | + - src/datasheets (required) |
| 35 | + - src/images (optional, if not used other views (files) have to be edited) |
| 36 | +- The views for datasheets/images returns the first datasheet/image that is found for a part. This datasheet url can be used for the symbol (in Altium) as reference (See also: https://forum.live.altium.com/#/posts/258269/833879). |
| 37 | +- Setup a ODBC connection [mysql ODBC connector](https://dev.mysql.com/downloads/connector/odbc/) with your PartDb database. |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | +### Settings in Altium |
| 43 | +- setup a database connection (DbLib) and connect to your database via ODBC |
| 44 | +- use the settings from the image "AltiumSettings". Note that in your case the table/view is called "allParts" or the name that you have given. |
| 45 | +- the symbols and footprints must be available in file libraries (PcbLib/SchLib) |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +## Usage |
| 51 | +After setting up the columns you should see something like the following. |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | +## Note |
| 58 | +- Footprints and Symbols are stored as Library-Files in Altium |
| 59 | +- This is just an example and experimental |
| 60 | +- The import into Altium is done with "views" wich means that this requires some performance from the database server. |
| 61 | + |
| 62 | + |
| 63 | +## Maintainers |
| 64 | + |
| 65 | +[@electronics4fun](https://github.com/electronics4fun) |
| 66 | + |
| 67 | + |
| 68 | +## Contributing |
| 69 | + |
| 70 | +Feel free to dive in! [Open an issue](https://github.com/electronics4fun/PartDb-Altium-Connector/issues/new) or submit PRs. |
| 71 | + |
| 72 | + |
| 73 | +## License |
| 74 | + |
| 75 | +[MIT](LICENSE) |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
0 commit comments