Display full version of the post: flatten all drawing in single command

deal
04.03.2014, 20:11
morning allHow to move (flatten) entities with varying Z-coordinates to Z=0? autocad lt 2014i try "flatten"command but not exist in autocad lt2014pleasee... tq..

Vladimir Michl
04.03.2014, 23:24

You have to add the mentioned macros to your menu. They are not calling any "flatten" command.

John Connor
04.03.2014, 23:52
Another option would be to use the old CHANGE command and the ELEVATION option. 

deal
05.03.2014, 03:32
morning macros ????.where can i find macros menu icon or macros command ...tq...

John Connor
05.03.2014, 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.
 

rs_higgins
05.03.2014, 20:41
uploads/427067/flat.lsp

Normal
0




false
false
false

EN-US
X-NONE
X-NONE













MicrosoftInternetExplorer4















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 locationYou 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















































































































































/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin-top:0in;
mso-para-margin-right:0in;
mso-para-margin-bottom:10.0pt;
mso-para-margin-left:0in;
line-height:115%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;}



John Connor
05.03.2014, 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.

rs_higgins
05.03.2014, 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.

John Connor
05.03.2014, 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!
John Connor2014-03-06 09:45:53