Results 1 to 9 of 9

Thread: Lisp Routine: Decimal to Surveyor Units

  1. #1
    All AUGI, all the time Firmso's Avatar
    Join Date
    2006-03
    Location
    Here, Still
    Posts
    549

    Default Lisp Routine: Decimal to Surveyor Units

    Hi, Does anybody have a Lisp Routine that can convert XY Coordinate (0,0,0) to Surveyor Units (N 0d00'00" w)?

    When I ID a point I need it in Surveyor Units not Decimal.

    Thanks
    Last edited by Firmso; 2009-02-17 at 08:30 PM.

  2. #2
    Certifiable AUGI Addict cadtag's Avatar
    Join Date
    2000-12
    Location
    Cairo - no, not Illinois
    Posts
    2,729

    Default Re: Lisp Routine: Decimal to Surveyor Units

    I'm not following what you're looking for here -- The example you gave is an angular value, and there's no possible way to get from an ID command on a point (X and Y coordinates) to a bearing or angle.

    Now if you want to get Northings and Easting coordinate values, that's different. Presuming North is up on your drawing, then the Y value is N and the X value is E. in other words, to convert

    Command: id
    Specify point: X = 33.4837 Y = 17.7333 Z = 0.0000

    to NE format, it's
    N 17.7333
    E 33.4837
    Officially Awesome
    Real pirates wear silk suits & ties, and write EULAs
    The only thing more dangerous to the liberty of a free people than big government, is big business.

  3. #3
    All AUGI, all the time Firmso's Avatar
    Join Date
    2006-03
    Location
    Here, Still
    Posts
    549

    Default Re: Lisp Routine: Decimal to Surveyor Units

    Quote Originally Posted by cadtag View Post
    I'm not following what you're looking for here -.... to convert

    Command: id
    Specify point: X = 33.4837 Y = 17.7333 Z = 0.0000

    to NE format, it's
    N 17.7333
    E 33.4837
    OK, but what I need is something that converts

    these
    N 17.7333
    E 33.4837

    to this
    (Y=N) 17d43.0'59.88"
    (X=E) 33d29.0'1.32"

    Thanks
    Last edited by Firmso; 2009-02-17 at 10:22 PM.

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: Lisp Routine: Decimal to Surveyor Units

    It looks like you are trying to convert to longitude and latitude. AutoCAD cannot do that, but I believe AutoCAD Map 3D can.
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  5. #5
    All AUGI, all the time Firmso's Avatar
    Join Date
    2006-03
    Location
    Here, Still
    Posts
    549

    Default Re: Lisp Routine: Decimal to Surveyor Units

    Quote Originally Posted by Opie View Post
    It looks like you are trying to convert to longitude and latitude. AutoCAD cannot do that, but I believe AutoCAD Map 3D can.
    I guess that is what it seems like. I am trying to find out if there was anything like what I'm searching for out there.

    Will it be possible to do a Lisp (or VBA for that matter) for something like this?

    Thanks

  6. #6
    All AUGI, all the time Firmso's Avatar
    Join Date
    2006-03
    Location
    Here, Still
    Posts
    549

    Default Re: Lisp Routine: Decimal to Surveyor Units

    Quote Originally Posted by Opie View Post
    ....but I believe AutoCAD Map 3D can.
    So, Autocad Map 3D can give you coordinates in Long & Lat as well as Northing & Easting, Right?

    I searched all the features for it in the Autodesk website but did not find any to indicate that. It only states that it is used for "coordinate geometry". But what coordinate?Can any body who uses this program please reply and tell me that it does or not give Long & Lat?

    Thanks

  7. #7
    I could stop if I wanted to Norton_cad's Avatar
    Join Date
    2007-05
    Location
    Bardwell Valley, Sydney, Australia
    Posts
    433

    Default Re: Lisp Routine: Decimal to Surveyor Units

    I had a go with standard ACAD. Attached is a file where the units are set to degrees & minutes, and a node is noted with a multi leader, and feild text.
    Is this sort of what your looking for?
    Attached Files Attached Files
    Ohm's Law - Electricity follows the path of least resistance.

    Regards,

    Mark Norton,

  8. #8
    Forum Manager, Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    4,777

    Default Re: Lisp Routine: Decimal to Surveyor Units

    Quote Originally Posted by Firmso View Post
    OK, but what I need is something that converts

    these
    N 17.7333
    E 33.4837

    to this
    (Y=N) 17d43.0'59.88"
    (X=E) 33d29.0'1.32"

    Thanks
    In the drawing uints dialog (Format>Units) change your angle type to "Degrees,Minutes,Seconds".
    C:> ED WORKING....

  9. #9
    Certified AUGI Addict rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Houston
    Posts
    7,520

    Default Re: Lisp Routine: Decimal to Surveyor Units

    Quote Originally Posted by Firmso View Post
    Can any body who uses this program please reply and tell me that it does or not give Long & Lat?

    Thanks
    LL (in decimal form) are simply decimal numbers, and you can enter decimal numbers in AutoCAD to plot points. As mentioned in your other thread, depending on what you want to do with these points afterwards, you may need Map or even Civil 3D.

Similar Threads

  1. Replies: 4
    Last Post: 2007-12-10, 06:03 PM
  2. Replies: 5
    Last Post: 2007-02-14, 05:15 AM
  3. Replies: 12
    Last Post: 2006-12-14, 08:04 PM
  4. Convert Civil drawings using decimal units into Arch. units
    By tlarocco in forum AutoCAD Civil 3D - General
    Replies: 4
    Last Post: 2006-07-17, 05:52 PM
  5. Surveyor's units and directions
    By chuck_cantieny in forum AutoCAD General
    Replies: 4
    Last Post: 2005-03-23, 10:43 AM

Posting Permissions

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