Results 1 to 2 of 2

Thread: coordinate point by DEG/MIN/SEC

  1. #1
    Active Member
    Join Date
    2007-04
    Posts
    60
    Login to Give a bone
    0

    Default coordinate point by DEG/MIN/SEC

    Hi all
    I need make coordinate point by DEG/MIN/SEC
    I use AutoCAD 2009 , I need lisp or ..?
    Like this lisp but in DEG/MIN/SEC
    Attached Files Attached Files

  2. #2
    Certifiable AUGI Addict
    Join Date
    2015-11
    Location
    Jo'burg SA
    Posts
    4,512
    Login to Give a bone
    0

    Default Re: coordinate point by DEG/MIN/SEC

    Are you asking for the polar coordinates instead of the N / E / S / W? If so you can obtain that using the (angle '(0.0 0.0 0.0) pt1) to get the angle and then use angtos instead of rtos to get the angle in deg/min/sec (check the developer help for that function). To get the polar distance use (dist '(0.0 0.0 0.0) pt1)

    If you mean you want to show the long/lat as deg/min/sec, that's a whole different ballgame. It depends on what the original is drawn to. Is it on some local grid (there are various different grids throughout the world), and some conversion programs for some of them ... maybe even some which may convert to long/lat degrees.

    If the original is already drawn in long/lat, then you could simply replace the rtos with angtos, using the relative formatting values:
    Code:
    (setq east  (strcat "E=" (angtos (car  pt1) 1 4)))
    (setq north  (strcat "N=" (angtos (cadr  pt1) 1 4)))

Similar Threads

  1. Point Creation in UCS other than WCS and correct coordinate listing
    By SurveyorHead in forum AutoCAD Civil 3D - General
    Replies: 2
    Last Post: 2011-11-10, 01:23 AM
  2. Point Coordinate from Autocad to Excel
    By fhairul495794 in forum AutoCAD General
    Replies: 1
    Last Post: 2011-07-31, 02:45 AM
  3. Point Coordinate Import Issue
    By wkruger in forum AutoCAD Civil 3D - Survey
    Replies: 2
    Last Post: 2011-01-24, 02:31 PM
  4. Large Coordinate Issue and Point Clouds
    By Steve_Bennett in forum AutoCAD General
    Replies: 33
    Last Post: 2008-05-06, 03:33 PM
  5. Covert Text File into Point Coordinate and Blocks
    By PatrickNX9420 in forum VBA/COM Interop
    Replies: 1
    Last Post: 2007-12-15, 12:24 PM

Posting Permissions

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