• 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

SHEETSHUFFLE LISP: Reorder and Rename AutoCAD Layout Tabs

August 3, 2026

SHEETSHUFFLE gives you a single dialog listing every layout in the drawing, where they can be dragged into order, sorted, renamed, prefixed, suffixed, added, deleted, copied and searched — with everything applied at once when you close it.

What SheetShuffle does

AutoCAD’s own tab handling is one right-click menu per tab. On a drawing with thirty sheets that needs renumbering after a sheet is inserted in the middle, that is thirty right-clicks and thirty typed names, with no way to see the result until it is finished.

Move — Top, Up, Down and Bottom move every highlighted tab at once, keeping their relative order. Reverse reverses just the highlighted tabs. Pref/Suff adds text before and after names, rejecting any change that would create a duplicate. Add, Delete, Copy and Current do what they say. Find is find-and-replace across tab names, one at a time or all at once, with each match shown in context. Reset puts the names and order back to how they were when the dialog opened.

Double-click any tab in the list to rename it.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type SHEETSHUFFLE.
  3. Drag tabs into order, or use one of the three sorts.
  4. Rename by double-clicking, or add a prefix and suffix in bulk.
  5. Close the dialog to apply the reordering.

How it works

Three sorting methods, and the third is the one that matters. Alphabetical is ordinary A to Z. Numerical sorts by the numbers inside the names, so Sheet2 comes before Sheet10 rather than after it. Architectural compares the parts of the name in turn, treating numbers as numbers and text as text — so A-101, A-102, A-201, S-101 comes out right.

Both the numerical and architectural sorts work by splitting each name into alternating runs of text and numbers — A-101a becomes ("A-" 101 "a") — then comparing those pieces in step. The numerical sort keeps only the numeric pieces; the architectural sort keeps everything and compares each piece against its counterpart, with numbers sorting before text where the two disagree in type. That is what makes it handle real sheet numbering schemes rather than approximately handling them.

Renaming, adding, deleting and copying happen immediately, because those are what you are watching for. Reordering does not. The list in the dialog is just a list of names; only when the dialog closes is each layout’s TabOrder set from its position in that list.

Reordering tabs one at a time would make AutoCAD renumber every other tab after each move, which is both slow and prone to leaving the tabs in a state nobody asked for.

Every change is inside one undo group, so a whole session of shuffling undoes in one step.

Notes and limits

  • Reset does not resurrect deleted tabs or remove added ones. It restores names and order only.
  • Tab names cannot contain < > / \ " : ; ? * | , = — the dialog rejects them, as AutoCAD would.
  • Model space is deliberately not listed. It cannot be renamed, moved or deleted.
  • Use the architectural sort for real sheet numbers. Alphabetical puts A-1011 before A-102.

Download and details

NameSheetShuffle — reorder, rename and manage layout tabs from one dialog
DownloadSheetShuffle.lsp — 69.7 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandSHEETSHUFFLE
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com); nothing extra — the dialog is written to a temporary file at run time and deleted again, so there is no .dcl to install.
Source size69.7 KB, 1,561 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoNot needed — this routine only reads the drawing and changes nothing.
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

  • SHEETNUMBER LISP — renumber sequentially once the order is right
  • SHEETFILL LISP — fill the title blocks from a register
  • SHEETSTRIP LISP — remove matching objects across the set
  • 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