AutoCAD × AICAD standards, kept by AI日本語GRAMSHIFT AI

AutoCAD × AI / Color & linetype

FLATTEN command not working or unknown in AutoCAD? Other ways to set Z to 0

FLATTEN is part of Express Tools. If AutoCAD answers "Unknown command FLATTEN", Express Tools is not loaded or not installed. You can still set Z to 0 with the Properties palette or with the MOVE command, without FLATTEN.

Try it freeSee how to ask AI

An AutoCAD drawing before and after: 28 items that did not match the company CAD standard, then 0
A drawing with 28 items off the company standard, brought to 0 by asking AI

Checking is free

You get a plain list of everything that does not match your standard, with a count for each kind. No limit on how often you check.

One UNDO restores it

A fix to the open drawing is a single undo step. You decide whether to save the drawing.

Drawings stay on your PC

Drawing files are read on your own PC. This tool does not send them anywhere.

Why FLATTEN is missing or does nothing

Steps with standard AutoCAD tools

  1. Switch to the Top view (VIEW command, or PLAN and then World).
  2. Select everything (Ctrl+A) and open the Properties palette (Ctrl+1).
  3. In the object type list at the top, choose a type such as Line. Set Start Z and End Z to 0. Do the same for Center Z of circles and arcs, Position Z of text and block references, and Elevation of polylines and hatches.
  4. For many object types at once, use MOVE twice. Run MOVE, type ALL, press Enter, then type 0,0,0 as the base point and 0,0,1e99 as the second point. Run MOVE again, type P (previous), press Enter, then type 0,0,0 and 0,0,-1e99. Every Z value ends at 0.
  5. Set ELEVATION back to 0 so new objects are drawn at 0.
  6. To add FLATTEN itself, open the AutoCAD installation in Windows Settings, choose Modify, and add Express Tools.

Ask AI to do it in one step

Install Drawing Rule Fixer for AutoCAD in an AI client such as Claude Desktop, then ask:

The AI returns a list of objects whose Z value is not 0, with the layer and the current Z value for each. It works whether or not Express Tools is installed.

Checking is free. With a subscription, you can set the listed objects to 0 in one step and check all drawings in a folder. Objects that could not be fixed in bulk stay in the list, so you can see which ones to review by hand. A fix applied to a drawing open in AutoCAD can be reverted with one UNDO.

Which method to use

For one drawing with a few object types, the Properties palette is enough. The MOVE method is quick when the whole drawing must go to 0. If you receive drawings with stray Z values every week, tell the AI your rule once and repeat the same check with one request.

FAQ

Why does AutoCAD say "Unknown command FLATTEN"?

FLATTEN belongs to Express Tools. Type EXPRESSTOOLS to load it. If that command is also unknown, Express Tools is not installed, so add it from the AutoCAD installation or use the Properties palette or the MOVE method.

Is FLATTEN available in AutoCAD LT?

No. AutoCAD LT does not include Express Tools. Use the Properties palette or the MOVE method to set Z to 0.

FLATTEN ran, but some objects still have a Z value. Why?

Objects inside blocks keep the Z values of the block definition. Open the block in the Block Editor and set the values to 0 there. Also check that you ran FLATTEN from the Top view.

Can I see which objects have a Z value before I change anything?

Yes. The check result is a list with the layer and current Z value of each object. You can review that list before asking for the fix.

Asking the AI to fix everything in the open drawing: 28 issues become 0

The tool used in this article

Drawing Rule Fixer for AutoCAD

Give your AI your company drawing rules (layers, colors, linetypes, text height). It checks the drawing open in AutoCAD and fixes it in one go. Ask in plain English from an AI client such as Claude Desktop. No AI app? The included screen does the same checks and fixes.

  • Free: checking a drawing, listing layers and text, previewing a fix, creating a rules file
  • Subscription: fixing drawings, writing text back, and checking, fixing and translating a whole folder of drawings (DWG and DXF)

Try it free

Checking is free with no limit. Fixing is ¥1,980 a month, and you can cancel any time. Questions are welcome at contact@gramshift.com.

Related articles