+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Apr 2009
    Posts
    41

    Default Piping Invert Levels

    Registered forum members do not see this ad.

    Hi,

    Good day to all, please is there any body have a Lisp route that create a level dimension text just on the first pick the ground level and second pick to the bottom line of the pipe to get the distance height of pipe then the leader arrow head will position to the second pick, level text will position any were that i want.

    If ever please provide me a route showing the image below
    Thank you..

    Regards
    JG
    Attached Images

  2. #2
    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,736

    Default

    Quick and dirty:

    Code:
    (defun c:ql (/ pt1 pt2)
      (setq oldcmd (getvar "CMDECHO"))
      (setvar "CMDECHO" 0)
      (while (and (setq pt1 (getpoint "\nSelect First Point: "))
                  (setq pt2 (getpoint pt1 "\nSelect Second Point: ")))
          (command "_qleader" pt2 pause "" ""
                   (strcat "IL +" (rtos (distance pt1 pt2) 2 2) "mm") ""))
      (setvar "CMDECHO" 1)
      (princ))
    Lee Mac Programming

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

    Just another Swamper

  3. #3
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Apr 2009
    Posts
    41

    Default

    wow thanks Lee, magnificent, little request, can it be possible that the leader will make it 3 points so that i can grip the leader near at text.
    Thanks again

    Code:
    (defun c:ql (/ pt1 pt2)
      (setq oldcmd (getvar "CMDECHO"))
      (setvar "CMDECHO" 0)
      (while (and (setq pt1 (getpoint "\nSelect First Point: "))
                  (setq pt2 (getpoint pt1 "\nSelect Second Point: ")))
          (command "_qleader" pt2 pause "" ""
                   (strcat "IL +" (rtos (distance pt1 pt2) 2 2) "mm") ""))
      (setvar "CMDECHO" 1)
      (princ))
    [/quote]

  4. #4
    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,736

    Default

    This may depend on your initial leader settings, but give it a go

    Code:
    (defun c:ql (/ oldcmd pt1 pt2)
      (setq oldcmd (getvar "CMDECHO"))
      (setvar "CMDECHO" 0)
      (while (and (setq pt1 (getpoint "\nSelect First Point: "))
                  (setq pt2 (getpoint pt1 "\nSelect Second Point: ")))
          (command "_qleader" pt2 pause pause ""
                   (strcat "IL +" (rtos (distance pt1 pt2) 2 2) "mm") ""))
      (setvar "CMDECHO" oldcmd)
      (princ))
    Last edited by Lee Mac; 11th May 2009 at 06:04 pm.
    Lee Mac Programming

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

    Just another Swamper

  5. #5
    Full Member
    Using
    AutoCAD 2009
    Join Date
    Apr 2009
    Posts
    41

    Default

    Yes Lee i got it. Thanks

    Cheers

  6. #6
    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,736

    Default

    Registered forum members do not see this ad.

    Happy to help
    Lee Mac Programming

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

    Just another Swamper

Similar Threads

  1. Is it possible to invert polygons?
    By rpniponal in forum AutoCAD General
    Replies: 8
    Last Post: 24th Apr 2009, 02:55 pm
  2. Pipe Invert Level
    By alvin_louis in forum MEP
    Replies: 1
    Last Post: 16th Dec 2008, 05:02 am
  3. Changing Levels...
    By StykFacE in forum Revit General
    Replies: 2
    Last Post: 20th Nov 2008, 07:44 pm
  4. elevation levels
    By Dipali in forum Architecture & ADT
    Replies: 4
    Last Post: 20th May 2008, 11:53 pm
  5. Spot Levels
    By mdmmike in forum AutoCAD General
    Replies: 4
    Last Post: 7th Aug 2007, 04:52 pm

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