Print Page | Close Window

How to move (flatten) entities with varying Z-c

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=1713
Printed Date: 01.Jun.2026 at 01:20


Topic: How to move (flatten) entities with varying Z-c
Posted By: picnic16
Subject: How to move (flatten) entities with varying Z-c
Date Posted: 21.Feb.2009 at 03:04
Hi i hope you can help.

I need to flatten objects to z=0, i am using Autocad LT 2000i
The instructions say to make a macro and add it to my toolbar, I have no idea how to do this, This is the message given

Add a new macro (icon) to your toolbar - in fact two single-line macros (tool buttons) - one for selected objects and the second for all objects:
  
[FlattenSel]^C^C_UCS;;_select \_move _p;;0,0,1e99;;_move _p;;0,0,-1e99;;

[FlattenAll]^C^C_UCS;;_move _all;;0,0,1e99;;_move _all;;0,0,-1e99;;
_chprop;_all;;_thickness;0;;
(keep the macro text on a single line)

Do not use it on 3D solids as it may distort them.

(original concept by Randy Richardson)

Thanks in advance for any help

Christopher






Replies:
Posted By: tkelly
Date Posted: 24.Feb.2009 at 06:07
There are 2 ways to flatten objects
 
1. Select all objects: Make the "Z-elevation as 0" i.e if object is line or arc make Z-coordinates as 0 if it is polyline make elevation as 0
 
2. Export the drawing to .dxf format  it would make all object flatten automatically. If you are not able ot export save the drawing in .dxf format
 
Tom
http://www.indovance.com - www.indovance.com



Print Page | Close Window