Find Missing/Duplicate Numbers (SNCK)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | SNCK |
|---|---|
| Category | Text 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 | SEQCHK-bgol.lsp (5 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
Scans selected number labels, lists the numbers missing between the lowest and highest value and those used twice, and marks the repeated labels.
SNCK is a quick QA check for serial numbering such as parcel, point or station numbers. Instead of hunting by eye for numbers that were skipped or used twice in a hand-numbered drawing, it prints the result on the command line.
Overview
The content of each selected TEXT object is read as an integer. The routine finds the lowest and highest value, checks every number in between, and prints the count and list of missing numbers followed by the list of duplicated numbers.
A POINT object is placed at the insertion point of every text whose number is duplicated. These points go on the layer BGOL-SNCK, which is created in red if it does not exist.
How to use it
- Load SEQCHK-bgol.lsp with APPLOAD.
- Type SNCK at the command line.
- Select the number labels to check and press Enter.
- Read the missing and duplicate lists on the command line; press F2 to open the text window for long lists.
Notes and limitations
- Values are read with atoi: prefixed or non-numeric labels such as "P-12" count as 0 and pull the range down to 0, and decimals are truncated. Select plain number labels only.
- Whether the marker points are visible depends on PDMODE and PDSIZE.
- The check uses simple list scans, so ranges of tens of thousands of numbers can be slow.
- Creates the layer BGOL-SNCK 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.
- SEQCHK-bgol.lsp (5 KB)
- License text
References
- Source repository: thevijayparmar/bgol-cad-lisps – https://github.com/thevijayparmar/bgol-cad-lisps/tree/3acbe32f71b489f4c81dcd9372f989591a9be858/Text%20Lisps/Check%20Missing%20Numbers%20in%20Sequence
- 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