• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
blog.draftsperson.net

blog.draftsperson.net

the art of technical drawing

blog.draftsperson.net

Free AutoLISP Routines for AutoCAD (100+ .LSP Downloads)

December 1, 2023

Last updated July 26, 2026

Every routine below is a free download, collected here since 1999. They are grouped by the job they do — jump to the section you need, or use your browser’s find to search the page. New to AutoLISP? Start with the AutoLISP guide and ten-lesson course.

New for 2026: AI assistants can now write and run routines like these directly in AutoCAD — see Claude + AutoCAD via MCP.

Drawing geometry

Doors, windows, walls, stairs, trusses, ceiling grids and other things you would otherwise draw by hand every time.

  • 2D Door — Draws a 2D door, similar to 2D Door.lsp.
  • 2D Door — A small program that draws a 2D door on your floor plan.
  • 2D Window — A small program that draws a 2D window on your floor plan.
  • Batt Insulation — Draws architectural batt insulation.
  • Batt Insulation 3 — Draws architectural batt insulation; see Batt.rar above.
  • Building Entities — A series of LISP routines that draw building entities such as doors and windows.
  • Building Line — Used to create building lines and similar in polyline mode, allowing re-use or reset of the snap angle and forcing ortho mode.
  • Cabinet Faces — A parametric program that creates 2D representations of cabinet faces.
  • Casement Window — A sample casement window program.
  • Ceiling Grid — Draws ceiling grids without having to trim any lines.
  • Centered Ceiling Grid — Draws a ceiling grid centered on a user-defined room.
  • Circle Tangent to Three Points — Allows the user to draw a circle that is tangent to three points.
  • Cusson Windows — A handy routine that draws windows of different styles, widths and heights based on user input.
  • Door Swing with Wall Trim — A door swing routine that uses PLINE to draw the door, then trims the wall to the door once it is drawn.
  • DT Wall — An architectural routine for drawing walls, complete with predefined wall types and an easy-to-use interface.
  • Floor Joist and Steel Beam — Draws a TJI floor joist or steel beam with faces.
  • Floor Truss Elevations — A parametric program that creates elevation drawings of floor trusses; all variables are local except those carrying defaults for truss height, component width, component height and web spacing.
  • Pitch Triangle — Lets the user drop in a pitch triangle representing the base and rise of a sloping line segment, for example a 12:7 pitch.
  • Rafter and Roof Truss — Contains two parametric programs that create a rafter and a roof truss (double rafter).
  • Roof Pitch — A helpful tool for drawing roof pitches: enter the rise, the run and the span and the program does the rest.
  • Slot in Circle — Cuts a user-defined slot in a circle.
  • Slot with Rounded Ends — Draws a long slot with rounded ends by specifying the center point, width, overall length and angle of the slot.
  • Spiral Staircase — Automatically draws a spiral staircase from minimal user input.
  • Spline Perpendiculars — Draws perpendicular lines to a spline.
  • Trigonometric Function Graphs — Draws graphs of trigonometric functions that can be expressed in the form “y = f of x”, permitting virtually unlimited graph range by calculating and writing graph points to a disk file named gfpts.txt and then reading the file back to produce the graph; edit TGRAPH.LSP to change the file name if it conflicts with one of your own.
  • Truss — Draws trusses based on user input.
  • Truss Types — Creates kingpost, howe, pratt, fink, belgian or triangle fan trusses.
  • Viewport Grid — Places a grid in a viewport with co-ordinates.
  • Wall Section — Constructs wall sections based on user input.
  • Wall Sections — Draws wall sections based on user input.
  • Walls in Plan — Draws walls in plan view based on user input.
  • Window Elevations — Draws elevation views of Andersen double-hung windows and allows the user to select the number of panes.
  • Windows with Mullions — Draws windows with multiple mullions in plan view between any two lines at any angle without using a block; it works best if the lines are parallel but that is not required, placing the mullions and glass on the current layer and the wall jambs on the same layer as the walls.

Editing and modifying

