• 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

CIVILINE LISP: Draw and Label a Boundary from Bearing

September 18, 2020

Last updated July 28, 2026

CIVILINE draws a boundary line from a distance and a bearing you type, then labels it with both. It is the everyday task of putting a title boundary onto a drawing from the figures on a survey plan, done as one command instead of a line, a rotation and two pieces of text.

The provenance is the nicest of anything in this library. It was written in January 1992 at Billings Vo-Tech in Montana, as a classroom exercise, by nine named students working with their instructor Tim Urbaniak. They put it into the public domain on the spot, with a line in the header that has aged well: “This program was created during a classroom exercise and is hereby placed into the public domain. Support education in your area…”

The students were Don S., Don A., Steve B., Tom E., Hal S., Bill P., Dave H., Kyle W. and Callie D. Thirty-odd years later their homework is still doing useful work, which is a decent outcome for a Tuesday afternoon.

What it does in practice

You give it a start point, a distance and a bearing. It works out the end point, draws the line, and then places the distance and bearing as text at the midpoint, rotated to run along the line.

Two decisions in the code are worth knowing because they are what make it fit into an existing drawing rather than fight it. Everything is drawn on your current layer, so the boundary lands wherever you have set up for it. And the text height comes from the TEXTSIZE system variable rather than being hard-coded, so labels come out at whatever size the rest of your annotation is using.

The bearing is asked for as an angle, which means you can type it in whatever angle format your drawing is set to. If AUNITS is set to surveyor’s units you can enter a proper quadrant bearing; if it is set to decimal degrees you type degrees. Set the units before you start rather than after.

Command reference

The file defines a single command, CIVILINE. The download is Civili.zip and the file inside is CIVILINE.LSP.

How to load it

Unzip Civili.zip and load CIVILINE.LSP with APPLOAD, or add it to the Startup Suite if boundary work is a regular job. There are no support files. Our AutoLISP guide covers loading.

Step-by-step usage

  1. Set your current layer and check TEXTSIZE, since those control what the result looks like.
  2. Type CIVILINE.
  3. At “Pick the Boundry Start Point:” pick the corner the line runs from. Use an object snap to land on an existing point.
  4. At “Enter the Boundry Distance:” type the length from the survey plan.
  5. At “Enter the Boundry Bearing:” type the bearing in your drawing’s angle format. The line and its labels are drawn.

Work around the boundary corner by corner, snapping each new start point to the end of the last line, and the traverse builds itself.

Compatibility notes

Dated January 1992, so written-for rather than tested-on. It uses only basic point, distance and angle functions and AutoCAD’s own drawing commands, none of which has changed, so it stands a good chance on a current release.

Plain AutoLISP with no dialog boxes and no Express Tools calls, so nothing requires the full product; LT users on LT 2024 or later, the release that brought AutoLISP to LT, should be able to run it. See what runs on AutoCAD LT. Being public domain, you are free to adapt it — changing the label format or the text placement would be a straightforward first project.

Download

Name: Boundary and Labels
Description: Draws a boundary line and labels the distance and
bearing using the current layer and text height.
Type: AutoCAD AutoLISP Routine
Author: Don S., Don A., Steve B., Tom E., Hal S.,
Bill P., Dave H., Kyle W., Callie D., Tim U.
File Size: 2 Kb
Cost: Free
Worked on: AutoCAD
Download File: Civili.zip

Related routines

  • COGO bearing and distance label — labels boundaries you have already drawn, with placement options.
  • Lot Number — number the lots the boundaries enclose.
  • VPGRID — a coordinate grid for the finished sheet.

References

  • AutoLISP: the complete guide
  • Free LISP routines library
  • AutoLISP on AutoCAD LT

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