+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior Member JerryFiedler's Avatar
    Computer Details
    JerryFiedler's Computer Details
    Operating System:
    Vista Home Premium
    Computer:
    Dell XPS One
    Using
    AutoCAD 2009
    Join Date
    Mar 2006
    Location
    Dundee Oregon, USA
    Posts
    12

    Question special ends on line object

    Registered forum members do not see this ad.

    Greetings,
    I am using AutoCad LT 09. I am looking for a way (lisp routine) to draw a line from point to point that has a "set back" at each end of the line. The line would look and act similar to a leader on a dimension but the set back would be at both ends. See the attached image as an example.
    The end of the line would still be at the nodes to which it was drawn but the line would appear to be a bit short at each end. In the example the line object ends (handles) would be at the center of the I-shape objects.

    Thank you, in advance, to anyone who can shed some light on this.
    Jerry
    Attached Images

  2. #2
    Forum Deity NBC's Avatar
    Using
    AutoCAD 2009
    Join Date
    Aug 2007
    Location
    Manchester, UK
    Posts
    2,109

    Default

    First of all, you state you are using LT; LT does not have the capability to utilise LSP functions without the aid of some form of add-on, such as LT Extender.
    One way to achieve the results you desire, would be to create a block which contains no objects; then create a new Dimension Style.
    Within the newly created Dimension Style it would be possible to set the "arrowhead" to be the block you created earlier. This would then give the impression of there being a gap at the ends of the 'line'. Then create dimensions, instead of lines between the column positions
    Life's constantly changing - keep up or get left behind

  3. #3
    Junior Member JerryFiedler's Avatar
    Computer Details
    JerryFiedler's Computer Details
    Operating System:
    Vista Home Premium
    Computer:
    Dell XPS One
    Using
    AutoCAD 2009
    Join Date
    Mar 2006
    Location
    Dundee Oregon, USA
    Posts
    12

    Default

    NBC, thank you for your idea. My LT does have an extender and we use all sorts of lisp routines.
    I will give your dimension style a shot.

  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,718

    Default

    Registered forum members do not see this ad.

    Just a quick one

    Code:
    (defun c:lback (/ tmp p1 p2)
    
      (or *def (setq *def 0.1))
      (or (not (setq tmp (getdist (strcat "\nSpecify Set Back <" (rtos *def) "> : "))))
          (setq *def tmp))
    
      (if (and (setq p1 (getpoint "\nSpecify First Point: "))
               (setq p2 (getpoint p1 "\nSpecify Second Point: ")))
        (progn
          (setq p1 (trans p1 1 0) p2 (trans p2 1 0))
          (setq p1 (polar p1 (angle p1 p2) *def)
                p2 (polar p2 (angle p2 p1) *def))
    
          (entmake (list (cons 0 "LINE")
                         (cons 10 p1)
                         (cons 11 p2)))))
    
      (princ))
    Lee Mac Programming

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

    Just another Swamper

Similar Threads

  1. Drawing a line with one or two arrow ends
    By titech in forum AutoCAD General
    Replies: 15
    Last Post: 25th Oct 2012, 12:29 pm
  2. special ends on line objects
    By JerryFiedler in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 4
    Last Post: 5th Jun 2009, 05:10 pm
  3. Extend line to next object
    By mixu in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 13
    Last Post: 2nd Jul 2008, 05:20 pm
  4. zoom to a special object using VBA
    By ehsan in forum AutoLISP, Visual LISP & DCL
    Replies: 1
    Last Post: 16th Dec 2007, 08:00 pm
  5. keep the same distance of dimension line to object
    By JosMulder in forum AutoCAD Beginners' Area
    Replies: 5
    Last Post: 29th Jan 2005, 03:10 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