• Home
  • Guide
    Upload GuideInstallation Guide
  • API Docs
    Development GuideAPI CallsAPI Reference
  • Related Sites
    EasyEDAJLCHUBOSHWLab
  • Editor
    Online Editor (Pro)Client Download
  • Manage extensions
  • LoginRegister
· EasyEDA Extension Marketplace
Home

Guide

Upload GuideInstallation Guide

API Docs

Development GuideAPI CallsAPI Reference

Related Sites

EasyEDAJLCHUBOSHWLab

Editor

Online Editor (Pro)Client Download
LoginRegister

Export GenCAD

oshwhub-official1v1.0.29
(0)Apache-2.0
Export PCB to GenCAD (.cad) format for PCB manufacturing and test data exchange.
Details
Changelog
Historical versions
Comments

Export GenCAD

oshwhub-official1
(0)Apache-2.0
Details
Changelog
Historical versions
Comments

简体中文 | English

Export GenCAD

An EasyEDA Pro extension that exports PCB designs to GenCAD (.cad) file format for PCB manufacturing and test data exchange.

Features

  • Exports PCB to GenCAD 1.4 standard format
  • Parses footprint source data (elibz2/elibu format) for accurate pad geometry and silkscreen outlines
  • Supports native GenCAD CIRCLE and ARC commands (not approximated with line segments)
  • Handles pad rotation angles correctly
  • Outputs TEXT (Designator/Value) with original PCB attributes: coordinates, rotation, mirror, font size
  • Caches footprint data to avoid redundant parsing
  • Exports board outline (supports Polyline, Fill, and Line sources)
  • Exports pad stack definitions with automatic deduplication
  • Exports complete component, pin, net, trace, and via information
  • Automatic coordinate conversion: EasyEDA internal units (mil) to inches

Usage

  1. Open a PCB document in EasyEDA Pro
  2. Click the PCB header menu Export GenCAD → Export GenCAD (.cad)...
  3. The .cad file will be generated and downloaded automatically
  4. The.cad file you can preview atOnline GernCAD Viewer

Output Format

The generated .cad file follows the GenCAD 1.4 format specification with the following sections:

SectionDescription
$HEADERProgram name, version, units (INCH), origin
$BOARDBoard outline (LINE)
$PADSPad geometry definitions (ROUND / RECTANGULAR / OBLONG)
$PADSTACKSPad stack definitions with per-layer pad assignments
$TRACKSTrack width definitions
$SHAPESComponent shapes (silkscreen outline + pin locations)
$COMPONENTSComponent placement (coordinates, rotation, layer, TEXT attributes)
$DEVICESDevice type descriptions
$SIGNALSNet connectivity (NODE)
$ROUTESTrace routing paths and vias
$LAYERSCopper layer definitions
$ENDFile terminator

Project Structure

src/
├── index.ts               # Main logic: data collection, GenCAD generation, file export
├── footprintParser.ts     # Parses elibz2/elibu footprint files (ZIP + JSON)
└── footprintExtractor.ts  # Extracts pad and silkscreen data from parsed primitives

Development

npm install
npm run compile   # Compile TypeScript and bundle to dist/
npm run build     # Compile + package as .eext extension

Other commands:

npm run lint      # ESLint check
npm run fix       # ESLint auto-fix

Tech Stack

  • TypeScript
  • esbuild (bundling)
  • JSZip (parsing footprint ZIP archives)
  • @jlceda/pro-api-types (EasyEDA Pro extension API types)

Requirements

  • Node.js >= 20.17.0
  • EasyEDA Pro >= 3.2.0

License

Apache License 2.0

1.0.28

  • fix: 修复多层焊盘(TH)在预览器中隐藏单层后整体消失的问题,PIN 正确引用 PADSTACK
  • fix: 使用实际铜层数量输出 PADSTACK,不再输出未使用的内层
  • fix: 长圆形焊盘使用 POLYGON + ARC/LINE 描述,修正圆弧方向为 CCW
  • fix: 修复多层焊盘钻孔直径未正确提取的问题(elibu hole.width)
  • feat: SHAPE 使用封装名而非位号,相同封装去重输出
  • docs: 更新 README

1.0.0

初始版本,支持导出 PCB 为 GenCAD (.cad) 格式文件。

暂无数据
暂无数据

Comment

LoginorRegisterto add a comment
All Comments(1)
Sort by time|Sort by popularity

Type

Other

Keyword

ToolExportGenCADManufacturing

Extension Info

Versionv1.0.29
Author

EasyEDA

Published at2026-06-16 03:07:35
Name

export-gencad

UUID

32d0d0812f004f08a707b81ff309ab0c

Works with^3.2.0
Report

Report abuse

Related links

Homepage:https://github.com/easyeda/eext-export-gencad
Feedback:https://github.com/easyeda/eext-export-gencad/issues
Repository:https://github.com/easyeda/eext-export-gencad
Product
Online Editor(Pro Edition)
Online Editor(Std Edition)
Client Download
Education Edition
On-Premises-Hosting
Services
Prototyping - JLCPCB
Component Purchasing - LCSC
Open Source Hardware - OSHWLab
Policy Terms
Legal
Privacy Policy
Project License Agreement
Cookie Notice
Contribute
Thanks
Help
Tutorials (Pro Edition)
Tutorials (Std Edition)
Edition Update History (Pro Edition)
Edition Update History (Std Edition)
Forum
About Us
About Team
Contact Us

© 2026 EasyEDA All rights reserved

ISO/IEC
Cookie Notice
Our website uses essential cookies to help us ensure that it is working as expected, and uses optional analytics cookies to offer you a better browsing experience. To find out more, read our Cookie Notice