Fire Alarm Device Tagger (TAGDEVICES)
eplisp, the free multilingual LISP library
| Openly licensed; the original file is hosted here together with its license. | |
… Rate this tool: | |
| Commands | TAGDEVICESSETTAGBASESETTAGCOUNTRESETTAGCOUNT |
|---|---|
| Category | Electrical Design |
| Author | hassin070 |
| Source | hassin070/MEP-AUTOCAD-Scripts |
| License | Apache-2.0 |
| Requirements | AutoCAD (full version, not LT). Uses ActiveX (vla/vlax), so it should also run in Visual LISP-compatible programs such as BricsCAD. |
| Prompt language | English |
| Files | AutoDeviceTagger_Corrected.lsp (3 KB) |
| Added | 2026-10-26 |
| Download the original fileSource repository | |
Writes tags such as L1/SD-1-GF under fire alarm device blocks, taking the device type from the block name and adding loop, running number and floor.
TagDevices is a fire alarm design helper from hassin070's MEP scripts. Instead of typing sequential address tags with loop and floor information next to detector, call point and module symbols, it creates them automatically in selection order.
Overview
The effective name of each selected block is compared with the known type codes SD, MD, HD, FIM, F, AIM, AOM, AVS and AS. The first code found is used in the tag; blocks with no code are skipped. The tag has the form "loop/TYPE-number-floor" and is a middle-center MTEXT, 4 units high, placed 20 units below the center of the block's bounding box.
Loop and floor are set with SETTAGBASE (defaults L1 and GF) and the start number with SETTAGCOUNT; RESETTAGCOUNT sets the counter back to 1. The counter is kept between commands, so numbering continues where it stopped on the next selection.
How to use it
- Load AutoDeviceTagger_Corrected.lsp with APPLOAD.
- If needed, type SETTAGBASE and enter the loop (e.g. L1) and floor (e.g. GF).
- If needed, set the start number with SETTAGCOUNT, or reset it to 1 with RESETTAGCOUNT.
- Type TAGDEVICES and select the device blocks in the order they should be numbered.
Notes and limitations
- Text height (4) and downward offset (20) are fixed, which suits plans drawn in millimeters at a particular scale.
- Type detection is a substring match on the block name: for example any block with the letter F in its name can be taken as type "F". Check your block names.
- If the selection contains a non-block object, the command stops with an error; select blocks only.
- Numbers follow the selection order. Tags are added on the current layer with the Standard text style.
- Loading the file resets loop and floor to L1/GF. The ✔ and ⚠ symbols in command-line messages may not display in older versions.
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: hassin070/MEP-AUTOCAD-Scripts – https://github.com/hassin070/MEP-AUTOCAD-Scripts/tree/730be2e5f4d21e7b1ed4b678d989d52b0a61a1f5
- Author: hassin070 – https://github.com/hassin070
- License: Apache-2.0 – https://github.com/hassin070/MEP-AUTOCAD-Scripts/blob/730be2e5f4d21e7b1ed4b678d989d52b0a61a1f5/LICENSE
Found a mistake, or are you the author of this tool? Request a correction or removal