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

Nota: Devi essere registrato per poter inserire un messaggio.
Per registrarti, clicca qui. La Registrazione è semplice e gratuita!

Larghezza finestra:
Nome Utente:
Password:
Modo:
Formato: GrassettoCorsivoSottolineatoBarrato Aggiungi Spoiler Allinea a  SinistraCentraAllinea a Destra Riga Orizzontale Inserisci linkInserisci EmailInserisci FlashInserisci Immagine Inserisci CodiceInserisci CitazioneInserisci Lista
   
Icona Messaggio:              
             
Messaggio:

  * Il codice HTML è OFF
* Il Codice Forum è ON

Faccine
Felice [:)] Davvero Felice [:D] Caldo [8D] Imbarazzato [:I]
Goloso [:P] Diavoletto [):] Occhiolino [;)] Clown [:o)]
Occhio Nero [B)] Palla Otto [8] Infelice [:(] Compiaciuto [8)]
Scioccato [:0] Arrabbiato [:(!] Morto [xx(] Assonnato [|)]
Bacio [:X] Approvazione [^] Disapprovazione [V] Domanda [?]
Seleziona altre faccine

    
 
   

V I S U A L I Z Z A    D I S C U S S I O N E
arri 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.
1   U L T I M E    R I S P O S T E    (in alto le più recenti)
arri Inserito il - 29 settembre 2015 : 07:43:28
http://www.lee-mac.com/lisp/AutoLabelAttributesV1-2.lsp

TuttoCAD Forum © 2001-2010 CADLandia Torna all'inizio della Pagina
Pagina generata in 0,1 secondi.