dobrovolskiy.com
RU
← Notes2026-09-02 · by Dmitriy Dobrovolskiy

Does Claude work with AutoCAD? What an LLM can and cannot do with a DWG file

A straight answer from someone who built the plugin: Claude cannot open a DWG in the chat window, but an agent docked inside AutoCAD 2025/2026 can read the live drawing, count blocks, audit schedules, replace text everywhere and run commands — with a confirmation dialog on every change.

Claude on its own cannot open a DWG: it is a binary format and the chat interface has no AutoCAD in it. What works is the other way round — put the model inside AutoCAD. AutoGAD is a .NET 8 plugin for AutoCAD 2025/2026 that gives Claude (or any OpenAI-compatible model) a snapshot of the open drawing and tools to query entities, blocks, layers and tables, and to change text, layers and properties after you confirm each edit. This note lists exactly what that can and cannot do, and what it costs per question.

The short answer

If you upload a .dwg to a chat window, the model gets a binary blob it cannot parse. You can paste a DXF excerpt, a screenshot or a text export, and Claude will reason about it well — but it is reasoning about a copy, not your drawing. Every change still has to be typed back by hand.

The useful configuration is the reverse: the model lives inside AutoCAD and reads the live drawing database through the managed API. I built that plugin — AutoGAD — because I spend my days producing electrical and lighting working documentation in AutoCAD and wanted the assistant next to the drawing, not in a browser tab. This note is what it actually does, so you can decide whether the same pattern fits your work.

What the model sees

Every conversation starts with a compact snapshot of the active drawing: metadata, units, extents, layers, layouts, entity counts, the block inventory and the text of schedules. The snapshot is deliberately small and stable so that prompt caching works and repeated questions are cheap.

When it needs more, the model calls read tools over the live DWG database: query_entities, get_block_inventory, get_layers, get_tables and get_context. So "how many VPD projectors and SKR linear fixtures are installed?" is answered by counting real block references, not by guessing from a picture.

What the model can change

Write tools: replace_text (global find and replace across text, attributes, MLeaders and table cells), set_text, create_text, set_layer_state, set_custom_property and run_command, which hands an arbitrary command line to AutoCAD.

Every write opens a confirmation dialog with the exact change before anything happens. There is an Auto-approve toggle and an "Allow all this session" button for when you trust the session — off by default. A typical confirmed request: "Replace the project code К2.АХП-2.2025 with К2.АХП-3.2025 everywhere."

What it does not do

Memory across sessions

remember stores per-user notes ("I always size cables for 380 V and cos φ 0.95") and per-drawing notes (project code, which layers and blocks mean what, decisions made). They are injected into later sessions, so the assistant stops asking the same questions. AUTOGADMEM shows and deletes what it remembers.

Models and cost

The default model is claude-opus-5 through the Anthropic API; any OpenAI-compatible endpoint works too — OpenAI, OpenRouter or a local server, which also answers the "can this stay offline?" question. The client is raw HTTP, no SDK, because a plugin hosted inside AutoCAD cannot carry one.

Each answer ends with a cost line, for example 3 calls · in 1,234 (+18,000 cached) · out 800 · ≈ $0.05 this turn, $0.21 this session. The cached figure is the drawing snapshot being reused between turns. The API key is stored with Windows DPAPI, so it never sits in a config file in plain text.

Installing it

A per-user Inno Setup installer puts the plugin under %APPDATA%\AutoGAD\bin and registers it for demand-loading in every AutoCAD 2025/2026 profile of your account — no admin rights. A per-machine WiX MSI with an Autodesk Autoloader bundle exists for GPO or SCCM deployment. Start AutoCAD, an AutoGAD ribbon tab appears, AUTOGAD opens the chat palette. The current version is 1.0.5.

The same thing for FreeCAD

FreeGAD is the sister project: the same agent as a FreeCAD 1.0/1.1 workbench in Python, with one extra tool — take_screenshot sends the rendered 3D view to the model so it can check its own edits visually. The design notes for both plugins are in a separate write-up.

FAQ

Can Claude open a DWG file directly?

No. DWG is a binary format and the chat interface cannot parse it. To work with a drawing the model needs a plugin inside AutoCAD that reads the drawing database and exposes it as tools — that is what AutoGAD does.

Which AutoCAD versions are supported?

AutoCAD 2025 and 2026 (the .NET 8 generations). AutoCAD 2024 and earlier use .NET Framework and are not supported.

Does it understand Russian working documentation?

Yes. The built-in engineering persona knows Russian working-documentation conventions — load calculations, breaker sizing and cable checks — and the text tools handle Cyrillic attributes, MLeaders and table cells.

Can you build a similar assistant for my CAD or my company's drawing standards?

Yes. The pattern — snapshot, read tools, confirmed writes, memory — transfers to any host with a scripting API. I do this live on a shared screen, billed by the hour.

Want something like this?

I build it live on a Zoom call, you watch the screen, the timer stops when you say stop. First 15 minutes are free.

$50 / hourBook an hour

More projects

AutoGAD: Claude inside AutoCADAn LLM agent docked inside AutoCAD 2025 that reads, audits and edits live drawings.