Routines that change what is already on the drawing – breaking, trimming, converting and bulk property edits.

  • Arcs to Circles — Takes any number of arcs and converts them into circles, each circle being a new object with all the properties of the arc it replaces; non-arc objects are ignored.
  • AutoPK Edit Tools — Numerous entity editing commands built into a single LISP routine.
  • Break at Intersection — Breaks a line at an intersection with another line, automatically setting osnap to intersection.
  • Breakpoint — A simple routine that lets you type “BP” at the command prompt to start the BREAK command and break an entity at a point of your choosing.
  • Change Entity Properties — Creates a numbered menu of a selected entity’s properties, then prompts you to pick the number of the property to modify and enter a new value, which may be a point (list), real, integer or string.
  • Delete Annotation Routines — A group of routines for when you receive a drawing file from another firm and want to erase all the text, dimensions, leaders and mtext.
  • Double Offset — Creates an offset to either side of the selected entity and erases the original.
  • Edit Utilities — Various edit routines including color change, text change and text width change.
  • Flatten — Flattens 3D entities to 2D.
  • Freehand Lines — Gives a drawing the effect of being drawn by hand, putting a slight squiggle into the lines and extending the ends of lines past each other. Aimed at architectural presentation drawings.
  • Join 2 Polylines — Joins two polylines together: you select two plines and the routine draws a line between the ends closest to the pick points, then joins them with the PEDIT command, with the first pline picked controlling layer, color and linetype.
  • Line or Arc to Polyline — A simple program that changes a line or arc into a polyline in a single step.
  • Polyline Tools — Processes several polylines simultaneously. The user selects a group of entities, the program filters out non-polylines, and then prompts for the property to manipulate: Width, Elev, Layer, Color (-1 for BYLAYER), Area (total area of the selected plines), 2d (convert 3D plines to 2D, with all plines set to 0 elevation), 3d (convert 2D plines to 3D, leaving existing 3D plines unaffected), or ? to display the help screen.
  • Rectangle Trim (SCB / SC / SCD) — Three commands: SCB erases and trims all entities outside a rectangle and leaves a polyline border, SC erases and trims all entities outside the rectangle without leaving a border, and SCD erases and trims all entities inside the rectangle without leaving a border.
  • Rotate to Entity — Rotates selected objects relative to a specific angle or to match the angle of an existing object.
  • Trim to Point — Creates a construction line based on your input, trims the entities you select to that line, and erases the construction line to finish the command.
  • Zero Elevation — Sets all lines to an elevation of 0 if your drawing somehow ends up with lines ending elsewhere.
  • Zero Radius Fillet — Fillets at a 0 radius and then sets the radius back to the previous radius setting.

Block and attribute tools

Counting, renaming, scaling, reporting on and repairing blocks, plus attribute editing.

  • A4 Title Block — Displays a dialog box that prompts for all the values required to complete an A4 title block, then inserts it into the drawing.
  • Attribute Name Edit — An attribute edit routine that changes the attribute name.
  • Auto Rename Blocks — Automatically renames any block listed in “lookup_block” in (“oldname” . “newname”) format; an error will occur if both the old and new names exist in the same drawing.
  • Block Count — Counts specific blocks in a drawing.
  • Block Extender — A free trial version of a block manager.
  • Block Report — Counts the number of inserts for each block in your drawing and develops a report.
  • Block Scale — Scales a number of blocks at a scale that you specify, with each block scaled about its own insertion point as the base point.
  • Block Scale 5.1 — Block Scale lets you scale a selection set of block insertions, but scales each insertion individually.
  • Blocks to ByLayer — Changes block definitions to BYLAYER, skipping all xrefs and xref-dependent blocks.
  • Detail Book — A drawing library organizational tool written for AutoCAD and IntelliCAD users who have generated a large number of typical details and need to access and manage them in an organized and timely fashion; it separates details into categories for easy access while keeping all your blocks in the same place.
  • Fix Block Layers — Puts all of a block’s sub-entities on layer 0 with color and linetype set to BYBLOCK; the block itself remains on its original layer.
  • Paste As Block — Lets you choose a base point for a group of entities you want as a block, select the entities and pick the insertion point you want. Note: this routine erases the original entities.
  • Template Block Library — A block cataloguing and retrieval system that works within AutoCAD, similar to the WBLOCK command but placing all wblocks into an icon menu automatically so a symbol can be picked visually and inserted into any drawing with multiple options for insertion scale, angle and more.
  • Update Block Layer and Colour — Two block updating routines: Updblkly.lsp updates the layer of all entities within a block to a single layer without exploding the symbol, changing entity colours to BYLAYER by default, and Updblkcl.lsp updates the colour of all entities within a block to a single colour without changing layer names; both change the original block definition in the current drawing.
  • WBLOCK All Blocks — WBLOCKs all block definitions in a drawing, writing each block to the current directory, prompting for a new name if a block name is longer than eight characters, and asking permission before overwriting an existing .DWG file of the same name.

