eplisp

Break Gap at Cutting Line (TRIMP)

eplisp, the free multilingual LISP library

Break Gap at Cutting Line (TRIMP)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsTRIMP
CategoryDrawing and Editing
AuthorLance A. Endres
Sourcelendres/CAD-Support-Files
LicenseMIT
RequirementsAutoCAD (full version, not LT). Uses ActiveX (vla/vlax), so it should also run in Visual LISP-compatible programs such as BricsCAD.
Prompt languageEnglish
Filestrimp.lsp (3 KB)
Added2026-10-26
Download the original fileSource repository

Breaks selected lines where they cross a picked cutting line, leaving an equal gap on both sides, so crossing lines can be shown as interrupted.

TRIMP is a drafting helper from Lance A. Endres's CAD support files. It creates the gap detail used to show that one line passes under another, in one step instead of running BREAK on every line.

Overview

You first pick a LINE as the cutting line; the Trim option at the prompt changes the gap distance (default DIMSCALE/12). Then you select the lines to cut. For each line the intersection with the cutting line is calculated, and the BREAK command removes the set distance on both sides of that point.

The operation runs inside one undo group; OSMODE and CMDECHO are changed temporarily and restored at the end.

How to use it

  1. Load trimp.lsp with APPLOAD.
  2. Type TRIMP at the command line.
  3. If needed, choose T (Trim) and enter the gap distance.
  4. Pick the LINE to use as the cutting line.
  5. Select the lines to break and press Enter.

Notes and limitations

  • Works on LINE objects only; polylines and arcs are not supported.
  • The intersection is calculated on infinitely extended lines: lines that do not actually reach the cutting line are still broken at the extended intersection. Selecting a line parallel to the cutting line causes an error.
  • The gap distance is kept in the global TRIMDIST variable for the session.
  • It calls vla functions before vl-load-com; if Visual LISP support is not yet loaded, the first run may fail.

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

  1. Source repository: lendres/CAD-Support-Files – https://github.com/lendres/CAD-Support-Files/tree/b8303392c64a33077e883f51db54c00f3a710a5a/Support
  2. Author: Lance A. Endres – https://github.com/lendres
  3. License: MIT – https://github.com/lendres/CAD-Support-Files/blob/b8303392c64a33077e883f51db54c00f3a710a5a/License.txt

Found a mistake, or are you the author of this tool? Request a correction or removal