TuttoCAD Forum

TuttoCAD Forum
[ Home | Registrati | Discussioni Attive | Discussioni Recenti | Segnalibro | Msg privati | Sondaggi Attivi | Utenti | Album Fotografico | Download | | Cerca | FAQ ]
Nome Utente:
Password:
Salva Password
Password Dimenticata?

 Tutti i Forum
 1 - TuttoCAD Software
 AutoLISP
 Automatically Label Attributes
 Nuova Discussione  Rispondi
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
I seguenti utenti stanno leggendo questo Forum Qui c'è:
Autore Discussione Precedente Discussione Discussione Successiva  

arri
Utente Master


Regione: Lombardia


14951 Messaggi

Inserito il - 21 settembre 2015 : 08:14:16  Mostra Profilo Invia a arri un Messaggio Privato  Rispondi Quotando
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.

arri
Utente Master


Regione: Lombardia


14951 Messaggi

Inserito il - 29 settembre 2015 : 07:43:28  Mostra Profilo Invia a arri un Messaggio Privato  Rispondi Quotando
http://www.lee-mac.com/lisp/AutoLabelAttributesV1-2.lsp
Torna all'inizio della Pagina
  Discussione Precedente Discussione Discussione Successiva  
 Nuova Discussione  Rispondi
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
Vai a:
TuttoCAD Forum © 2001-2010 CADLandia Torna all'inizio della Pagina
Pagina generata in 0,25 secondi.