Text tools

Matching, changing, scaling and placing text – the jobs that eat an afternoon when done manually.

  • Add or Subtract Text Values — Selects the required text (on a layer called LEVELS, which can be changed if you have a little AutoLISP experience) and changes the numerical part of each text item by adding or subtracting a user-entered value.
  • Copy and Change Text — Copies text and then prompts you to change the text.
  • Date Stamp — A simple routine for date stamping.
  • Match Text — Matches the text of one text entity to be the same as a selected text entity.
  • Match Text Height and Style — Lets you select an existing text item on screen, then change a selection set of other text to the same height and style as that source text.
  • Numbering — Seven routines in one lisp file that insert ascending numbers, letters and similar sequences until you press Enter. It remembers the last inserted text and suggests the continuation, and descriptions and calling codes for each function are at the beginning of the file.
  • Standardize Text — Standardizes or modifies selected text in a drawing.
  • Text Along Arc — Draws center-aligned text along an arc, with the text starting at the endpoint of the arc closest to the pick point.
  • Text Height by Scale — Lets the user easily calculate text heights based on a given scale.
  • Text with Break — Writes a text string to the drawing and then breaks any lines, polylines and similar entities that intersect an imaginary box around the text; the text is placed on the current layer using the current style, and the default input and repeat capabilities make multiple labelling convenient.
  • Viewport Text Scale — Scales all text in a drawing by a factor equal to the viewport scale, which is entered by the user.

Layer tools

Setting, matching, moving and cleaning up layers.

  • Delete Layer — A routine for cleaning up a drawing and deleting layers without the complication of entities still sitting on the layer that you cannot find.
  • Layer Match — Changes layer to a selected entity.
  • Layer Set — Lisp routine for setting layers.
  • Layer Tools — Processes layers quickly based on object selection.
  • Move Layer — Move Layer will move an entire layer as your selection set.
  • Set Layer from Entity — Resets the current layer to the layer of a user-picked entity.

Dimensions, leaders and labels

Leaders, labels and dimension helpers.

  • Arc Leader — Draws an arc leader whose arc size is directly related to the DIMASZ variable, prompting for a size that defaults to DIMASZ; larger sizes are useful for multiple pipe rack widths.
  • Box, Delta and Note Symbols — Contains four routines: Box1.lsp inserts a box at a picked point and then drags a line from the centre of the box to as many points as you enter, ending with a return, or inserts the box with no extension line; Delta1.lsp does the same with a delta (triangle) and Note.lsp with a circle.
  • Line and Text — Draws a line and then prompts you to enter text.
  • Note with Leader — Adds a predefined note that the user picks from a list, along with a leader.
  • Polyline Cumulative Distances — Lets you pick a 2D polyline and have the cumulative distances displayed above each vertex of the polyline.
  • Squiggly Leader — Creates leaders with squiggly lines.

Steel and metalwork

Structural steel shapes, bolts, welding symbols and sheet metal – the detailing end of the library.

  • AISC Steel Shapes — Draws all of the structural steel shapes listed in the American Institute of Steel Construction (AISC) Steel Construction Manual, either the ASD ninth edition or the LRFD first edition; dimensional data is stored in “.dim” files that the program must be able to find via the search path or in the special path c:/acad/steel.
  • Autoweld — An AutoLISP routine complete with menu and toolbar for all your welding detailing needs.
  • AWelds 4 — An AutoLISP routine complete with menu and toolbar for all your welding detailing needs; unlike Autoweld.zip, this routine doesn’t use a collection of blocks for the welding symbols.
  • Bolt Head — Draws a bolthead (hexagon and circle) using a polyline after the user supplies the insertion point and nominal shank diameter of the bolt.
  • Sheet Metal Toolkit — A package put together primarily as an aid to the sheet metal turret programmer, but also useful to inspectors, quoters and designers of sheet metal parts and tooling. It assumes the reader is familiar with sheet metal layout theory; the forming calculations are based on Lockheed formulas, and there is a routine on the main menu to adjust for a set back (K-factor) chart.
  • Stair Stringers — Draws stair stringers and dimensions them with a special fraction font standard to the steel industry.
  • Steel (STL) — Similar to Steel.rar.
  • Steel Shapes — Similar to Steel.rar.
  • Steel Shapes (SS) — Draws structural steel entities to scale from an easy-to-use dialog box, useful for structural steel work or architecture; type “SS” to start the command once it is loaded into AutoCAD.
  • Steel Stair Pans — Draws bent steel stair pans, with options to fill the pans with concrete and to auto-dimension them for detailing.

