Category Archives: AutoLISP

Change XREF Layer Colors to One Color

Here is a great lisp routine that lets you simply select an XREF and change all of the XREF’s layers to a specific color (color 253 in this case). This is useful in some of my work’s drawings because we … Continue reading

Posted in AutoLISP, AutoLISP XREFs, XREFs | 20 Comments

LISP version of Closest Distance Between Two Objects

The previous tip showcased a command that is available in Civil 3D that lets you find the closest distance between 2 objects and even draws a line at the closest points. Here is a LISP routine that lets you do … Continue reading

Posted in AutoLISP, AutoLISP: Creating, AutoLISP: Dimensions, Uncategorized | 7 Comments

Lisp: Delete Extra Annotative Scales from Objects

This routine has helped me many times when receiving drawings from others that include annotative blocks and text, you may not need as many scales that are applied to these annotative objects. Everything looks fine with the received file shown … Continue reading

Posted in AutoLISP, AutoLISP: Text, Modifying | 5 Comments

Block Description to Multileader

Following up on the previous post – The routine illustrated below is also made by Alan Thompson found HERE lets you select a block and place a multileader containing the Block’s description (see below for “block description”) Use the command BDESC2ML … Continue reading

Posted in AutoLISP, AutoLISP: Blocks, Blocks, Leaders, multileaders | 11 Comments

AutoLISP: Block Name to MultiLeader

The routine illustrated below is from Alan Thompson found HERE at CADTutor. This routine lets you select a block and place a multileader that contains the name of the block. The arrowhead or leader point is automatically placed at the block’s … Continue reading

Posted in AutoLISP, AutoLISP: Blocks, Blocks, multileaders | 6 Comments

AutoLISP: Updated Code for “Break Along Curve” or “Break At Distance”

I’ve simply updated the AutoLISP code for an earlier post from Alan Thompson that lets you select a Line, Arc, Polyline, Spline and make breaks at the user specified distances along the object. https://autocadtips.wordpress.com/2011/09/24/autolisp-break-at-distance/

Posted in AutoLISP, AutoLISP: Modify, Updated | Leave a comment

AutoLISP: Break 3D line through User defined Plane

This routine was made by Chen Qing Jun, qjchen and is found at http://www.theswamp.org/index.php?topic=40494.msg457913#msg457913 It is quite handy if you happen to need to break a line that passes through a “plane.” I am using the term “plane” loosely because it doesn’t … Continue reading

Posted in AutoLISP, AutoLISP: 3D, AutoLISP: Modify, Modifying | 3 Comments

AutoLISP: Make Perpendicular Line Between Two 3D Angles

This Lisp was found at http://paulbourke.net/geometry/pointlineplane/int2.lsp and has been a great help in 3D and sometimes being off by a little bit can be very frustrating. You can always us the distance command and then look for the specific X distance or … Continue reading

Posted in AutoLISP, AutoLISP: 3D, AutoLISP: Creating | 1 Comment

AutoLISP: Updated Heal Line/Polyline

There were 2 posts from a while back that did the same thing – Erase a selected block and then heal the LINE or POLYLINE, but the annoying thing was that only one routine would work for LINES and you … Continue reading

Posted in AutoLISP, AutoLISP: Blocks, AutoLISP: Modify, AutoLISP: Polylines, Modifying, Uncategorized | 2 Comments

AutoLISP: Split Dimensions

This is a re-post of a previous post that deserves to be re-posted. The routine was posted at theswamp.org by Kerry and can be found here: http://www.theswamp.org/index.php?topic=33493.msg389031#msg389031 The routine simply splits an existing dimension and lets you click a point between … Continue reading

Posted in AutoLISP, AutoLISP: Dimensions, AutoLISP: Modify, Dimensions | 4 Comments