[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
4.5
Rated By 2 users Downloaded : 475
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:
4.5


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.


Log In