+ Reply to Thread
Page 3 of 5 FirstFirst 1 2 3 4 5 LastLast
Results 21 to 30 of 50
  1. #21
    Full Member
    Using
    AutoCAD 2013
    Join Date
    Aug 2012
    Posts
    34

    Default

    Registered forum members do not see this ad.

    Nearly got it!!!! Thanks!!!

    Last thing..... Need an arrow pointing to the point which the coordinate states

  2. #22
    Forum Deity
    Using
    AutoCAD 2002
    Join Date
    Sep 2006
    Location
    East Sussex, U.K.
    Posts
    2,969

    Default

    It is good to re-invent the wheel every now and again, but for the more idle amongst us, this thread seemed to cover the current topic several years ago.

  3. #23
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,743

    Default

    How about simply:

    Code:
    (defun c:dimo ( / p )
        (while (setq p (getpoint "\nSpecify Point <Exit>: "))
            (command "_.dimordinate" "_non" p "_T" (strcat "X=" (rtos (car p)) "\\XY=" (rtos (cadr p))) "\\")
        )
        (princ)
    )
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  4. #24
    Full Member
    Using
    AutoCAD 2013
    Join Date
    Aug 2012
    Posts
    34

    Default

    Quote Originally Posted by Lee Mac View Post
    How about simply:

    Code:
    (defun c:dimo ( / p )
        (while (setq p (getpoint "\nSpecify Point <Exit>: "))
            (command "_.dimordinate" "_non" p "_T" (strcat "X=" (rtos (car p)) "\\XY=" (rtos (cadr p))) "\\")
        )
        (princ)
    )
    Is that the full code?

  5. #25
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,743

    Default

    Quote Originally Posted by bharthts01 View Post
    Is that the full code?
    Huh? .........
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  6. #26
    Full Member
    Using
    AutoCAD 2013
    Join Date
    Aug 2012
    Posts
    34

    Default

    Is that the full code I.e
    Copy and paste that into notepad? Or is there more to that?

  7. #27
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,743

    Default

    That's it.
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  8. #28
    Full Member
    Using
    AutoCAD 2013
    Join Date
    Aug 2012
    Posts
    34

    Default

    Code:
    (defun c:ne( / oldOsmode e-x n-y ne1 prmt tx-ht vx vy x-ht xx yy )
     (defun go_ne()
      ;(setvar "luprec" 2)
      (setq prmt (strcat "Enter TEXT HEIGHT<" (rtos tx-ht) ">: "))
      (princ prmt)
      (setq x-ht (getreal))
      (if (= x-ht nil)
       (setq x-ht tx-ht)
      )
      (setq tx-ht x-ht)
      (setq e-x (car ne1))
      (setq xx (rtos e-x 2 0))
      (setq n-y (cadr ne1))
      (setq yy (rtos n-y 2 0))
      (tx-f)
     )
     
     (defun tx-f()
      (setq vx (strcat " E " xx))
      (setq vy (strcat " N " yy))
      (command "_.TEXT" "_J" "_ML" ne1 x-ht 0.0 (strcat vx " / " vy))
     )
     
     (setq tx-ht 0.5)
     (setq oldOsmode (getvar "OSMODE"))
     (setvar "osmode" 427)
     (setq ne1 (getpoint "\nPick point..."))
     (setvar "osmode" 0)
     (if (/= ne1 nil)
      (go_ne)
      (princ "\nInvalid Location !")
     )
     (setvar "OSMODE" oldOsmode)
     (princ)
    )
    This is the code I'm using.



    This is what it looks like (highlighted with the red bubble).

    I'm after one last thing, which is the 'line/point' which the coordinate is stating.
    As shown on the left.

  9. #29
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,743

    Default

    Did you try my code?
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  10. #30
    Full Member
    Using
    AutoCAD 2013
    Join Date
    Aug 2012
    Posts
    34

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by Lee Mac View Post
    Did you try my code?
    What command is it?

Similar Threads

  1. How to create .NET program that automate AutoCAD
    By oldguy in forum .NET, ObjectARX & VBA
    Replies: 4
    Last Post: 29th Sep 2011, 12:38 am
  2. VBA Displaying Pick point coordinates in UserForm Text box
    By scubastu in forum AutoLISP, Visual LISP & DCL
    Replies: 5
    Last Post: 18th Nov 2009, 05:03 am
  3. How to create a irregular solid from coordinates and know its volume.??????
    By jcaz15 in forum AutoCAD 3D Modelling & Rendering
    Replies: 4
    Last Post: 17th Oct 2008, 05:59 am
  4. Lisp Routine For Displaying Attributes
    By stephencurran in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 30th Jul 2008, 06:00 pm
  5. Lisp Routine not displaying until a regen
    By bill4227 in forum AutoCAD Drawing Management & Output
    Replies: 5
    Last Post: 27th Feb 2007, 08:07 am

Bookmarks

Posting Permissions

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