Homeโ€บ Blogโ€บ BALN LISP: Create Marker Block Along Alignment Free Download
๐Ÿ“ LISP

BALN LISP: Create Marker Block Along Alignment Free Download

๐Ÿงฎ 3  |  ๐ŸŸข 3
08 Jan 2026 Trishunya Team
BALN LISP: Create Marker Block Along Alignment Free Download
๐Ÿ“ LISP ยท CAD UTILITIES

BALN LISP: Create Marker Block Along an Alignment (Free AutoLISP Download)

๐Ÿ“… 08 Jan 2026 ๐Ÿท๏ธ CAD BGBgol Global
BALN AutoLISP routine placing a numbered marker block with chainage along an alignment polyline in CAD

Numbering valves, manholes, or fitting points along a pipeline or road alignment usually means picking a point, measuring the chainage by hand, then typing three separate text labels next to a marker symbol. BALN collapses that into one pick-and-type step: it snaps to the nearest point on a selected alignment polyline and stamps a numbered marker with its Easting, Northing, and Chainage automatically. For anyone doing repetitive point-attribution work on linear infrastructure projects, that is a meaningful time saving across a long alignment.

BLKALN-bgol (Create Marker Block Along Alignment)

CATEGORY
Alignment Lisps
COMMAND NAME
BALN
LISP FILE
BLKALN-bgol.lsp
LICENSE
Open-source, free

Command Type: AutoLISP routine, works in AutoCAD, BricsCAD, ZWCAD, and most AutoLISP-compatible CAD platforms.
Developed by: BGol Community, bgol.in

Inspired by the general concept of attributed point-marker/block-creation utilities used to place numbered features (valves, manholes, fittings) along an alignment in survey and infrastructure drafting. This is an original, independently written routine, new file name, new command name, new source code, created so the CAD community has a free, editable, open-source alternative.

Overview

BALN places a numbered marker at a picked point on or near a selected alignment polyline. It automatically snaps the pick to the nearest point on the alignment and records that point's Easting, Northing, and Chainage (running distance from the alignment's start) as text alongside a circular marker symbol, exactly the kind of structured, per-point data infrastructure projects need for valve, manhole, or fitting schedules.

How to Use

  1. Load BLKALN-bgol.lsp into your CAD session (drag-and-drop the file onto the drawing window, or use the APPLOAD command).
  2. Type BALN at the command line and press Enter.
  3. Select the alignment polyline (LWPOLYLINE or POLYLINE).
  4. Pick a point on or near the alignment, the routine snaps to the closest point on the curve automatically.
  5. Enter a marker/block number when prompted (press Enter to default to 1).
  6. A circular marker plus three text labels (marker number, chainage, and Easting/Northing) are created on a dedicated layer, BGOL-BALN (colour blue), at the snapped point.

Why Use It

  • One-step attribution: captures number, chainage, and coordinates in a single pick-and-type operation instead of measuring and typing each value separately.
  • Snap-to-alignment accuracy: the marker is always placed exactly on the alignment curve, even if your pick point is slightly off it.
  • Consistent output: numbered markers land on their own layer, ready for review, export, or further attribute-block workflows, matching the level of structure expected in a formal stakeout deliverable.

Where to Use It

  • Placing numbered valve, manhole, hydrant, or fitting markers along a water supply, sewer, drainage, or utility alignment.
  • Any infrastructure project needing structured point features (number + coordinates + chainage) captured directly from the drawing.
  • Asset management and as-built documentation where each feature needs a consistent, labeled marker tied to its exact alignment location.

Notes

  • Marker circle radius and text height are fixed at 1.2 and 0.9 drawing units respectively; adjust the circR / txtht values inside C:BALN in the .lsp file to suit your drawing scale.
  • Chainage is measured along the selected alignment from its start point using the alignment's own curve parameterization, so it stays accurate even where the alignment contains arcs.
  • Source code is fully open, feel free to study, modify, and redistribute it under the same open, free-for-all spirit.

Credits

Developed and shared for the CAD community by BGol Community. Website: bgol.in. Free and open-source, use it, modify it, share it, for personal or commercial work alike.

Frequently Asked Questions

What does the BALN command actually record at each marker?โ–พ

Each marker records three values as text: the marker/block number you enter, the chainage measured along the alignment from its start, and the Easting/Northing coordinates of the snapped point.

Does BALN work with alignments that contain arcs, not just straight segments?โ–พ

Yes. Chainage is measured using the alignment's own curve parameterization, so it stays accurate along polylines that include arc segments, not just straight tangents.

Can I change the marker size for a different drawing scale?โ–พ

Yes. The circle radius and text height are fixed at 1.2 and 0.9 drawing units by default, but you can edit the circR and txtht values inside the C:BALN function in the .lsp file.

What layer do BALN markers get placed on?โ–พ

All markers and their text labels are created on a dedicated layer named BGOL-BALN, colour blue, keeping them separate from your existing drawing layers.

Is BALN free for commercial infrastructure projects?โ–พ

Yes. BALN is open-source and free to use, modify, and redistribute for both personal and commercial work, developed and shared by the BGol Community.

๐Ÿค About BGol Community

BGol Community of Advanced Surveying builds and shares free, open-source tools for the survey and CAD drafting community.

๐Ÿ™Œ Made with โค๏ธ by BGol Community of Advanced Surveying

Free, open-source, and built for the CAD community, for personal or commercial use, always.

Back to all articles