Display full version of the post: Z-Axis Lisp

jimmyp75
29.07.2008, 19:22
I work with drawings of Manufacturing facilities and theese DWG files get passed around over time and get all messed up.
 
One problem is that for some reason or another, lines and objects on a 2D drawing are on different Z-Axis Planes.  you can select a line and look at the properties and the "Start Z" will have a different value than the "End-Z". 
 
I was wondering if there if anyone knows of a LISP routine or command where you could select a group of line/objects and it would reset the Z-Axis values to Zero.
 
Thanks in Advance.

PepaR
29.07.2008, 22:19
This lisp can help you probably.
 
uploads/20080729_221912_flatten.lsp

Belianis
02.08.2008, 17:54
You can also download APlus plugin from http://www.cadaplus.com .
There is command AFLAT which resets Z-axis values to 0.
You may also use command MZ (Move just in Z) to move particular objects or even create their copy just in Z-axis (with COZ command). There are also many command which will help you out with finding out problems in drawings from Manufacturers, such as SLANTED command that search for lines that appear to be straight but are not.
 
Check it out, you won't regret :)

jimmyp75
04.08.2008, 14:12
This Lsp program did exactly what i wanted... except that i tried it on an actual 3d drawing that i was working on and it flatened everythign out....but the Undo does nto work!  so, Luckily i ahd jjsut saved the fiel and didn't lose any work.
 
Other than that, works great..  Thanks for the help.