• 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

CEILGRID LISP: Lay a Suspended Ceiling Grid in a Room

August 6, 2026

CEILGRID fills a room outline with a suspended ceiling grid at the tile size you give, at any rotation, and centred so the cut tiles come out equal on opposite walls — which is what a ceiling contractor will do on site, and therefore what the drawing should show.

What CeilingGrid does

Pick the room boundary, give the tile size, and nudge the grid until the edge tiles look right.

Centring. The grid starts centred on the middle of the boundary’s extents, so both edge tiles in each direction are the same width. That is the usual starting point; from there you can shift it to line up with a feature, and the cut tiles rebalance as you go.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type CEILGRID.
  3. Pick the room boundary.
  4. Give the tile size and rotation.
  5. Nudge the grid until the edge tiles suit — against a feature wall, or balanced.

How it works

A ceiling grid that starts at a corner leaves a full tile on two walls and a sliver on the other two. Starting from the centre of the extents splits the remainder evenly, which is both what looks right and what gets built.

SNAPBASE is restored to the point it was, not to a string. That sounds trivial until it is not: SNAPBASE is a point variable, and handing it the text “0,0” neither restores it nor sets it to the origin — it just fails, quietly, leaving your snap base wherever the grid put it.

The polyline width is read from the setting, not from a scratch object. Drawing a throwaway polyline and erasing it just to read the current width off the screen works, and leaves an object behind on any path that does not reach the erase.

Notes and limits

  • The grid is centred on the boundary extents, not on the boundary’s centroid — which matters on an L-shaped room.
  • Layer, SNAPBASE and CMDECHO are all restored, on error and cancel as well as on success.
  • Any rotation is supported, so a grid set out to a skewed wall works.
  • One undo group covers the grid.

Download and details

NameCeilingGrid — lay a suspended ceiling grid inside a room outline
DownloadCeilingGrid.lsp — 7.4 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandCEILGRID
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size7.4 KB, 168 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

  • CORRAL LISP — select everything inside the room boundary afterwards
  • SHRINKWRAP LISP — build a boundary where none exists yet
  • 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