Quick and Easy Parallel Lines
Quiz: What powerful Lisp routine was first introduced on the R11 ‘Bonus
CD’, incorporated into AutoCAD R12, disappeared starting in R13 but has
been in the LT product since … forever? Dline!
The DLINE Lisp routine is a powerful parallel line generating tool that performs
automatic corner intersection cleanups, as well as a number of other features.
The Dline routine draws Lines; nothing special. After each pick, parallel line
segments are drawn on the current layer based upon the current settings. When
you launch the routine (DL or DLINE), you will see the following:
Break/Caps/Dragline/Offset/Snap/Undo/Width/<start point>:The important options are Dragline, Offset, and Width:
Width. Sets the distance between the parallel lines. The default is around
1/16”. If you are drawing medical equipment like catheters, this is all
ready for you. In this series of illustrations, however, the Width is set to
6”.
Dragline. Think 'justification'.
Set dragline position to Left/Center/Right/ <Offset from center = 0">:
Specify Right, Center, or Left based upon the direction of travel. The default
is Center justified and in the illustration I have drawn the Dline using a
Right dragline setting.
In the first figure, the Dline began where I show the dot, then I proceeded
north. I changed the lineweight property of the Right wall face to indicate
the Dragline setting and hatched the wall cavity for clarity.
 Offset. This enables you to ‘offset’ the Start point of a new
Dline. You get three prompts which go as follows:
1. 'Offset From'. In the second figure, I picked the endpoint indicated by
the dot. [Tip: Do NOT turn on Osnap, just use Endp to grab
the offset point.]
2. 'Offset Toward.' Turn ON Ortho (if it isn't already) and pick a point
in the
direction of the start point for the new Dline relative to the offset point.
In the figure, I picked a point directly north of the dot.
3. 'Distance.' Now you can enter how far the start point is from the offset
point in the direction specified. For the figure I entered a distance of
20.
After following those prompts, the new Dline begins and off you go!
Other features:
 Break – Set to On, whenever a new Dline begins or ends on a line, an
automatic ‘T’ intersection is created as shown in this figure.
Caps – Set to Auto, a Dline that is not CLosed will automatically have
endcaps placed at the beginning and ending locations.
Snap – Essentially a search radius within which the routine seeks another
line to snap to; primarily for the beginning and ending points.
Click here to download the Dline routine, or go to http://www.autocadtrainerguy.com/AutoCAD_Stuff/AutoCADStuff.htm
which will take you to the Productivity Downloads for AutoCAD page at my website.
Scroll down and follow the directions for saving and implementing the Dline.lsp
from the Load Applications dialog box.
|