• 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

FOLLOWON LISP: Select a Connected Chain of Curves

August 3, 2026

Pick any line, arc, open polyline, spline or elliptical arc, and FOLLOWON selects everything joined to it end to end — then everything joined to those, and so on outwards until the chain runs out.

What FollowOn does

This is the tool for grabbing a complete pipe run, a kerb line, a services route or a site boundary that was drawn as forty separate segments by someone who had never heard of PEDIT.

One pick replaces a fence selection, or a great deal of shift-clicking along something that curves.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type FOLLOWON.
  3. Pick any one object in the chain.
  4. The whole connected run is selected, ready for the next command.

How it works

The search works outwards in waves. It starts with the endpoints of the picked object, then repeatedly sweeps the remaining candidates looking for any whose start or end point coincides with a point already in the chain. Every match found is added, its endpoints join the frontier, and the sweep runs again. When a full sweep adds nothing new, the chain is complete.

Objects already matched are removed from the candidate pool each round, so the search gets faster as it goes rather than repeatedly re-testing the same geometry. On a long run that is the difference between usable and not.

Closed objects are excluded by design. A closed polyline, a circle or a full ellipse has no free ends, so it can neither continue a chain nor be continued from. Including them would mean a chain that merely touched a circle would stop dead there. The selection filter rejects them outright.

Notes and limits

  • Endpoints must actually coincide. Segments that only look joined, or that overlap without sharing an endpoint, break the chain — which is often exactly what you want to discover.
  • Closed objects cannot be picked or included. Circles and closed polylines have no ends.
  • A branch stops nothing. If three segments meet at a point, all of them are picked up — the chain grows in every direction it can.
  • It only selects, so nothing is changed and there is no undo group.

Download and details

NameFollowOn — select a whole connected chain of curves from one pick
DownloadFollowOn.lsp — 10.6 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandFOLLOWON
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size10.6 KB, 259 lines
Error handlingYes — a *error* handler restores every system variable it changed, on cancel as well as on error.
UndoNot needed — this routine only reads the drawing and changes nothing.
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

  • TAPE LISP — total the length of the chain once you have it selected
  • CORRAL LISP — select everything inside a boundary instead of along a chain
  • CURVEHUG LISP — place symbols along the run you have found
  • 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