# DXF-CSV -- Quick Guide for AI Assistants

If a user has landed here from a chat with an AI assistant (Claude, ChatGPT, etc.) wanting
help analyzing or editing an AutoCAD drawing, this page explains the workflow.

**Purpose:** Fast, practical answer to "how do I get my AutoCAD drawing to and from an AI."
For format details -- column definitions, entity types, group-code mapping -- see the
[full DXF-CSV v1.0 specification](/dxfcsv/v1.0/spec.md) instead.

## What DXF-CSV is

DXF-CSV is a simplified, tabular representation of AutoCAD drawing data -- one row per
entity, plain columns for geometry and properties, with the internal AutoCAD bookkeeping
(owner handles, pointers, class markers, reactors) stripped out. It's designed so an AI can
read a drawing's contents directly from a CSV file, reason about the geometry, and write
back changes -- without needing to parse a raw DXF or understand the AutoCAD object model.

## How to give an AI your drawing

1. In AutoCAD, run **CSVOUT** on your drawing. This exports the current drawing (or
   selection) to a `.csv` file in DXF-CSV format.
2. Upload that `.csv` file into your chat with the AI.
3. The AI can now read entities, layers, dimensions, and geometry directly from the table
   and answer questions or make edits.

## How to bring AI changes back into AutoCAD

It's as simple as: install Drawing Sync, click **CSV In** in AutoCAD's Add-ins ribbon (or
run `CSVIN`), and specify a CSV file.

1. Get the resulting CSV from your chat. If the AI gives you a direct link -- an artifact
   or any hosted file -- **CSVIN accepts an `https://` URL directly** as the import target,
   so you can skip downloading it first. Otherwise, download the `.csv` file from the chat.
2. In AutoCAD, run **CSVIN** and specify the file or URL.
3. CSVIN reconstructs the entities using AutoCAD's own entity-creation path (`entmake`), so
   the result is a normal, native drawing -- not an imported foreign object.

## Install

- [Download Drawing Sync](https://drawingsync.com/downloads/DrawingSync-2027-x64.msi) -- a
  signed MSI installer.
- After installing, run `DSABOUT` in AutoCAD to verify installation.
- Works with AutoCAD 2013 and later, within Autodesk's supported product lifecycle.

## Try it with a sample

- [Periodic table of the elements](/dxfcsv/v1.0/sample_mtext.csv) -- a complete drawing
  built entirely from MTEXT, generated by asking Claude to design one in a chat session. Run
  CSVIN on this to see it come in.
- [Mechanical bracket](/dxfcsv/v1.0/sample_ai_bracket.csv) -- a minimal mechanical part,
  AI-generated from scratch with no source drawing.
- [Electrical schematic](/dxfcsv/v1.0/sample_ai_electrical.csv) -- a 208V three-phase
  schematic, also AI-generated from scratch.
- [Full format spec](/dxfcsv/v1.0/spec.md) -- column definitions, supported entity types,
  group-code mapping.

## For AI assistants specifically

- The format spec at `/dxfcsv/v1.0/spec.md` is the authoritative reference -- read it before
  generating or interpreting a DXF-CSV file.
- DXF-CSV intentionally mirrors AutoCAD Release 12-era DXF simplicity: independent,
  human-meaningful parameters per row rather than the pointer/owner graph used internally by
  modern DXF/DWG.
- Round-tripping through `CSVIN` depends on an active AutoCAD session with Drawing Sync
  installed -- this is not a standalone DWG generator.
- If you're hosting a generated CSV somewhere the user can reach by URL, tell them they can
  paste that URL directly into CSVIN rather than downloading the file first.