• 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

PNEUMLINE LISP: Draw Instrument and Signal Lines

August 6, 2026

PNEUMLINE draws the signal lines used on process and instrument diagrams, where the marks along a line say what kind of signal it carries.

What PneumaticLine does

Pneumatic takes double cross-hatch ticks. Electric takes single dashes across. Capillary takes crossed X marks. Data takes small circles.

Pick a route and the line is drawn with its marks evenly spaced along it, each square to the line at that point.

How to use it

  1. Load the routine with APPLOAD, or put it on your support file search path.
  2. Type PNEUMLINE.
  3. Choose the signal type.
  4. Pick the route, point by point. Press Enter to finish.

How it works

Each mark is rotated to the line direction at its own position, computed rather than chosen from a small set. Picking between a horizontal and a vertical block by testing the line angle, then subtracting 90° to compensate, puts the marks square to the line on exactly four directions and at an angle everywhere else.

Nothing is inserted from a block. A routine that inserts blocks which must already be in the drawing draws the line successfully and then fails on the first mark, on any drawing that does not happen to have them.

Mark size and spacing are proportional, not written into the code in drawing units. Fixed values work at exactly one scale and give you marks that are either invisible or the length of the line at every other.

Angle tests use inclusive comparisons. A chain of quadrant tests written with strict greater-than and less-than leaves a line at exactly 45° matching no branch at all — and the mark angle stays at whatever the previous line happened to set.

Notes and limits

  • Four signal types, matching the usual P&ID conventions.
  • Marks are proportional to the line, so they hold at any drawing scale.
  • Nothing has to be installed — no companion blocks.
  • CMDECHO and BLIPMODE are restored on every path, including cancel.

Download and details

NamePneumaticLine — draw the signal lines used on process and instrument diagrams
DownloadPneumaticLine.lsp — 7.7 KB, plain AutoLISP source. Downloads directly; no zip to unpack.
TypeAutoCAD AutoLISP routine
CommandPNEUMLINE
Requiresthe ActiveX layer (loaded automatically by the routine with vl-load-com).
Source size7.7 KB, 181 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

  • FLEXDUCT LISP — flexible duct with its corrugated coil
  • BLOCKNOTCH LISP — cutting a gap where an instrument symbol sits
  • CURVEHUG LISP — placing symbols 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