[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.
Break Multiple Lines
Tip# 3705 By Ferdinand Gawat On 16-Aug-2011
0
Rated By 0 users Downloaded : 672
Categories : Linear Objects, 2D Editing
Software type : AutoCAD 2012
Rename File To : MBREAK.LSP
Break one or more lines at intersections with other lines.

The Multiple Break AutoCAD routine from Ferdinand Gawat enables you to break one or more lines where they intersect with other lines. You can specify a distance to break the lines, or specify 0 (zero) to break with no gap. Start by loading the LISP file, then type in the command MBreak. Select one or more lines as the cutting object(s), and then select one or more lines to break. Although the code does not contain comments, it is well laid out and easy to understand. Note that this routine only works with line entities.

 

Average Rating:
0


User comments
Comment by Graska,Tom
Posted on 2011-08-22 14:47:01
Great tool. Let me know if you can break a line with an object i.e. insert a hand valve on a line and this breaks the line.
Comment by McSwain,R.K.
Posted on 2011-08-26 13:45:04
Tom, do you need the actually broken or do you just need to hide it under the valve? If the latter, would a wipeout in the block work for you?
Comment by Cooper,Kent
Posted on 2014-07-24 09:38:40
IF YOU USE FRACTIONS OR FEET & INCHES, be sure to enter the gap size as a DECIMAL or INTEGER value. Because of the way it handles the gap setting, if you enter, for example, 1/8 or 1'4 (valid inputs under Imperial units), it will use a gap size of 1. Enter (in those cases) .125 or 16 instead. [Or, re-write the code to use (getdist) instead of (getstring) and appropriate subsequent adjustments.]


Log In