+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 13
  1. #1
    Junior Member
    Using
    AutoCAD 2009
    Join Date
    Feb 2008
    Posts
    12

    Default Z Co-ordinate - 'Flatten' command

    Registered forum members do not see this ad.

    I am working in an office that uses AutoCAd 2004 LT.
    We often receive drawings from third parties that have Z co-ordinate information and as we are only using 2D it can cause a few problems when snapping to points.
    I am inquiring if there is command or routine that can be incorporated into 2004 LT like the 'Flatten' command in 'Additional Tool' in full version of AutoCAD 2005 which converts all the Z values to 0.

  2. #2
    Senior Member mahahaavaaha's Avatar
    Using
    AutoCAD 2009
    Join Date
    Jul 2007
    Location
    Finland
    Posts
    340

    Default

    Hi,

    add this to you menu:

    Code:
    [FlattenAll]^C^C_UCS;;_move _all;;0,0,1e99;;_move _all;;0,0,-1e99;;_chprop;_all;;_thickness;0;;
    This is a solution based on AutoCAD's "meager" (heh) calculus-abilities; if you move something far far up and then back down, the "small" elevationdifferences in elements tend to dissappear and everything is at 0 elevation.

    HTH

    Petri
    Life is what happens to you while you're busy making other plans.
    John Lennon (1940 - 1980)

  3. #3
    Junior Member
    Using
    AutoCAD 2009
    Join Date
    Feb 2008
    Posts
    12

    Default

    Brilliant - thanks for that. Works a treat.

    No more having to individually rest Z value of items.

    Many thanks.

  4. #4
    Senior Member mahahaavaaha's Avatar
    Using
    AutoCAD 2009
    Join Date
    Jul 2007
    Location
    Finland
    Posts
    340

    Default

    Good to hear!

    Sometimes it's brilliant that errors in programming can be beneficial...

    /Petri
    Life is what happens to you while you're busy making other plans.
    John Lennon (1940 - 1980)

  5. #5
    Forum Newbie
    Using
    AutoCAD LT 2007
    Join Date
    Mar 2008
    Posts
    2

    Default

    i'm not sure if anyone still reads this thread, but i basically have a similar problem, except, being a bit dumb, i dont know how to load that code into a menu or anything. also, i'm on 2007 lt, so will it work?

    Thanks

  6. #6
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,120

    Default

    Add this part to a custom button. Name the button FlattenAll.
    Code:
    ^C^C_UCS;;_move _all;;0,0,1e99;;_move _all;;0,0,-1e99;;_chprop;_all;;_thickness;0;;
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  7. #7
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Sep 2011
    Posts
    54

    Default

    i dont want the 1e99 location, it adds confusion. is there a way for all the coordinates getting to z=0 and not adding the 1e99?

  8. #8
    Quantum Mechanic ReMark's Avatar
    Computer Details
    ReMark's Computer Details
    Operating System:
    Windows 7 Pro 64-bit
    Computer:
    Thinkmate
    Motherboard:
    Intel DX58SO2 LGA1366 X58
    CPU:
    Intel i7-960 Quad-core 3.20GHz 8MB cache
    RAM:
    12GB (3x4GB) PC3-106000 DDR3
    Graphics:
    nVidia Quadro 4000, 2GB GDDR5
    Primary Storage:
    150GB Velocipraptor 10,000 rpm
    Secondary Storage:
    none
    Monitor:
    Dell P24LLH - 24" wide screen LCD
    Discipline
    See details...
    ReMark's Discipline Details
    Occupation
    CAD Draftsman/Designer...chemical manufacturing.
    Discipline
    See details below.
    Details
    I work for a specialty chemical manufacturer. I do a little bit of everything from P&IDs to civil to architectural and structural.
    Using
    AutoCAD 2013
    Join Date
    Nov 2005
    Location
    Norwalk, CT USofA
    Posts
    33,090

    Default

    Have you tried the FLATTEN command?
    "I have only come here seeking knowledge. Things they wouldn't teach me of in college." The Police

    Eat brains...gain more knowledge!

  9. #9
    Super Moderator SLW210's Avatar
    Computer Details
    SLW210's Computer Details
    Operating System:
    Windows 7 PRO
    Computer:
    IBM Lenovo
    Motherboard:
    ACPI x86
    CPU:
    Pentium(R) Dual-Core CPU E5500 @ 2.80GHz
    RAM:
    4 GB RAM
    Graphics:
    Nvidia Quadro 600 1GB
    Primary Storage:
    300 GB
    Secondary Storage:
    650GB
    Monitor:
    ThinkVision 22"
    Discipline
    Multi-disciplinary
    SLW210's Discipline Details
    Occupation
    Design Draftsman
    Discipline
    Multi-disciplinary
    Details
    Mostly do drafting related to manufacturing. From doing site layouts with proposed updates, additions and renovations to be budgeted and submitted for bid, to updating and changing existing drawings to reflect maintenance and repair/revision work done on site.
    Using
    AutoCAD 2011
    Join Date
    May 2007
    Location
    South Florida, USA
    Posts
    9,120

    Default

    Quote Originally Posted by rock1 View Post
    i dont want the 1e99 location, it adds confusion. is there a way for all the coordinates getting to z=0 and not adding the 1e99?
    Adds confusion to what?

    The 1e99 is what makes it work so well.
    “A narrow mind and a fat head invariably come on the same person” Zig Zigler



  10. #10
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Sep 2011
    Posts
    54

    Default

    Registered forum members do not see this ad.

    well, some lines get at z=0 and some at 1e99. can you tell me the way to add just 0 instead of 1e99?

Similar Threads

  1. Flatten
    By CADTutor in forum Application Archive
    Replies: 1
    Last Post: 14th Apr 2009, 11:26 pm
  2. Ordinate Command
    By 80BT in forum AutoCAD Drawing Management & Output
    Replies: 2
    Last Post: 10th Jan 2008, 03:18 pm
  3. Flatten UCS?
    By Tiger in forum AutoCAD General
    Replies: 18
    Last Post: 9th Nov 2007, 09:25 am
  4. FLATTEN command is not perfect??!!
    By MikeP in forum AutoCAD General
    Replies: 3
    Last Post: 1st Sep 2007, 12:17 pm
  5. How to flatten the 'z'
    By Extremecheese in forum AutoCAD Beginners' Area
    Replies: 19
    Last Post: 24th May 2007, 06:13 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts