eplisp

Insert Block at Line Ends/Intersections (IBNP)

eplisp, the free multilingual LISP library

Insert Block at Line Ends/Intersections (IBNP)
Openly licensed; the original file is hosted here together with its license.
…
Rate this tool:
CommandsIBNP
CategoryBlock Tools
AuthorBGol Community
Sourcethevijayparmar/bgol-cad-lisps
LicenseMIT
RequirementsAutoCAD (full version, not LT). Uses ActiveX (vla/vlax); the repository says it also targets BricsCAD and ZWCAD.
Prompt languageEnglish
FilesNODEBLK-bgol.lsp (6 KB)
Added2026-10-26
Download the original fileSource repository

Inserts a chosen block at the endpoints and/or mutual intersections of selected lines, arcs and polylines, placing exactly one block at each point.

IBNP is a BGol Community routine for marking the nodes of a network with a block. It places a symbol at every junction and end of pipe, cable or road centerlines in one command.

Overview

You first choose Intersections, Endpoints or Both (the default), then select LINE, ARC and LWPOLYLINE objects and type the name of the block to insert. If the block is not defined in the drawing, nothing is inserted. Endpoints are taken from each object's start and end point; intersections are found by comparing the selected objects in pairs, without extending them.

Points closer than 0.001 units are treated as one, so no point gets a second block. Blocks are inserted at scale 1 and rotation 0 on the layer BGOL-IBNP, which is created in red if it does not exist.

How to use it

  1. Load NODEBLK-bgol.lsp with APPLOAD.
  2. Make sure the block you want to use is defined in the drawing.
  3. Type IBNP at the command line.
  4. Choose Intersections, Endpoints or Both (Enter = Both).
  5. Select the lines, arcs and polylines.
  6. Type the name of the block to insert.

Notes and limitations

  • Blocks are always inserted at scale 1 and rotation 0; for blocks with attributes, no attributes are created.
  • Self-intersections of a single polyline are not found; only intersections between different objects are checked.
  • The intersection check visits every pair of objects and the duplicate check scans every point, so very large selections are slow.
  • Creates the layer BGOL-IBNP if it is missing.
  • The repository is new (2026); test the routine 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

  1. Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps/tree/3acbe32f71b489f4c81dcd9372f989591a9be858/Block%20Lisps/Insert%20Block%20on%20Polyline
  2. Author: BGol Community – https://bgol.in/
  3. License: MIT – https://github.com/thevijayparmar/bgol-cad-lisps/blob/3acbe32f71b489f4c81dcd9372f989591a9be858/LICENSE

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