Insert Block at Line Ends/Intersections (IBNP)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | IBNP |
|---|---|
| Category | Block Tools |
| Author | BGol Community |
| Source | thevijayparmar/bgol-cad-lisps |
| License | MIT |
| Requirements | AutoCAD (full version, not LT). Uses ActiveX (vla/vlax); the repository says it also targets BricsCAD and ZWCAD. |
| Prompt language | English |
| Files | NODEBLK-bgol.lsp (6 KB) |
| Added | 2026-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
- Load NODEBLK-bgol.lsp with APPLOAD.
- Make sure the block you want to use is defined in the drawing.
- Type IBNP at the command line.
- Choose Intersections, Endpoints or Both (Enter = Both).
- Select the lines, arcs and polylines.
- 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.
- NODEBLK-bgol.lsp (6 KB)
- License text
References
- Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps/tree/3acbe32f71b489f4c81dcd9372f989591a9be858/Block%20Lisps/Insert%20Block%20on%20Polyline
- Author: BGol Community – https://bgol.in/
- 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