Category : Printer + Display Graphics
Archive   : ATTMOVE.ZIP
Filename : ATTMOVE.LSP

 
Output of file : ATTMOVE.LSP contained in archive : ATTMOVE.ZIP
(defun C:ATTMOVE ()
; Author David McPherson
; This program will move AutoCAD block attributes of a given name
(setq atname (getstring "Enter attribute name (all caps): "))
(setvar "CMDECHO" 0)
(prompt "Select attribute for move:")
(setq sset (ssget))
(setq slgth (sslength sset))
(setq idx 0.0)
(while (<= idx slgth)
(setq ent (ssname sset idx))
(if ent (progn
(setq entf (entget ent))
(while (and (/= (cdr (assoc 0 entf)) "ATTRIB")
(/= (cdr (assoc 2 entf)) atname))
(setq ent (entnext ent))
(setq entf (entget ent)))
(if (and (= (cdr (assoc 0 entf)) "ATTRIB")
(= (cdr (assoc 2 entf)) atname))
(command "attedit" "" "" "" "" ent "p" pause "n"))))
(setq idx (1+ idx))
(terpri)))

  3 Responses to “Category : Printer + Display Graphics
Archive   : ATTMOVE.ZIP
Filename : ATTMOVE.LSP

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/