home *** CD-ROM | disk | FTP | other *** search
- ;move objects to a new layer
- ;
- ; ********Patrick J. McKee, author********
- ; ****Copyright 1992, Power Key tm****
- ;
- (setq ss (ssget))
- (SETQ UL1(GETSTRING "\nLayer to move entities to : "))
- (setq counter 0)
- (prompt "Moving to layer.....")(princ ul1)
- (while
- (setq e (ssname ss counter))
- (setq l (cdr (assoc 8 (entget e))))
- (setq S (ssget "X" (list (cons 8 l))))
- (progn
- (command "CHANGE" s "" "P" "LA" UL1 ""))
- (setq counter (+ counter 1))
- (princ))