LTunlimited RSS
23.07.2010, 09:43
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: ^C^C_UCS;;_select;\_move;_p;;0,0,1e99;;_move;_p;;0,0,-1e99;; To flatten the entire drawing: ^C^C_UCS;;_move;_all;;0,0,1e99;;_move;_all;;0,0,-1e99;; 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.Go to the original post...