Pipe Slope from Invert Levels
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | PIPS |
|---|---|
| Category | Measuring and Totals |
| Author | CivilTechSource (AutoCAD Lisps 4 All) |
| Source | CivilTechSource/AutoCAD-Lisps-4-All |
| License | MIT |
| Version | 1.0 |
| Requirements | AutoCAD, AutoCAD LT 2024 or later, BricsCAD; does not use ActiveX. |
| Prompt language | English |
| Files | Pips - Calculate Pipe Slope v1.0.lsp (6 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
PIPS takes two points and their invert levels, reports pipe length, fall and slope as 1:X, percent and degrees, warns on adverse grade and adds a label.
PIPS is one of the drainage tools in CivilTechSource's 'AutoCAD Lisps 4 All' repository. It is written for infrastructure drafters who want to work out the slope of a sewer or storm pipe between two manholes from their invert levels.
Overview
You pick the upstream point and enter its invert level, then pick the downstream point and enter its invert level. The routine prints the horizontal distance between the points (ignoring any Z difference), the fall (IL1 - IL2) and the slope as 1:X, percent and degrees. If the pipe rises toward the second point, it warns about an adverse grade. A summary is placed as MTEXT at the pipe's midpoint on layer PIPE_SLOPE.
How to use it
- Load 'Pips - Calculate Pipe Slope v1.0.lsp' with APPLOAD.
- Type PIPS at the command line.
- Pick the upstream point and enter its invert level.
- Pick the downstream point and enter its invert level.
- Read the results at the command line; the summary label is placed at the pipe midpoint.
Notes and limitations
- The file header and load message call the command PIPESLOPE, but the command actually defined is PIPS.
- The label is written to layer PIPE_SLOPE, which is created automatically if missing. Text height is fixed at 2.5 units and units are assumed to be metres.
- Line breaks in the label are plain newline characters instead of MTEXT \P codes, so depending on the program the label may appear on one line.
- If the two points coincide, no slope is calculated and no label is created.
- License: the repository's LICENSE file is MIT.
- The repository was published in 2026 and the amount of testing is not stated; try it on a copy of the drawing first.
Source and license
This tool is not made by eplisp. The file is published unchanged under its author's license; copyright stays with the author.
References
- Source repository: CivilTechSource/AutoCAD-Lisps-4-All – https://github.com/CivilTechSource/AutoCAD-Lisps-4-All/tree/ebf12c27ef9903c06f5f9a57ad369f74be211316/Drainage
- Author: CivilTechSource (AutoCAD Lisps 4 All) – https://github.com/CivilTechSource
- License: MIT – https://github.com/CivilTechSource/AutoCAD-Lisps-4-All/blob/ebf12c27ef9903c06f5f9a57ad369f74be211316/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal