home *** CD-ROM | disk | FTP | other *** search
- ; Routine: CHANGE TEXT STYLE
- ; Purpose: To allow the user to change the heights of a window of text
- ; at a time.
-
- (defun c:chstyle ()
- (setq txtwindow (ssget))
- (if txtwindow
- (progn
- (setq newst (getstring "\nEnter the new text style: "))
- (setq c 0 changed 0)
- (setq len (sslength txtwindow))
- (while (< c len)
- (if (= "TEXT" (cdr (assoc 0 (setq entity (entget
- (ssname txtwindow c))))))
- (progn
- (setq oldst (cdr (setq st (assoc 7 entity))))
- (setq entity (subst (cons 7 newst) st entity))
- (entmod entity)
- (setq changed (1+ changed))
- )
- )
- (setq c (1+ c))
- )
- )
- )
- (Princ "Changed the heights of ")
- (Princ changed)
- (Princ " text lines.")
- (setq txtwindow nil newst nil st nil oldst nill changed nil c nil len nil entity nil
- )
- (terpri)
- )