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

Thread: Display insertion point coordinates in decimal feet

  1. #11
    I could stop if I wanted to
    Join Date
    2003-07
    Posts
    452
    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 jpcadconsulting347236's Avatar
    Join Date
    2011-09
    Posts
    307
    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
    James Pertusi

    CAD Applications Consultant
    1 (646) 773 4834
    www.jpcadconsulting.com

  3. #13
    I could stop if I wanted to jpcadconsulting347236's Avatar
    Join Date
    2011-09
    Posts
    307
    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!!!
    James Pertusi

    CAD Applications Consultant
    1 (646) 773 4834
    www.jpcadconsulting.com

  4. #14
    I could stop if I wanted to
    Join Date
    2003-07
    Posts
    452
    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
  •