+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 10 of 38
  1. #1
    Senior Member Fire Alarm's Avatar
    Computer Details
    Fire Alarm's Computer Details
    Operating System:
    Windows Vista
    Computer:
    Dell XPS XPS710
    Using
    MEP 2008
    Join Date
    May 2008
    Location
    Wilmington, DE
    Posts
    111

    Default Lines Auto Dimensioning

    I have looked for a lisp routine or command, for having the lines that I draw automatically show their lenght. I do not know how lisp routines work. I am currently studying them, but cannot figure out how to create one. Any help would be greatly appreciated. It would help me save time when I try to figure out voltage drop calculations for my notification circuits.

    Thanks

  2. #2
    Super Moderator Tiger's Avatar
    Computer Details
    Tiger's Computer Details
    Operating System:
    Windows 7 Professional 64 bit
    Computer:
    HP EliteBook 8570w
    CPU:
    Intel Core i7-3720QM 2.60GHz
    RAM:
    16GB
    Graphics:
    NVIDIA Quadro K2000M
    Monitor:
    HP
    Discipline
    Multi-disciplinary
    Tiger's Discipline Details
    Occupation
    Education /support
    Discipline
    Multi-disciplinary
    Details
    Support/Education/Retail
    Using
    Civil 3D 2014
    Join Date
    Nov 2006
    Location
    Stockholm, Sweden
    Posts
    4,922

    Default

    Do you mean get an proper dimension as soon as you have completed the line? That would be tricky, but probably not impossible.

    If you mean see the lenght of the line while you are drawing it, you can turn on Dynamic Input (click the DYN button at the bottom of the screen) - right-click on the DYN-button to get to Settings for it and set it up as you want it.
    whether is when you are asking yourself, should I stay or should I go
    weather is when it's cold as all that outside
    wether is a goat soprano
    #SpellingMatters

  3. #3
    Senior Member Fire Alarm's Avatar
    Computer Details
    Fire Alarm's Computer Details
    Operating System:
    Windows Vista
    Computer:
    Dell XPS XPS710
    Using
    MEP 2008
    Join Date
    May 2008
    Location
    Wilmington, DE
    Posts
    111

    Default

    What I usually do is draw a pline from device to device and then select the line and go to properties to see the length. I would like to see the lenght of the line once it is drawn. Not while I am drawing it.

  4. #4
    Super Moderator Tiger's Avatar
    Computer Details
    Tiger's Computer Details
    Operating System:
    Windows 7 Professional 64 bit
    Computer:
    HP EliteBook 8570w
    CPU:
    Intel Core i7-3720QM 2.60GHz
    RAM:
    16GB
    Graphics:
    NVIDIA Quadro K2000M
    Monitor:
    HP
    Discipline
    Multi-disciplinary
    Tiger's Discipline Details
    Occupation
    Education /support
    Discipline
    Multi-disciplinary
    Details
    Support/Education/Retail
    Using
    Civil 3D 2014
    Join Date
    Nov 2006
    Location
    Stockholm, Sweden
    Posts
    4,922

    Default

    Aha. I'll move your thread to the Lisp forum and hope someone there can help you
    whether is when you are asking yourself, should I stay or should I go
    weather is when it's cold as all that outside
    wether is a goat soprano
    #SpellingMatters

  5. #5
    Full Member
    Using
    Civil 3D 2008
    Join Date
    May 2009
    Posts
    79

    Default

    You want to figure it alone? a few tips if yes, you can take 2 points, do the pline command and then, add this

    Code:
    (command "dist" p1 p2);if p1 and p2 is the points.
    (princ)
    (setq di (getvar "Distance"))
    This will show the distance from points.

  6. #6
    Senior Member
    Computer Details
    JohnM's Computer Details
    Operating System:
    xp pro
    Using
    AutoCAD 2006
    Join Date
    Feb 2009
    Location
    houston, texas
    Posts
    382

    Default

    when you draw you line is it a line or pline?
    is it always straight or is the curves involved?
    is it from point a to point b or many points?
    do you want a autocad dimension or just a text with the length?

  7. #7
    Senior Member Fire Alarm's Avatar
    Computer Details
    Fire Alarm's Computer Details
    Operating System:
    Windows Vista
    Computer:
    Dell XPS XPS710
    Using
    MEP 2008
    Join Date
    May 2008
    Location
    Wilmington, DE
    Posts
    111

    Default

    when you draw you line is it a line or pline?
    is it always straight or is the curves involved?
    is it from point a to point b or many points?
    do you want a autocad dimension or just a text with the length?
    JohnM
    1) They are plines
    2 & 3) there are 90 deg turns (I try not to go point to point so I have a distance safety factor)
    4) just show text length is fine

    BlackAlnet
    Don't know enough to do alone.

    Thanks

  8. #8
    Super Member chelsea1307's Avatar
    Computer Details
    chelsea1307's Computer Details
    Operating System:
    windows xp
    Using
    AutoCAD 2011
    Join Date
    Sep 2008
    Location
    Sacramento, Ca USA
    Posts
    1,109

    Default

    lee mac wrote me a lisp a while back that after the plines are drawn you start the lisp and select your pline and the text is placed next to it, would that get you closer to what you want?
    "The problem is stupidity. I am not saying there should be capital punishment for stupidity, but, why don't we just take the safety labels off of everything and let the problem solve itself? "

  9. #9
    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
    16,619

    Default

    Something like this?

    Code:
    (defun c:leng (/ ent Obj)
      (vl-load-com)
      (while
        (progn
          (setq ent (car (entsel "\nSelect Object: ")))
          (cond ((eq 'ENAME (type ent))
                 (setq Obj (vlax-ename->vla-object ent))
                 (if (vlax-property-available-p Obj 'length)
                   (not (print (vla-get-length Obj)))
                   (princ "\n** Invalid Object Selected **")))
                (t (princ "\n** Nothing Selected **")))))
      (princ))
    Lee Mac ProgrammingTwitterExchange App StoreDropbox (500MB free)

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

  10. #10
    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
    16,619

    Default

    Registered forum members do not see this ad.

    Quote Originally Posted by chelsea1307 View Post
    lee mac wrote me a lisp a while back that after the plines are drawn you start the lisp and select your pline and the text is placed next to it, would that get you closer to what you want?
    This one I believe:

    http://www.cadtutor.net/forum/showthread.php?t=36659


    Lee Mac ProgrammingTwitterExchange App StoreDropbox (500MB free)

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

Similar Threads

  1. Lisp for auto-dimensioning tons of lines.
    By Zykl0 in forum AutoLISP, Visual LISP & DCL
    Replies: 22
    Last Post: 20th Apr 2012, 03:28 pm
  2. What is key TERRA FIRMA in auto cad & how we use it in auto cad
    By tariq mahmood in forum AutoCAD General
    Replies: 3
    Last Post: 9th Jan 2009, 12:39 pm
  3. Auto Dimensioning in autocad
    By Anil.S in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 2
    Last Post: 20th Jun 2008, 11:02 am
  4. Auto dimensioning
    By bjasa in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 2
    Last Post: 19th Jun 2008, 07:24 am
  5. Dimensioning curved lines
    By DirtylittleCAD in forum AutoCAD Beginners' Area
    Replies: 2
    Last Post: 7th Apr 2005, 01:27 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