home *** CD-ROM | disk | FTP | other *** search
- ; ********Patrick J. McKee, author********
- ; ****Copyright 1992, Power Key tm****
- ;
- ;PATRICK J. McKEE
- ;Rt 1, Box 5
- ;Combs, Arkansas 72721
- ;
- (VMON)
- (defun dtr (angg)
- (* pi (/ a1 180.0)))
- (defun sub (var1 var2 /)
- (setq t2 (assoc var1 te)
- t3 (cons var1 t1)
- te (subst t3 t2 te)))
- (defun pre ()
- (setq oce(getvar "cmdecho"))
- (setq oom (getvar "orthomode"))
- (setq clyr (getvar "clayer"))
- (setvar "regenmode" 1)
- (setvar "cmdecho" 0))
- (defun post ()
- (setvar "orthomode" oom)
- (setvar "cmdecho" oce)
- (command "layer" "s" clyr "")
- (terpri))
- (defun err (s)
- (if (/= s "Function cancelled")(princ (strcat "\nError: " s)))
- (setq *error* oer)(post)(princ))
- (defun err2 (s)
- (if (/= s "Function cancelled")(princ (strcat "\nError: " s)))
- (setq *error* oer)(princ))
- (defun rf ()
- (setvar "LASTPOINT" (getpoint "Reference point: "))
- (getpoint "\nEnter relative/polar coordinates (with @): "))
- (defun ref ()
- (setvar "LASTPOINT" (getpoint "Reference point: "))
- (setq ent1(entsel "\nEnter relative/polar coordinates (with @): ")))
- (defun wrf ()
- (setvar "LASTPOINT" (getpoint "Reference point: "))
- (setq pt1(getpoint "\nEnter relative/polar coordinates (with @): ")))
- (defun c:lc()
- (setq ss (ssget))
- (initget (+ 1 2 4))
- (setq lyr(cdr(assoc 8(entget(car(entsel "Pick item for new layer: "))))))
- (setq counter 0)
- (prompt "Changing layer...")
- (while
- (setq e(ssname ss counter))
- (setq etype(cdr (assoc 0 (entget e))))
- (progn
- (setq ent(entget e))
- (setq old(assoc 8 ent))
- (setq new(cons (car old) lyr))
- (setq ne(subst new old ent))
- (entmod ne))
- (setq counter(+ counter 1))
- (princ)))
- (defun c:s (/ lyr)
- (setq lyr(cdr(assoc 8(entget(car(entsel "Pick item for new layer: "))))))
- (command "layer" "s" lyr ""))
- (defun ASVE ( / s)
- (setq s(getvar"tdusrtimer"))
- (if(> s 0.0050)(command"time""r"""))
- (if(> s 0.0050)(command"save"""))
- (graphscr))
- (load"Key")