• 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

VIEWLABEL LISP: View, Section and Detail Titles

August 6, 2026

VIEWLABEL places the title under a drawn view — VIEW A-A, SECTION B-B, DETAIL C — with the pair of rules beneath it and an optional scale note.

What ViewLabel does

It is a small job done many times per sheet, and doing it by hand is how sheets end up with titles at three different heights and rules of four different lengths.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type VIEWLABEL.
  3. Choose view, section or detail, and give the identifying letter.
  4. Add a scale note if you want one.
  5. Pick the point the title should be centred on — normally directly below the middle of the view.

How it works

VIEW and SECTION titles repeat the identifying letter either side of a dash, because they are cut on a line marked at both ends: a section marked A at both ends is SECTION A-A. A DETAIL is called out at one point only, so it takes a single letter.

The rules are measured from the title, not fixed per type. The routine this replaces carried a hard-coded half-width for each of the three types, so “SECTION AA-AA” ran past its own underline while “DETAIL A” sat in the middle of one far too long for it.

Here the width comes from the length of the text actually being written, plus a margin, so it is right for any identifier.

Two rules rather than one, the lower slightly wider than the upper, which is the conventional treatment and reads as deliberate rather than as a doubled line.

Everything scales from DIMSCALE, so the title matches the dimensions on the same sheet. Title text is DIMTXT × DIMSCALE × 1.35 — titles are set slightly larger than dimension text — and the scale note is smaller again at 0.7 of the title.

Notes and limits

  • Rules fit the title, whatever the identifier.
  • Set DIMSCALE first — everything follows it.
  • The scale note is optional.
  • One undo group covers the title.

Download and details

NameViewLabel — place a view, section or detail title
DownloadViewLabel.lsp — 7.3 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandVIEWLABEL
Requiresnothing beyond a CAD platform with AutoLISP.
Source size7.3 KB, 184 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

  • VIEWFRAME LISP — framing the view the title belongs to
  • HIDESECTION LISP — the section it refers to
  • LEVELTAG LISP — another small annotation done many times a sheet
  • 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