Build the cases from Python scripts #11

Merged
rob merged 1 commit from feat/case-scripts into main 2026-11-16 12:01:53 +00:00
Collaborator

The saved FreeCAD models held only finished solids, with no history to edit. Each case is now a Python script next to its board, with its dimensions named at the top. The two node cases share scripts/case_parts.py.

scripts/generate_prints.py runs every case script, writes the base and lid as 3MF files, and saves a .FCStd beside the script for viewing.

Behavioural changes:

  • The .FCStd files are removed from git and ignored. They are build output now.
  • A release is cut when a case script or scripts/case_parts.py changes, not when a .FCStd does.
  • The FreeCAD image installs fonts-dejavu-core for the lid lettering, so the runner rebuilds the image once.

Tested: all six script-built parts match the previously committed models, with zero volume difference in either direction. The build inside the Docker image matches the local flatpak build the same way. It has not run on the runner.

Merging this cuts a release.

The saved FreeCAD models held only finished solids, with no history to edit. Each case is now a Python script next to its board, with its dimensions named at the top. The two node cases share `scripts/case_parts.py`. `scripts/generate_prints.py` runs every case script, writes the base and lid as 3MF files, and saves a `.FCStd` beside the script for viewing. Behavioural changes: - The `.FCStd` files are removed from git and ignored. They are build output now. - A release is cut when a case script or `scripts/case_parts.py` changes, not when a `.FCStd` does. - The FreeCAD image installs `fonts-dejavu-core` for the lid lettering, so the runner rebuilds the image once. Tested: all six script-built parts match the previously committed models, with zero volume difference in either direction. The build inside the Docker image matches the local flatpak build the same way. It has not run on the runner. Merging this cuts a release.
The saved FreeCAD models held only finished solids, so a case could not be edited. Each case is now a script, and the print files and a FreeCAD file for viewing are built from it.
rob merged commit f1c91d5114 into main 2026-11-16 12:01:53 +00:00
rob deleted branch feat/case-scripts 2026-11-16 12:01:53 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
CamperCan/hardware!11
No description provided.