Survey and civil

Traverse reduction, bearings and distances, boundary labelling and slope symbols.

  • Bearing and Distance Note — Notes the bearing and distance between two points, or between the two ends of a line, for architects and civil engineers who do not have a COGO package but need to label boundary lines; layer names, colors and linetypes can be changed to suit.
  • Boundary Line with Bearing — Draws a boundary line and labels the distance and bearing using the current layer and text height.
  • Distance and Bearing Label — Creates a text entity that specifies the distance (length) and bearing (angle) of a selected line or polyline segment, for use in surveying and map making.
  • Lot Number — No description was provided for this routine.
  • Slope Bank Symbol — Draws a top of slope triangle, then an alternating scalloped line to the toe of slope as indicated.
  • Traverse Note Reduction — An AutoLISP program for surveyors and civil engineers for traverse note reduction.

Calculators and utilities

Calculators, unit helpers, file and system tools.

  • Add (Calculator) — An AutoCAD built-in calculator.
  • Analogue Clock — A refined analogue clock for AutoCAD.
  • Architectural Calculator — Simulates a simple feet-and-inch calculator that accepts input in standard AutoCAD Architectural units, providing addition, subtraction, multiplication, division and conversion operations for linear feet, inches and fractions of inches, and for square foot values; drawing units must be set to #4-Architectural for proper operation.
  • AutoLISP File Encryption — Takes any file and encrypts it so that only AutoLISP can read the contents, using an encryption key supplied by the user as any single ASCII character.
  • Calculator — Pops up a drawing of a calculator that you operate by picking its buttons or using the keyboard; numbers are displayed and evaluated just like a real calculator, supporting +, -, *, /, ^ (exponent), order of operations and brackets.
  • Cumulative Distance — Works like the AutoCAD Distance command except that it lets you pick more than two consecutive points, displaying the cumulative distance and the distance between the last two points picked on the command line.
  • DWGguard TNT — A tool to help protect your work by preventing users from modifying an AutoCAD drawing while they are viewing it.
  • How Far — A useful and powerful extension of the AutoCAD distance command.
  • Learn — Writes lisp code for you based on your input in AutoCAD; the author notes he has not worked out how to end the user input, and asks anyone who does to get in touch.
  • Stair Calculator — Performs stair riser and run calculations.
  • Units Precision Editor — Edits your units’ precision without going into the Format menu.
  • Zone Area or Length — Gives a total area or length for all polylines on a specified layer.

3D routines

The 3D corner of the library.

  • 3D Cabinet — Draws a cabinet from the width, height, depth, material thickness, countertop overhang, countertop thickness and shelf height, and sets a “CABINET” layer at the start.
  • 3D LISP Set — A series of 3D LISP routines including 3dcabn as described above, 3dwin which draws a 3D window, 3D pedit, 3D rotation, 3D polyline and numerous other 3D routines.
  • Extrude with Profile Backup — Copies the object to be extruded onto a layer called Profile and then extrudes the original, so you always have a wireframe backup of the extrusion.
  • Home Design 3D (Evaluation) — The evaluation version of Home Design 3D home design software, offered as a try-before-you-buy download.

Collections and suites

