[Search tip detail and code files using keywords, tip number, author name, etc ]
    For tip to function correctly, you must ensure that the downloaded file name matches the file name
    displayed in the Rename File To field. Please rename downloaded files when necessary.
Create Batting Line from Polyline
Tip# 3564 By Raymond Rizkallah On 15-Jan-2011
Rated By 2 users Downloaded : 1200
Categories : Linear Objects, Curved Objects
Software type : AutoCAD 2011
Rename File To : Insul2/,Insul2/insul2.jpg,Insul2/insul2.lsp
Create a polyline that looks like the Batting linetype included with AutoCAD.

Frequent contributor Raymond Rizkallah is back with a routine that mimics the Batting linetype included with AutoCAD, but using only a polyline. No custom linetypes are involved. Raymond explains that this eliminates potential linetype scaling problems, especially when mixing drawings with different LTScale settings. Start by loading the LISP file, then type in the command Insul2. Pick the length of the line and the width, and a single polyline will be created on the current layer that looks just like the Batting linetype.


Average Rating:

User comments
Comment by Cobb,Niles
Posted on 2011-03-28 18:04:07
How do we get back the osnap settings that are erased at the beginning of the lisp file?
Comment by TF,O
Posted on 2014-03-17 19:14:24
Perfect. Thanks a lot! Which part of the code do I need to change to do the same thing for a zigzag line at a given angle, lets say 30°, 45°, 60°? Note: I have no clue what I'm doing; I'm an end user, not a programer.
Comment by Rizkallah,Raymond
Posted on 2014-05-12 14:43:05
Thanks for the idea TF,O... I will submit a routine with these options in the coming days.
Comment by Cooper,Kent
Posted on 2017-11-13 13:28:03
Designed for use with surrounding elements already drawn, though it can be used in isolation. Has peculiar results if length and width directions are not perpendicular. Search for INSULATION to find quite a variety of other approaches.
Comment by Cooper,Kent
Posted on 2017-11-13 13:30:00
... and also, works only in straight-line situation. Some of those found in Searching can do other kinds of paths.