Despite the fact that AutoCAD LT is a 2D drafting program, not all the files you receive will be exactly 2D…even if they should be. Sometimes some accidental Z coordinates get into a drawing, making it challenging to add new geometry or pull accurate distances from existing objects.
Full AutoCAD has the Express Tool FLATTEN to help with this situation, but as you’re aware, AutoCAD LT does not have Express Tools.
Fortunately, this is one of the cases where it’s fairly easy to replicate the Express Tool behavior with a CUI macro. Here’s the syntax:
To flatten selected objects:
To flatten the entire drawing:
These macros work by moving geometry waaaay up and then waaaay back down – far enough that any residual Z coordinates get rounded down to zero.