Category Archives: AutoLISP

AutoLISP: Purge Missing SHX files

If you have drawings that are constantly missing SHX (shape) files, the routine posted below is now your friend. The routine was posted in the LISP forum at CADTutor at the following link. Please refer questions there. http://www.cadtutor.net/forum/showthread.php?37306-remove-unknown-SHX-files&highlight=delete+shape+files Here’s how: … Continue reading

Posted in AutoLISP, AutoLISP: Manage, Linetypes, Manage | 3 Comments

AutoLISP: Purge Page Setups

The code posted below will purge all Page Setups except for the current page setup (if one is applied). If you have ever received a drawing with many page setups this routine will help reduce the amount of setups that … Continue reading

Posted in AutoLISP, AutoLISP: Manage, AutoLISP: Modify, Manage, Printing - Plotting, Uncategorized | 3 Comments

AutoLISP: Advanced Polyline Offset

Not knowing what to call this routine, I think that it is more of a combination of an advanced Offset command that automates the placement of the vertices at the (M2P) Mid-Between-2-Points. If you need an offset that is between … Continue reading

Posted in AutoLISP, AutoLISP: Creating, AutoLISP: Modify, AutoLISP: Polylines | 4 Comments

AutoLISP: Simple Numeric Array

Today’s featured routine is an example from a book about Visual Lisp Programming and was an example that we learned from as an example in class when I was in school. It is a simple routine that lets you incrementally array … Continue reading

Posted in AutoLISP, AutoLISP: Creating, AutoLISP: Text, Uncategorized | 3 Comments

AutoLISP: Fillet and Match PLINE Width

With the release of AutoCAD 2012 the JOIN command received some improvements. It will join all of the selected objects regardless of what type of objects they are (line, arc, polyline, 3Dpolyline, spline) and turn them into the most complicated … Continue reading

Posted in AutoCAD 2013, AutoLISP, AutoLISP: Modify, AutoLISP: Polylines, Modifying, New in 2012, New In 2013, Polylines | 4 Comments

Text to Multileader

This routine will allow you to select either an MTEXT or DTEXT (single line text) object and then create a multileader from its contents on the current layer and the current multileader style. Here’s how: AM <enter> to start Add … Continue reading

Posted in AutoLISP, AutoLISP: Modify, AutoLISP: Text, Leaders, Modifying | 13 Comments

AutoLISP: Select block by name

Even though, you can use the SELECTSIMILAR [found here] command to select a block and then this command will select the other blocks like the selected block…Here is a LISP rouinte that will make a selection set of a named … Continue reading

Posted in AutoLISP, AutoLISP: Blocks, AutoLISP: Modify | 12 Comments

Autolisp: Find Blocks and Mark Them

This is a re-post of an earlier post that had an error in it. So here it goes again… This routine will let you easily find blocks in your drawing. It does this by drawing lines from the insertion point … Continue reading

Posted in AutoLISP, AutoLISP: Blocks, AutoLISP: Manage | 3 Comments

AutoLISP: Create a Roof Pitch Symbol

If you need to create a roof pitch symbol this routine will surely help. Here’s how: PS <enter> to start “Pitch Symbol” Select a line that has the slope that you need to calculate Specify the base length of the … Continue reading

Posted in AutoLISP, AutoLISP: Creating | 6 Comments

AutoLISP: Heal – Erase Block & Heal Polyline

Just like the previous post that heals lines, this routine will work on polylines. it will erase the selected block and then join the two polylines into one. Note: If the block is placed on a curved segment of a … Continue reading

Posted in AutoLISP, AutoLISP: Blocks, AutoLISP: Modify, AutoLISP: Polylines, Blocks, Polylines | 4 Comments