+ Reply to Thread
Results 1 to 5 of 5

Extract AutoCAD XYZ coordinates

  1. #1
    Registered User
    Join Date
    03-19-2008
    Posts
    4

    Extract AutoCAD XYZ coordinates

    I am trying to extract (and separate into 3 columns) the numbers only, positive or negative portion of (XYZ) Coordinates copied from AutoCAD and pasted into column A
    X = 96179.9699 Y = 61973.9793 Z = 1368.0025
    In column B,C and D, I have tried to use Find Mid and other means
    Please Login or Register  to view this content.
    but because of the varied length of the coordinates eg:
    X = 0.0207 Y = 0.0000 Z = 0.0000
    I get bad returns such as 0.0207 Y

    Also, I need the number to include the hyphen in any negative coordinate.

    Thanks in advance for any help you can give.
    Attached Files Attached Files
    Last edited by rkoog; 06-29-2009 at 08:45 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Extract AutoCAD XYZ coordinates

    X: =mid(a1, search("x", a1) + 3, search("y", a1) - search("X", a1) - 3) + 0

    y: =mid(a1, search("y", a1) + 3, search("z", a1) - search("y", a1) - 3) + 0

    z: =mid(a1, search("z", a1) + 3, 255) + 0
    Last edited by shg; 06-26-2009 at 11:53 AM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-19-2008
    Posts
    4

    Re: Extract AutoCAD XYZ coordinates

    I tried the formulas in the Excel file (attached) but am getting Value returns.
    Attached Files Attached Files

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Extract AutoCAD XYZ coordinates

    er you are in row 2 so adjust formula to reflect that a2 not a1
    also change format of cells to number 4 decimal places
    Last edited by martindwilson; 06-29-2009 at 08:02 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Registered User
    Join Date
    03-19-2008
    Posts
    4

    Re: Extract AutoCAD XYZ coordinates

    Thank you all very much. You have saved me much time and frustration. The problem is solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1