AutoCAD × AICAD standards, kept by AI日本語DeutschFrançaisEspañolPortuguêsItaliano한국어GRAMSHIFT AI

AutoCAD × AI / Color & linetype

How do I find objects with a non-zero Z value in AutoCAD and flatten them to 0?

Select the objects and check their Z values in the Properties palette, then set the start and end Z to 0 there, or flatten them with the Express Tools FLATTEN command. In a 2D drawing, a non-zero Z value (elevation) is often the reason you cannot snap to intersections, distances come out wrong, or FILLET and TRIM fail.

See 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.

Where Z values come from

Seen from above in plan view, these objects look normal. The Z values stay in the drawing unnoticed.

Steps with standard AutoCAD tools

  1. Select everything (Ctrl+A) and open the Properties palette (Ctrl+1).
  2. In the object type list at the top, choose a type such as Line. Check whether Start Z and End Z show *VARIES* or a value other than 0.
  3. Type 0 and press Enter. Do the same for circles (Center Z) and text (Position Z).
  4. If Express Tools is installed, use the FLATTEN command to flatten the selected objects in one step.
  5. To keep new objects from getting an elevation, check that ELEVATION is 0. To ignore the Z value of snap targets, set OSNAPZ to 1.

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.

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 a single drawing, the Properties palette or FLATTEN is enough. If you check incoming drawings every time, or need to fix dozens of drawings, tell the AI your rule once. After that you can repeat the same check with one request: "Check this drawing".

FAQ

How can I quickly check whether Z values are present?

Switch to a side view, for example the Front view (VIEW command). Objects with an elevation appear to float. When you are done, return to the Top view.

Measured distances do not match the drawing dimensions. Why?

If the start and end points are at different heights, AutoCAD measures the sloped 3D length. Set Z to 0 and the distance matches the plan distance.

Can I see which objects have a different Z value before fixing?

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.

  • 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