×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

getting rid of "Z" values

getting rid of "Z" values

getting rid of "Z" values

(OP)
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.

RE: getting rid of "Z" values

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

RE: getting rid of "Z" values

Please try flatten.lsp downloadable from:
http://www.markcad.com/mm_programs.htm
http://www.markcad.com/download/Flatten.lsp

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

RE: getting rid of "Z" values

(OP)
Thanks for the feedback.  The flatten.lsp program works great.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources