@typecad/kicad2typecad
Version:
Generate typeCAD code from KiCAD PCB files
32 lines (20 loc) • 1.08 kB
Markdown
# @typecad/kicad2typecad
Parse KiCad PCB board files (`.kicad_pcb`) and generate typeCAD code. This tool is designed to convert KiCad PCB design data into typeCAD format.
## Features
- Parses tracks and transforms them into typeCAD `TrackBuilder` chains.
- Parses components to generate component placement code, including rotation.
- Parses vias sections to generate via code.
- Outputs typeCAD code
## Installation
To use this package, ensure you have Node.js and npm installed. Then, install the package using npm:
```bash
npm install -g @typecad/kicad2typecad
```
## Usage
To run the program, use the following command, providing the path to your KiCad PCB file:
```bash
npx tsx kicad2typecad ./index.ts <path_to_kicad_pcb_file>
```
Replace `<path_to_kicad_pcb_file>` with the actual path to your `.kicad_pcb` file.
The console will contain all the generated code. It can then be copied and pasted into your code.
_NOTE: the component names are not the actual typeCAD object names, so you'll likely need to identify which is which_