Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MintJulep on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting rid of "Z" values

Status
Not open for further replies.

hdaven

Mechanical
Joined
Feb 20, 2002
Messages
15
Location
US
I ran into a problem recently which I'd like some feedback on. I recently discovered that our customer sent us some drawings with "z" values in it for the entities and dimensions. An example would be a line that starts at one point and ends at another point, with different "z" values to it. I have a lsp routine that fixes that, but the problem is with the dimension that pertains to the line. The routine doesn't deal with dimensions and their nodes. Does anyone know of an easy solution or lsp routine that can handle this? Any replies are greatly appreciated.

Thank you.
 
If you have the express tools for Autocad there is a command within the express tools called flatten. This is normally used for converting a 3D drawing into a 2D drawing but it also works for removing the Z points of a drawings.

Dean Weldy
 
Please try flatten.lsp downloadable from:

hope this helps.

;;; FLATTEN sets the Z-coordinates of these types of objects to 0
;;; in the World Coordinate System:
;;; "3DFACE" "ARC" "ATTDEF" "CIRCLE" "DIMENSION"
;;; "ELLIPSE" "HATCH" "INSERT" "LINE" "LWPOLYLINE"
;;; "MTEXT" "POINT" "POLYLINE" "SOLID" "TEXT"
;;; copyright 1990-1999 by Mark Middlebrook
;;; Daedalus Consulting
;;; e-mail: markmiddlebrook@compuserve.com
 
Thanks for the feedback. The flatten.lsp program works great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top