add support for kicad footprints and schematic symbols#2
Closed
LokiMetaSmith wants to merge 7 commits intoholg:mainfrom
Closed
add support for kicad footprints and schematic symbols#2LokiMetaSmith wants to merge 7 commits intoholg:mainfrom
LokiMetaSmith wants to merge 7 commits intoholg:mainfrom
Conversation
This commit creates a TODO.md file that outlines the plan for extending acadlisp to support generating KiCad symbols and footprints. It breaks down the work into research, symbol export, footprint export, and 3D model support sub-tasks.
This commit implements the first phase of KiCad support: exporting schematic symbols (.kicad_sym). Changes: - Added `DrawEntity::Pin` and `DrawEntity::Property` to the interpreter's drawing model. - Added `kicad-pin` and `kicad-prop` AutoLISP functions. - Created `src/kicad.rs` to handle serialization to KiCad S-expression format. - Updated `src/lib.rs` and `src/main.rs` to handle the new entity types in existing exporters (SVG, JSON, DXF). - Exposed `get_kicad_sym` via the WASM API. - Added unit tests for symbol generation. - Updated TODO.md.
This commit completes the implementation of KiCad export features by adding support for .kicad_mod footprint files. Changes: - Added `DrawEntity::Pad` to represent footprint pads. - Added `kicad-pad` AutoLISP function. - Implemented `to_kicad_mod` in `src/kicad.rs` to generate footprint S-expressions. - Implemented `simulate_layer_command` in the interpreter to allow switching layers via `(command "LAYER" ...)` which is crucial for defining footprint geometry on specific layers (F.SilkS, F.Cu, etc.). - Updated all exporters (DXF, SVG, JSON) to safely handle the new Pad entity (ignoring or simple rendering). - Added unit tests for footprint generation. - Updated TODO.md.
This commit completes the implementation of KiCad export features by adding support for .kicad_mod footprint files. Changes: - Added `DrawEntity::Pad` to represent footprint pads. - Added `kicad-pad` AutoLISP function. - Implemented `to_kicad_mod` in `src/kicad.rs` to generate footprint S-expressions. - Implemented `simulate_layer_command` in the interpreter to allow switching layers via `(command "LAYER" ...)` which is crucial for defining footprint geometry on specific layers (F.SilkS, F.Cu, etc.). - Updated all exporters (DXF, SVG, JSON) to safely handle the new Pad entity (ignoring or simple rendering). - Added unit tests for footprint generation. - Updated TODO.md.
…10567944346788693545 Add TODO.md with KiCad export roadmap
This commit completes the implementation of KiCad export features, adding support for both schematic symbols (.kicad_sym) and footprint modules (.kicad_mod). Key Changes: - **Core Interpreter**: Added `DrawEntity::Pin`, `DrawEntity::Pad`, and `DrawEntity::Property` to represent KiCad-specific primitives. - **Lisp Extensions**: Added `kicad-pin`, `kicad-pad`, and `kicad-prop` AutoLISP functions. Implemented `(command "LAYER" ...)` simulation to allow layer switching (crucial for footprints). - **Export Module**: Created `src/kicad.rs` to serialize entities into KiCad S-expression format. - **API**: Exposed `get_kicad_sym` and `get_kicad_mod` in the Rust/WASM API. - **Existing Exporters**: Updated SVG, DXF, and JSON exporters to safely handle new entities (ignoring them or rendering simple placeholders where appropriate). - **Documentation**: Updated `README.md` with usage examples for KiCad export. - **Tests**: Added comprehensive unit tests in `src/kicad_tests.rs`. - **Roadmap**: Updated `TODO.md` to reflect completed tasks. Tests passed successfully. Temporary files removed.
…10567944346788693545 Implement KiCad Export (Symbols & Footprints)
holg
added a commit
that referenced
this pull request
Dec 27, 2025
…-todo-10567944346788693545, needed some fixes for the different display systems
Owner
|
Merged it into branch kicad-export, and some addson |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
should allow for defining autolisp files and export them for use in kicad