• 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

BANKSLOPE LISP: Draw Bank and Slope Hatching on Site Plans

August 6, 2026

BANKSLOPE draws the scalloped run of lines that marks an earth bank on a site plan — between the top of a slope and its toe, long and short alternating, each one bowed the opposite way to its neighbour.

What BankSlope does

Cuttings, embankments, pond edges, bunds, spoil heaps. Pick the top line, pick the bottom, and the hatching is laid between them.

The alternating long and short is the convention: full length to the toe, then half, then full again.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type BANKSLOPE.
  3. Pick the top of slope.
  4. Pick the toe of slope.
  5. Adjust the scallop size if the default does not suit the drawing scale.

How it works

Each scallop is drawn between the top line and the bottom line at the point it happens to be, not to a fixed length. So where the bank is wide the scallops stretch, and where it narrows they shorten.

That is what makes the hatching read as a slope rather than a row of ticks. A fixed-length version looks passable on a uniform bank and obviously wrong the moment the bank tapers, which on a real site plan it always does.

The geometry is built directly, with the bulge set as each vertex is written. The alternative — drawing a run of separate polylines, joining them with PEDIT against a selection window, then walking the result setting bulges vertex by vertex — works until the selection window catches something else on the drawing, at which point that gets joined in too.

The size is held in the routine, not in a system variable. Parking a setting in a general-purpose variable like USERR2 means anything else in the drawing using it for its own purposes silently changes the scallop size — and setting it here breaks whatever that was.

Notes and limits

  • Pick the top of slope first. The alternation runs from there.
  • The scallop size is proportional to the drawing, so check it once at your working scale and it holds.
  • The current layer is restored on every path, including cancel and error — so an interrupted run does not leave you drawing on the hatching layer.
  • One undo group covers the whole bank.

Download and details

NameBankSlope — scalloped hatching between the top and toe of a bank
DownloadBankSlope.lsp — 9.0 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandBANKSLOPE
Requiresnothing beyond a CAD platform with AutoLISP.
Source size9.0 KB, 207 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

  • Free AutoCAD hatch patterns — 300+ .PAT files, for the other site materials
  • CURVEHUG LISP — placing symbols along the top of the bank
  • 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