Results 1 to 3 of 3

Thread: Lisp to place Co-ordinates

  1. #1
    Member
    Join Date
    2005-02
    Posts
    12

    Default Lisp to place Co-ordinates

    I am looking for a lisp routine which places x,y coordinate mtext (preferably allowing you to prefix the text with E or N) at selected points

    Thanks

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

    Lightbulb Re: Lisp to place Co-ordinates

    Here is a start...

    Code:
    (defun c:labelme ( / pt1 str)
      (while (setq pt1 (getpoint "\n Pick a point: "))
        (setq str (strcat "E: " (rtos (car pt1) 2) "\\PN: " (rtos (cadr pt1) 2)))
        (command "-mtext" pt1 "_W" 0.0 str "")
      )
      (princ)
    )
        
    If you are not sure what to do with lisp code, see this tutorial:
    http://www.cadtutor.net/forum/showthread.php?t=2791

  3. #3
    Member
    Join Date
    2005-02
    Posts
    12

    Smile Re: Lisp to place Co-ordinates

    Thanks, thats done the trick

Similar Threads

  1. Co-ordinates
    By Tabz in forum Revit Architecture - General
    Replies: 0
    Last Post: 2009-03-26, 05:03 PM
  2. Lisp to place
    By paulof in forum AutoLISP
    Replies: 1
    Last Post: 2009-02-13, 01:28 AM
  3. Exporting Co-ordinates
    By michael.boyd in forum Revit Structure - General
    Replies: 0
    Last Post: 2007-09-04, 04:21 PM
  4. LISP to place a box around text
    By Doodlemusmaximus in forum AutoLISP
    Replies: 7
    Last Post: 2006-12-05, 07:15 AM
  5. LISP routine to place text items with a '+'
    By bmonk in forum AutoLISP
    Replies: 13
    Last Post: 2006-07-14, 04:00 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
  •