Print Page | Close Window

flatten all drawing in single command

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=10094
Printed Date: 31.May.2026 at 22:59


Topic: flatten all drawing in single command
Posted By: deal
Subject: flatten all drawing in single command
Date Posted: 04.Mar.2014 at 20:11
morning all

http://www.cadforum.cz/cadforum_en/qaID.asp?tip=872" rel="nofollow - How to move (flatten) entities with varying Z-coordinates to Z=0?  autocad lt 2014


i try "flatten"command but not exist in autocad lt2014

pleasee... tq..Embarrassed



Replies:
Posted By: Vladimir Michl
Date Posted: 04.Mar.2014 at 23:24
You have to add the mentioned macros to your menu. They are not calling any "flatten" command.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: John Connor
Date Posted: 04.Mar.2014 at 23:52
Another option would be to use the old CHANGE command and the ELEVATION option. 


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: deal
Date Posted: 05.Mar.2014 at 03:32
morning Big smile

macros ????.where can i find macros menu icon or macros command ...

tq...Big smile


Posted By: John Connor
Date Posted: 05.Mar.2014 at 11:37
dude, buy a pair of glasses!  The link that YOU included in YOUR first post has the macros in it!  What, we have to do everything for you?  Here they are again.  I changed the color to red and made them larger so you wouldn't miss them.

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; the displayed format is to be used for old MNU/MNS files - if you add the macro through the new CUI dialog, use just its code starting with ^C)

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

 

-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: rs_higgins
Date Posted: 05.Mar.2014 at 20:41
uploads/427067/flat.lsp" rel="nofollow - uploads/427067/flat.lsp

EASY John go outside and smoke a cigarette and calm you nerves.

Most AutoCad classes teach you how to draw not how to write or install macro's

Here is something you can use that will do your entire drawing.

Not just one item at a time

Flatten your drawing as though you where looking at it from the top

First you will need to load this in AutoCAD

Note where you save this file to your lisp file location> c:\lispfiles\Flat.lsp

This is where I keep all my lisp files

Then in the command line type.. (load "c:/lispfiles/flat") YEP use the parenthesis

Note use forward / when typing you file location

You can do a little research and find the lisp file location that will auto load this each time you open AutoCAD and drop the file in that folder




-------------
No electrons were harmed in the making of this post. I will admit a few protons were momentarily Inconvenienced


Posted By: John Connor
Date Posted: 05.Mar.2014 at 22:55
Higgy my man.  Did you happen to notice that the original poster is using AutoCAD........wait for it........LT!

As nice as that lisp might be it won't do him a bit of good.  That's why the macros (two) or the old Change command would be the first two options worth trying.  There are a couple of more LT users can try but let's not get the OP any more confused than he already is.

I don't smoke but I do inhale once in a while.


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>



Posted By: rs_higgins
Date Posted: 05.Mar.2014 at 23:17
Then would you like to take some time and teach him how to use the macro's or just keep hitting when he is down. he came fro help. Not to get his glasses knocked off.

Deal: sorry I did miss the LT and John is right there the lisp will not work for you.

OK see Pup you can be funny "I don't smoke but I do inhale once in a while."                   once in a while.



-------------
No electrons were harmed in the making of this post. I will admit a few protons were momentarily Inconvenienced


Posted By: John Connor
Date Posted: 05.Mar.2014 at 23:29
Put your glasses on Higgy.  The instructions are given above the macro.  If the OP checks his Help files re: creating a toolbar he will find instructions courtesy of the Customization Guide that comes with AutoCAD 2014. 

OK...the solution came to me in a dream last night.

Higgins will post his email address.  Deal will email him the drawings.  Higgins will flatten them using the lisp routine he mentioned then he will email the drawings back to Deal.  Deal is happy as his drawings are fixed.  Higgins is happy that he has helped a fellow human being and his place in heaven is once again assured.  And I'm happy because I had a dream that helped the both of them.

God!  It is great to be alive!


-------------
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>




Print Page | Close Window