How do you convert a 3D Polyline to a 2D Polyline?

How do you convert a 3D Polyline to a 2D Polyline?

You can use the FLATTEN command to convert a 3D Polyline to a 2D Polyline . FLATTEN projects the entities onto the X-Y plane of the current view, which in the case of a 3D polyline will convert it to a 2D Polyline.
Warning
When using this command in this manner make sure that you are in the PLAN view of the world UCS first, otherwise you will get unexpected results.

Notes
Converting a 3D Polyline to a 2D Polyline will result in the loss of any Z coordinate values. If this information is important to you, then you should convert a COPY of the original 3D Polyline, rather than working with it directly.