Bundles containing many routines at once – the fastest way to pick up a lot of tools in one download.

  • 90 LISP Routines — Contains 90 different LISP routines, including Flatten, a series of layer commands and much more.
  • Architectural LISP Set — A series of architectural LISP commands such as dsda.lsp (draws a double swing, double acting door), dssa.lsp (draws a double swing, single action door), gd.lsp (draws a garage door), ceiling.lsp (draws a ceiling grid) and many other routines.
  • Best of Lisp — A “Best of Lisp” collection containing 13 routines, from one that opens Windows Explorer at the current drawing directory to one that rotates a selection to an entity of your choosing.
  • BR Tools X — A series of routines in a single LISP file, such as jt (sets the current text style to that of the selected font), mid2 (sets a point half-way between two given points), bb (breaks a line at a user’s location) and a number of others.
  • CAD Tools — A collection of bonus AutoCAD tools with three toolbars: Bonus Standard, Bonus Text Tools, and Bonus Layer Tools.
  • Drafting Tools — A single lisp file containing numerous drafting tools, including dimensioning tools, properties tools, text tools and others.
  • Grab Bag — A grab bag full of routines, with plenty of layer, text and block tools among many others.
  • Handy Lisp — Another grab bag full of routines, with far too many functions to list; download it and check them all out.
  • HVAC Suite — A full suite of lisp routines and blocks for designing and drawing HVAC systems.
  • Interior Elevation Utilities — A package of interior elevation drawing utilities designed to remove the drudge work from an arduous task.
  • Lisp Library — A library of lisp routines including HFACE (creates 3D faces to hide entities around text), ENEDIT (build a selection set quickly then use its editing routines), VAR (writes a text file recording all current drawing settings and restores them on demand), SPURGE (purge without verifying every item), BRKTXT (break a line of text and add it to another line or start a new one), GPEDIT (edit polylines globally), ASVIEW (view and print a text file from AutoCAD) and CLEAN (finds null text and text containing only spaces so you can delete it).
  • Lisput Utilities — Another grab bag of useful lisp utilities including BREAKF (break a line, polyline or arc at a point with a single pick instead of two), FLAYER (freeze, delete, turn off or make current the layer of a selected entity), IANG (calculates the angle between two intersecting picked lines), LAY (save or restore a list of layers to a drawing), MTRIM (trim multiple entities with one pick), STAMP (places a stamp containing the user name, modification date and time and drawing name) and SUM (adds a list of numeric text strings in the drawing and places the total).
  • LLP Site Lisp Collection — A large group of lisp routines complete with toolbars, covering layers, text, attributes and more.
  • Master Toolbar Collection — Another collection of text editing, layer editing and other lisp routines placed into a neat and tidy toolbar and menu.
  • MBA Toolbar Collection — A series of commonly used lisp routines placed into a neat and tidy toolbar package.
  • Mechanical Lisp Collection — A collection of AutoLISP routines for mechanical drafting and design, with various routines to draw drill holes, threaded holes and similar features.
  • Power Lisp Collection — A powerful set of lisp programs collected and combined into one organized program; installation instructions are in the help files under “installation”.
  • Rock Lisp Collection — Yet another grab bag of lisp utilities, with far too many good routines to list.

Filed Under: AutoLISP Routines

Primary Sidebar

Subscribe to our Youtube Channel

Post CAD drafting jobs on Freelancer.com. and get some free money to do this.

Categories

  • American Steel Industry (4)
  • AutoCAD Articles & Reference (30)
  • AutoCAD Bugs & Problems (19)
  • AutoCAD Tips (29)
  • AutoCAD Tutorials (54)
  • AutoLISP Routines (328)
  • AutoLISP Tutorials (15)
  • CAD Standards (7)
  • Civil 3D (7)
  • Civil Drafting (4)
  • Dimensions (2)
  • Drafting Funnies (71)
  • Drafting History (9)
  • Drafting Standards (84)
  • Electrical Drafting (2)
  • General IT reference (7)
  • Geometry (15)
  • GIS (2)
  • Hatch Patterns (12)
  • Office Life Hacks (3)
  • PT (1)
  • Revit Tutorials (54)
  • Steel Detailing (14)
  • Structural Drafting (26)
  • Technical Dictionary (61)
  • Useful Website Links (19)

Footer

Free downloads

  • Free AutoLISP routines
  • Free hatch patterns
  • SHX fonts & text styles
  • Numbering LISP collection
  • ISO 3098B font

Reference charts

  • AWS weld symbols chart
  • Steel detailing chart
  • Hole & slot sizes
  • Bolt edge distance
  • ANSI & ARCH paper sizes
  • How to fold an A1 drawing

Useful links

  • CAD blocks (DWG)
  • Revit families
  • structuraldrafter.com
  • cad-corner.com
  • About
  • Privacy policy

Provided for free with no warranty · Log in