# Cad Space Planning

> Use when a user wants to extract, inspect, redesign, or deepen a DWG/DXF architectural or interior space plan, especially when room positions, retained elements, circulation, zoning, furniture capacity, or CAD/PDF deliverables must be verified against the real drawing.

- Skill: `qq-l-xx/cad-space-planning` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add qq-l-xx/cad-space-planning`
- Raw SKILL.md: https://api.skillmd.com/api/skills/qq-l-xx/cad-space-planning/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Docs & Writing
- Author: qq-l-xx (https://skillmd.com/u/qq-l-xx)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/qq-l-xx/cad-space-planning

---


# CAD Space Planning

## Core Rule

Ground every planning claim in CAD geometry or exact label coordinates. Never infer room identity or boundaries from a rendered screenshot when DXF entities are available.

## Workflow

1. Preserve the source file. Work on copies.
2. Identify available CAD tools. Convert DWG to DXF offline when possible.
3. Audit layouts, entity counts, and hidden/frozen layers.
4. Enable layers in a copy before rendering. A blank render often means layers are off.
5. Extract room labels with exact coordinates. Use them to verify room identity and adjacency.
6. Clarify retained elements, editable walls/doors/furniture, occupancy, capacity, circulation, zoning, and expansion.
7. Present zoning as a concept only until it is overlaid on the real plan.
8. Before detailed design, verify every room against walls, columns, doors, clearances, and circulation.
9. Keep new work on dedicated design layers. Never modify retained source geometry.
10. Export editable CAD plus PDF/PNG previews and a room/furniture schedule.

## Audit Commands

```powershell
python scripts/audit_cad.py audit plan.dxf --json
python scripts/audit_cad.py labels plan.dxf --contains "办公室" --json
python scripts/audit_cad.py enable-layers plan.dxf visible.dxf
```

For DWG conversion and rendering options, read [references/tooling.md](references/tooling.md).
For planning checks and deliverables, read [references/planning-checklist.md](references/planning-checklist.md).

## Design Gates

Do not call a diagram a detailed plan unless it shows real wall and column boundaries, retained items, permitted new walls and doors, continuous corridors, furniture layouts, key dimensions, and occupancy counts.

Get user approval after:

1. verified existing-room map;
2. functional program;
3. real-plan zoning and circulation;
4. detailed furniture and partition layout.

## Common Mistakes

| Mistake | Correction |
|---|---|
| Guessing room positions from PNG | Extract `TEXT`/`MTEXT` coordinates from DXF |
| Blank render treated as empty drawing | Audit and enable off/frozen layers in a copy |
| Abstract blocks presented as a plan | Overlay zones on the real drawing first |
| Moving retained walls or doors | Record immutable geometry before designing |
| Adding rooms without a corridor | Require every room to open directly to circulation |
| Claiming code compliance | Require qualified professional review |

## Safety

Treat outputs as concept or schematic design unless reviewed by qualified local architecture, fire, structural, MEP, accessibility, and code professionals. Explicitly flag unresolved egress, fire compartment, load, and construction-dimension issues.

