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
 Traslare il valore degli attributi di un blocco

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 - 27 giugno 2012 : 11:28:08
http://autocadtips.wordpress.com/2011/12/21/autolisp-bump-attributes-values/


; by Lee-Mac
; This will "bump attributes in the order that they were selected
; great for title block revisions...
(defun c:bump ( / a g ) ;; Lee Mac 2011
(cond
( (setq a (ssget "_+.:S:E:L" '((0 . "INSERT") (66 . 1))))
(setq a (vlax-invoke (vlax-ename->vla-object (ssname a 0)) 'getattributes))
(princ "\nPress [+/-] to Bump Attributes Up & Down. <Done>")
(while (member (setq g (grread nil 10)) '((2 45) (2 95) (2 43) (2 61)))
(mapcar 'vla-put-textstring a
(mapcar 'vla-get-textstring
(if (member g '((2 45) (2 95))) (cons (last a) a) (append (cdr a) (list (car a))))
)
)
)
)
)
(princ)
)
(vl-load-com) (princ)

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