# pcad-to-autocad

The pcad-to-autocad skill guides the conversion of P-CAD files into AutoLISP and their rendering in AutoCAD. Use it to automate the route from a .pcad drawing to an AutoCAD run.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install · ★ 1 repo stars
- Author: BinLi2016
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/BinLi2016/Uchannel/tree/HEAD/.agent/skills/pcad-to-autocad/SKILL.md
- Updated: 2026-02-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/pcad-to-autocad

## What it does

The guide uses a Python script, `pcad_to_autolisp.py`, to turn a `.pcad` file into `.lsp`. The script also writes a neighboring `.scr` file, which you can drop into AutoCAD or pass when launching the application with `/b`.

You need Python and an installed copy of AutoCAD, and the `.pcad` file must use UTF-8. Rendering cannot run without AutoCAD. The guide recommends a project-local folder or `h:\automation_temp` to avoid path and permission problems. If AutoCAD raises `numberp: nil`, check whether variables used by `barshape` segments are declared in `params` or `derive`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/pcad-to-autocad/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/pcad-to-autocad/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/pcad-to-autocad/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/pcad-to-autocad/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install BinLi2016/Uchannel .agent/skills/pcad-to-autocad
```

2. **Manually: put the files in place**
- File: `.github/skills/pcad-to-autocad/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/BinLi2016/Uchannel --path .agent/skills/pcad-to-autocad
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/pcad-to-autocad/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add BinLi2016/Uchannel --skill pcad-to-autocad -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/BinLi2016/Uchannel/tree/HEAD/.agent/skills/pcad-to-autocad/SKILL.md

## When to use it
- convert a `.pcad` file into an `.lsp` script
- generate an `.scr` loader for AutoCAD
- launch AutoCAD with the generated script
- trace `numberp: nil` errors in `barshape` segments

## Example prompts
- Convert `drawing.pcad` to `drawing.lsp` and explain how to render it in AutoCAD.
- Create the `.scr` loader for `layout.pcad` and show how to run it in AutoCAD.
- AutoCAD raises `numberp: nil` for `barshape`; help me inspect `params` and `derive`.

## Similar
- [autocad-tianzheng-tools](https://affpapa.org/en/nevibecode/plugins/autocad-tianzheng-tools.md) — plugin · ★ 1596 repo stars
- [dwg-to-excel](https://affpapa.org/en/nevibecode/skills/dwg-to-excel.md) — skill · 340 installs
- [best-cad-mcp](https://affpapa.org/en/nevibecode/mcp/best-cad-mcp.md) — MCP server · ★ 52 repo stars
- [Autodesk Product Help MCP](https://affpapa.org/en/nevibecode/mcp/autodesk-product-help-mcp.md) — MCP server · ★ 1 repo stars
- [Illustrator](https://affpapa.org/en/nevibecode/skills/illustrator.md) — skill · 2200 installs
- [InDesign](https://affpapa.org/en/nevibecode/skills/indesign.md) — skill · 1800 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
