arri
Utente Master
Regione: Lombardia
14951 Messaggi |
Inserito il - 21 settembre 2015 : 08:14:16
|
AutoLabelAttributesV1-1.lsp
Program Description
This program will automatically populate a specific attribute tag with a unique label within a set of attributed blocks, automatically renumbering if blocks are added, copied or erased.
The program uses an Object Reactor to monitor modification events for the set of all attributed blocks with a block name matching a block name or wildcard pattern specified within the program source code.
Following modification to any matching attributed block, a Command Reactor will trigger the program to automatically renumber a specific attribute tag held by all matching attributed blocks in the active layout of the drawing.
The block references are numbered in the order in which they are encountered in the drawing database of the active drawing (that is, the order in which the blocks were created).
The program also allows the user to specify a numbering prefix & suffix, the starting number for the numbering, and the number of characters to be used for fixed length numbering with leading zeros (i.e. if the numbering length is set to 2, the program will number the blocks 01,02,03,...,10,11,12).
The autonumbering functionality is automatically enabled on drawing startup when the program is loaded, and may be subsequently enabled or disabled manually using the commands autolabelon & autolabeloff respectively.
For continuous operation it is recommended that the program is automatically loaded on drawing startup - please refer to my Loading Programs Automatically tutorial if you are unsure how to accomplish this.
For instructions on how to set up the program to work with your attributed blocks, please read the Instructions for Running section below.
|
|