• 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

SHOPSHAPES LISP: Spirals, Slotted Holes and Bolted Flanges

August 6, 2026

Three shapes AutoCAD has no command for. SPIRAL draws a flat Archimedean spiral. SLOT draws a slotted hole at any angle. FLANGE draws a bolted flange in plan.

What ShopShapes does

SPIRAL  a flat Archimedean spiral - the kind used for coils, springs seen
         on edge, scroll details and clock springs. HELIX draws a 3D
         helix and cannot do this.
SLOT    a slotted hole - two semicircular ends joined by parallel sides,
         at any angle. Drawn as ONE closed polyline, so it can be
         offset, hatched or used as a trim boundary in one piece.
FLANGE  a bolted flange in plan - outside diameter, bore, bolt circle
         and any number of bolt holes set out from a start angle.

Note on SLOT. The older SLOT LISP defines a command of the same name, so load one or the other — whichever is loaded second silently replaces the first. SPIRAL and FLANGE clash with nothing.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type SPIRAL, SLOT or FLANGE.
  3. For a spiral, give the start and end radius and the number of turns.
  4. For a slot, give the width, the length and the angle.
  5. For a flange, give the outside diameter, bore, bolt circle, hole count and start angle.

How it works

The slot is one closed polyline, semicircular ends and parallel sides together. That is the difference between a shape you can offset, hatch or trim against and four separate objects that happen to line up.

Two corrected defects are worth recording, because both originals were shipped and used in this state.

The slot did (polar lastpoint A B) where A was the slot radius, not an angle — so the straight side ran off at an angle equal to the radius in radians, and the slot only closed when the radius happened to be near zero.

The flange’s validation loop set its two error flags when the bolt circle was out of range, then exited the loop when both flags were set. So it accepted a bolt circle only if it was simultaneously bigger than the outside diameter and smaller than the bore — which is impossible — and looped forever on every valid answer.

Notes and limits

  • SLOT clashes with the older SLOT LISP. SPIRAL and FLANGE do not clash.
  • The slot is one closed polyline.
  • SPIRAL is flat — for a rising helix use HELIX3D.
  • One undo group per shape.

Download and details

NameShopShapes — three shapes AutoCAD has no command for
DownloadShopShapes.lsp — 13.3 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandsFLANGE, SLOT, SPIRAL
Requiresnothing beyond a CAD platform with AutoLISP.
Source size13.3 KB, 329 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoThe whole operation is wrapped in a single undo group, so one U reverses all of it.
CompatibilityAutoCAD (any release with AutoLISP), BricsCAD, ZWCAD, GstarCAD, ProgeCAD and other IntelliCAD-based platforms. AutoCAD LT needs a LISP enabler. No .NET, no ObjectARX, no installer.
AuthorYZ, August 2026
LicenceFree to use, supplied “as is” with no warranty.

References

  • SLOT LISP — the older routine of the same command name
  • Standard hole and slot sizes — the AISC chart the dimensions come from
  • HELIX3D LISP — the rising helix, where SPIRAL is flat
  • More free AutoLISP routines on this site
  • Wisey’s Steel Shapes — free structural steel section drawing program

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