• 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

PITCHMARK LISP: Draw the Roof Pitch Rise-Over-Run Symbol

August 6, 2026

PITCHMARK measures the slope of a line and draws the standard pitch triangle beside it: a small right-angled triangle whose hypotenuse lies parallel to the roof, with the run written along the horizontal leg and the rise along the vertical one.

What PitchMark does

It can also report the same slope as an angle in degrees, as a percentage grade, or as a ratio — the four ways a slope gets called up depending on whether you are drawing a roof, a ramp, a road or a drain.

Rise-per-run convention. Imperial roof pitch is quoted as rise per 12 of run, so the run label reads 12 and the rise is whatever the slope gives against it. Metric practice quotes a run of 100 or a plain angle, both available from the Format option.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type PITCHMARK.
  3. Select a sloping line, or pick two points along the slope.
  4. Choose the format — rise per 12, rise per 100, degrees, grade or ratio.
  5. Pick which side of the line the symbol sits on.

How it works

The slope is always taken as positive. A roof falling to the left has the same pitch as one falling to the right, and the symbol is mirrored rather than signed.

A perfectly vertical line has no defined pitch and is rejected. A perfectly horizontal one has a pitch of zero, which is reported rather than drawn — a zero-height triangle is not a symbol.

The triangle is built at the near end of the line and then shifted bodily perpendicular, toward the side you picked, by a small gap. That way the symbol never lands on top of the roof line itself.

Everything is sized from the dimension variables. The horizontal leg defaults to DIMDLI × DIMSCALE, text height from DIMTXT × DIMSCALE, and the standoff gap from DIMGAP × DIMSCALE — so the symbol looks like it belongs with the dimensions already on the sheet. Override the leg once and the new size is remembered for the session.

The triangle is drawn as a single closed polyline, so it selects, moves and erases as one object.

Notes and limits

  • Vertical lines are rejected, horizontal ones reported rather than drawn.
  • Pick the side deliberately — the symbol offsets perpendicular to the roof, not to the screen.
  • Sizes come from your dimension variables, so check DIMSCALE is right first.
  • One undo group covers the symbol.

Download and details

NamePitchMark — measure a slope and draw the pitch triangle
DownloadPitchMark.lsp — 13.5 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandPITCHMARK
Requiresnothing beyond a CAD platform with AutoLISP.
Source size13.5 KB, 309 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

  • ROOFPITCH LISP — working with roof slopes directly
  • HOUSESHELL LISP — the roof this measures
  • RISERUN LISP — dimensioning the X and Y components of a run
  • 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