FreeCAD Workbench to integrate KiCAD v9 API
- Python 89.8%
- Shell 8.4%
- CMake 1.8%
|
|
||
|---|---|---|
| freecad/kiconnect | move tests to preferred location for FreeCAD Test Workbench | |
| images | rename screenshot | |
| .gitignore | ignore more cruft | |
| AGENTS.md | mood | |
| CMakeLists.txt | boilerplate, build/config, legal, not sure what all is even needed | |
| LICENSE | boilerplate, build/config, legal, not sure what all is even needed | |
| MANIFEST.in | boilerplate, build/config, legal, not sure what all is even needed | |
| package.xml | add kicad-python depend to package manifest | |
| pyproject.toml | cleanup pyproject and pin kipy version to 0.5.0 | |
| README.md | draft v1.0 README | |
| setup.py | cleanup pyproject and pin kipy version to 0.5.0 | |
KiConnect
KiCAD API Workbench
screenshot of FreeCAD, KiCAD and KiCAD 3d View
Development
The basic workflow is to create a virtual environment, install dependencies and run FreeCAD from that location.
You can either clone KiConnect directly into your Mod/ directory, or symlink to another location.
You will need to determine your mods directory
- Open Addon Manager ( Tools > Addon Manager )
- Click the Gear Icon
- Click 'Open Addons Folder'
cd .local/share/FreeCAD/v1-1/Mod/ # or your Mod directory
git clone https://codeberg.org/kiconnect/KiConnect.git
cd KiConnect
python -m venv .venv
. ./venv/bin/activate # /.fish
pip install .
FreeCAD
Alternatively, you can clone to your usual development area and symlink.
cd ~/devel/
git clone https://codeberg.org/kiconnect/KiConnect.git
cd .local/share/FreeCAD/v1-1/Mod/ # or your Mod directory
ln -s ~/devel/KiConnect
python -m venv .venv
. ./venv/bin/activate # /.fish
pip install .
FreeCAD
AI Policy
NO AI.
If you attempt to push AI slop you will be permanently banned from contributing.