Skip to content

Conversation

@Exceluyi
Copy link

@Exceluyi Exceluyi commented Nov 1, 2025

/claim #114
/closes #114

This PR introduces support for .kicad_sym files to enhance the schematic view in the KiCad component converter.

Features

  • Parses .kicad_sym files to extract pin information, including pin numbers, names, and positions.
  • Generates schPortArrangement and pinLabels for the schematic_component in the tscircuit soup.
  • Integrates the .kicad_sym parsing into the existing file processing workflow in the web application.

Changes

  • Added a new Zod schema for .kicad_sym files in src/kicad-zod.ts.
  • Created src/parse-kicad-sym-to-kicad-json.ts to parse .kicad_sym S-expressions into a JSON representation.
  • Created src/convert-kicad-sym-to-tscircuit-schematic.ts to convert the KicadSymJson into tscircuit schematic information.
  • Updated src/convert-kicad-json-to-tscircuit-soup.ts to optionally accept KicadSymJson and populate the schematic_component.
  • Updated the web application in src/site/App.tsx to handle .kicad_sym files and pass them to the conversion process.
  • Added a new test file tests/schematic-from-sym.test.ts to verify the new functionality.

@vercel
Copy link

vercel bot commented Nov 1, 2025

@Exceluyi is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@techmannih techmannih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need visual snapshots?

@Exceluyi
Copy link
Author

Exceluyi commented Nov 1, 2025

Need visual snapshots?

@techmannih done

@Exceluyi Exceluyi requested a review from techmannih November 1, 2025 12:21
Copy link

@MustafaMulla29 MustafaMulla29 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The snapshot doesn't look like a resistor

@Exceluyi Exceluyi marked this pull request as draft November 1, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix the schematic view by also optionally accepting kicad_sym and converting into a schPortArrangement and pinLabels

3 participants