• 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

FLEXDUCT LISP: Draw Flexible Ductwork Along a Route

August 6, 2026

FLEXDUCT draws flexible ductwork along a route you pick — two walls at the duct width, with the corrugated coil between them that says flexible on an HVAC drawing, and a plain collar at each end where it clamps to rigid.

What FlexDuct does

It follows a run of straight legs, rounding each corner to a bend radius, so a drop from a branch to a diffuser takes a couple of picks.

Why the coil matters. Rigid duct and flexible duct are drawn the same way but for the coil, and they are costed and installed quite differently. A run drawn without it reads as rigid, and the difference shows up on site rather than on the drawing.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type FLEXDUCT.
  3. Give the duct width and bend radius.
  4. Pick the route, leg by leg.
  5. Press Enter to finish. Collars are added at each end.

How it works

The coil is generated along the centreline of the run, between the two walls, so it follows the route rather than being drawn straight and bent afterwards.

The collar is proportional to the duct, not a fixed number of drawing units. Two constants written straight into the code — 9 and 7, say — work at exactly one scale, and produce a collar that is either invisible or enormous at every other.

Corners are computed, not filleted. Running the FILLET command against points picked on lines just drawn works until the radius comparison gets the sense wrong on a left-hand bend — and then it works on one corner and not the next.

Notes and limits

  • Give a bend radius the duct can actually make. Flexible duct has a minimum bend radius and a tight corner throttles it.
  • Collars are sized from the duct width, so they hold at any scale.
  • CMDECHO is restored on every path.
  • One undo group covers the run.

Download and details

NameFlexDuct — draw a run of flexible duct along a picked route
DownloadFlexDuct.lsp — 8.9 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandFLEXDUCT
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size8.9 KB, 205 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

  • TWINOFFSET LISP — offsetting a centreline to both faces
  • CURVEHUG LISP — placing diffusers and fittings along the 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