home *** CD-ROM | disk | FTP | other *** search
- ;
- ; TURNS THE LAYER OFF......................LF
- ; THEN TURNS IT BACK ON WHEN NEEDED........LO
- ;
- ; ********Patrick J. McKee, author********
- ; ****Copyright 1992, Power Key tm****
- ;
- ;
- (defun c:LF (/ a b c d)
- (graphscr)
- (prompt "\nSelect Object on Layer to OFF...")
- (setq a (entsel))
- (setq b (entget (car a)))
- (setq LO (cdr (assoc 8 b)))
- (setq d (getvar "CLAYER"))
- (if (= LO d)
- (prompt "\nCannot turn off Current Layer, Change to New Layer...")
- (command "layer" "OF" LO "")
- ))
- ;EOF LF
- ; THIS BEGINS LAON.LSP
- (DEFUN C:LO()
- (COMMAND"LAYER""ON" LO ""))
- ;EOF LO