Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Display insertion point coordinates in decimal feet

  1. #11
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    559
    Login to Give a bone
    0

    Default Re: Display insertion point coordinates in decimal feet

    Try this

    Code:
    (while (setq pt (getpoint "\nPick point press Enter to exit"))
    (setq x (/ (car pt) 12.0))
    (setq y (/ (cadr pt) 12.0))
    (alert (strcat "point is x= " (rtos x 2 2) " y= " (rtos y 2 2)))
    )

  2. #12
    I could stop if I wanted to
    Join Date
    2011-09
    Posts
    308
    Login to Give a bone
    0

    Default Re: Display insertion point coordinates in decimal feet

    I'm gonna try this right now... I'll report back.

    Thanks everyone, you're all being very helpfull.

    -JP

  3. #13
    I could stop if I wanted to
    Join Date
    2011-09
    Posts
    308
    Login to Give a bone
    0

    Default Re: Display insertion point coordinates in decimal feet

    OK, that seems to work perfectly. I will jam this into the full code, test and post it in case it might be helpful to anyone.

    Thanks again!!!

  4. #14
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    559
    Login to Give a bone
    0

    Default Re: Display insertion point coordinates in decimal feet

    Try

    Code:
    (defun c:btest ()
    (setvar 'attdia 0)
    (setvar 'attreq 1)
    (while (setq p (getpoint "\n Specify point :"))
    (setq x (strcat "X: " (rtos (/ (car p) 12.0) 2 2)) y (strcat "Y: " (rtos (/ (cadr p) 12.0)  2 2)))
      (command "_.-insert"
               "aaa"
            p
            1
    	1
            0
           X
           Y
      )
    )
    (princ)
    )

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Decimal feet for linear dimensions
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 0
    Last Post: 2006-06-07, 01:57 PM
  2. Replies: 2
    Last Post: 2006-01-31, 08:12 PM
  3. Decimal feet as linear dimension unit
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 4
    Last Post: 2005-10-06, 11:54 PM
  4. Decimal Feet as dimensioning unit
    By chuck_cantieny in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2004-12-15, 04:59 PM
  5. Decimal Feet Display for Building Elevations?
    By Jason in forum Revit Architecture - General
    Replies: 2
    Last Post: 2003-08-25, 06:32 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
  •