[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.
Offset Line to Center
Tip# 1374 By Dean Saadallah On 01-Oct-1997
5
Rated By 1 users Downloaded : 485
Categories : 2D Operations
Software type : AutoCAD
Rename File To : Tip1374.LSP: OFCTR.LSP
an AutoLISP routine that offsets a line to the center point between two selected lines.

an AutoLISP routine that offsets a line to the center point between two selected lines.

 

Average Rating:
5


User comments
Comment by Cooper,Kent
Posted on 2012-09-28 13:42:07
This is okay if you pick two parallel Line entities [or line segments of non-3D Polylines]. But it does not take into account whether the two things you pick on are parallel, or even straight, or that you might pick something that can't be offset [a Line in a Block or Xref, a segment of a 3DPolyline, an edge of a 3Dface, etc.], or that is on a locked Layer. For a routine that will draw an Xline halfway between ANY two parallel straight entities OR nested entities [equivalent to the intent of this Tip except for the Layer aspect and its being an Xline], OR bisect the angle between them if they're not parallel, see Tip #3756, "Bisect Angle/Spacing between Straight Entities."