home *** CD-ROM | disk | FTP | other *** search
- (VMON)
-
- (setq fh78 0 fh65 0 fh72 0 fh85 0 fh70 370)
- (setq bl (getvar "USERR1") blx (/ bl 100.0))
- (setq d0 (* bl 10) d1 (* bl 15) d2 (* bl 43) d3 (* bl 47))
- (setq d4 (* bl 15) d5 (* bl 25) d6 (* bl 35) d7 (* bl 51) d8 (* bl 37))
- (setvar "ltscale" bl)
- (setvar "DIMASZ" 0)
- (setvar "DIMCEN" (* bl 2))
- (setvar "DIMEXO" 0)
- (setvar "DIMDLI" (* bl 10))
- (setvar "DIMEXE" (* bl 2))
- (setvar "DIMTXT" (* bl 3))
- (setvar "DIMDLE" (* bl 2))
- (setvar "DIMTIH" 0)
- (setvar "DIMTOH" 0)
- (setvar "DIMTAD" 1)
- (setvar "DIMTIX" 1)
- (setvar "DIMSOXD" 0)
- (setvar "DIMTSZ" (* bl 0.8))
-
- (defun C:TK (/ oer lw t1 t2 t3 t4 t5 t6 b1 b2 p1 a cd ths elv)
- (setvar "CMDECHO" 0)
- (setq ths (getvar "thickness"))
- (setq elv (getvar "elevation"))
- (setq oer *error* *error* tkerr)
- (setq t1 1189.0 t2 841.0 t3 594.0 t4 419.0 t5 297.0 t6 209.0)
- (setq lw 0.5 b1 25.0 b2 10.0)
- (setq a (getstring "\n╩Σ╚δ═╝╓╜║┼ <A2>:"))
- (if (eq a "") (setq a "A2"))
- (blch)
- (setq t1 (* t1 bl) t2 (* t2 bl) t3 (* t3 bl) t4 (* t4 bl) t5 (* t5 bl) t6 (* t6 bl))
- (if (and (= (substr a 3 1) "+") (= (strlen a) 3)) (setq cd nil) (setq cd t))
- (setq a (atoi (substr a 2 1)))
- (if cd (progn
- (cond ((= a 0) (setq p1 (list t1 t2)))
- ((= a 1) (setq p1 (list t2 t3)))
- ((= a 2) (setq p1 (list t3 t4)))
- ((= a 3) (setq p1 (list t4 t5) b2 5.0))
- ((= a 4) (setq p1 (list t6 t5) b2 5.0))
- )
- )
- (progn
- (cond ((= a 1) (setq p1 (list t1 t3)))
- ((= a 2) (setq p1 (list t2 t4)))
- ((= a 3) (setq p1 (list t3 t5) b2 5.0))
- ((= a 4) (setq p1 (list t5 t5) b2 5.0))
- )
- )
- )
- (command "regen")
- (setvar "elevation" 0)
- (setvar "thickness" 0)
- (drawline)
- (setvar "elevation" elv)
- (setvar "thickness" ths)
- (setvar "cmdecho" 1)
- (setq *error* oer)
- (princ)
- )
-
- (defun blch (/ x)
- (princ "\n╩Σ╚δ═╝╓╜▒╚└² 1: <")
- (princ (fix bl))
- (setq x (getreal "> "))
- (if x (setq bl x blx (/ bl 100)))
- (setq d0 (* bl 10) d1 (* bl 15) d2 (* bl 43) d3 (* bl 47))
- (setq d4 (* bl 15) d5 (* bl 25) d6 (* bl 35) d7 (* bl 51) d8 (* bl 37))
- (setvar "USERR1" bl)
- (setvar "ltscale" bl)
- (setvar "DIMASZ" 0)
- (setvar "DIMCEN" (* bl 2))
- (setvar "DIMEXO" 0)
- (setvar "DIMDLI" (* bl 10))
- (setvar "DIMEXE" (* bl 2))
- (setvar "DIMTXT" (* bl 3))
- (setvar "DIMDLE" (* bl 2))
- (setvar "DIMTIH" 0)
- (setvar "DIMTOH" 0)
- (setvar "DIMTAD" 1)
- (setvar "DIMTIX" 1)
- (setvar "DIMSOXD" 0)
- (setvar "DIMTSZ" (* bl 0.8))
- (princ)
- )
-
- (defun drawline (/ ll lr ur ul ll0 lr0 ur0 ul0)
- (setq b1 (* b1 bl) b2 (* b2 bl) lw (* lw bl))
- (setq ll (list 0 0) lr (list (car p1) 0) ur p1 ul (list 0 (cadr p1)))
- (setq ll0 (list b1 b2) lr0 (list (- (car p1) b2) b2) ur0 (list (- (car p1) b2) (- (cadr p1) b2)) ul0 (list b1 (- (cadr p1) b2)))
- (command "limits" ll ur)
- (command "zoom" "a")
- (command "pline" ll "w" "0" "" lr ur ul "c")
- (command "pline" ll0 "w" lw "" lr0 ur0 ul0 "c")
- (command "layer" "m" "tk" "")
- (command "insert" "acad00" lr0 blx "" "0")
- (command "insert" "acad01" ul0 blx "" "0")
- (command "layer" "s" "0" "")
- )
-
- (defun ld(p1 p2 tp / oer)
- (if (/= (+ fh78 fh65 fh72 fh85 fh70) 370) (tst))
- (setvar "cmdecho" 0)
- (setq oer *error* *error* tkerr)
- (cond ((= tp 1) (if (null ldd1) (progn (ld2) (ld3) (gc) (setq ldd1 t ldd2 nil ldd3 nil))))
- ((= tp 2) (if (null ldd2) (progn (ld1) (ld3) (gc) (setq ldd2 t ldd1 nil ldd3 nil))))
- ((= tp 3) (if (null ldd3) (progn (ld1) (ld2) (gc) (setq ldd3 t ldd1 nil ldd2 nil))))
- )
- (if (null p1) (progn (terpri) (prompt "╒²╘┌╫░╚δ│╠╨≥...╟δ╔╘║≥") (load (strcat "lisp\\" p2)) (princ)) (princ))
- (setvar "cmdecho" 1)
- (setq *error* oer)
- (princ)
- )
-
- (defun ld1() (setq c:othoax nil c:autoax nil othoax0 nil axerr nil a_f nil kjs nil ddd nil eee nil)
- (setq combin nil chkerr nil dtr nil drw nil dr nil drwdim nil)
- (setq drdim nil drwaxis nil draxis nil c:blip nil c:renum nil c:insnum nil c:grp nil)
- (setq c:insaxis nil numerr nil wallerr nil chka nil inwin nil chkmc nil)
- (setq c:pw nil c:iswin nil c:erwin nil c:chh nil c:erwin nil findent nil newst nil newnd nil spep nil entfind nil erpoly nil chherr nil erwinerr nil pwlerr nil iswinerr nil fixp nil arcfind nil)
- (setq dv nil dv0 nil dim nil dimin nil cln nil geta nil getb nil sta nil)
- (setq c:dimwall nil c:wall nil c:partywall nil c:mirr nil c:erwall nil)
- (setq c:arcwall nil awerr nil achkmc nil dwaerr nil c:dwall nil)
- (setq c:twall nil toperr nil c:ltopl nil ltoplsub nil atoplsub nil)
- (setq c:plexpl nil experr nil c:inswin nil inwerr nil)
- (setq inswin0 nil inswin1 nil inchkmc nil c:erawin nil erwerr nil)
- (setq c:dirt nil c:fix nil c:calc nil c:mcb nil werr nil c:twin nil twerr nil c:txh nil txherr nil)
- (setq c:lt nil c:lt0 nil c:lt1 nil lterr nil lt1 nil lt2 nil lt3 nil lt4 nil)
- (setq sub11 nil sub22 nil c:ter nil ter1 nil ter2 nil ter3 nil ter4 nil)
- (setq sub1 nil sub2 nil c:tj nil tjerr nil tj1 nil tj2 nil tj3 nil tj4 nil)
- )
-
- (defun ld2() (setq c:eelv nil c:selv nil c:welv nil c:nelv nil)
- (setq eelerr nil selerr nil welerr nil nelerr nil)
- (setq c:exw nil c:insw nil exwerr nil chkw nil defbox nil drawbox nil)
- (setq c:nuer nil c:enuer nil nuerr nil dtr nil leierr nil)
- (setq c:tje nil c:tjs nil c:yug nil c:leis nil c:leie nil)
- (setq tjerr nil tje1 nil tje2 nil tje3 nil tje4 nil)
- (setq c:emny nil c:mny nil mnyerr nil c:stair nil staerr nil)
- (setq c:pao nil drl nil ban nil st nil jmw nil mmw nil pinput nil)
- (setq lij nil licl nil licr nil lij2 nil lird nil liru nil)
- (setq range nil sli nil smw nil aj nil mw1 nil paoerr nil)
- (setq kx nil st nil lilr nil lidu nil asctof nil spl nil ph nil)
- )
-
- (defun ld3() (setq c:cham nil chf nil chamerr nil c:fllet nil chf0 nil flleterr nil)
- (setq c:corn nil chf0 nil cornerr nil c:proj nil projerr nil)
- (setq c:3dst nil c:chkw nil chkwerr nil defbox nil drawbox nil)
- (setq c:single nil c:dubble nil ltof nil ltof0 nil ltof1 nil)
- (setq c:two nil c:rot nil twoerr nil c:extf nil c:trmf nil c:roof nil)
- (setq c:opm nil c:ftol nil opmerr nil ftolerr nil)
- )
-
- (defun inblk(bx / bn oer loop)
- (setvar "cmdecho" 0)
- (setq oer *error* *error* tkerr)
- (setq loop t)
- (while loop
- (setq bn (getstring "\n╩Σ╚δ┐Θ├√:"))
- (if (or (findfile (strcat bn ".dwg")) (tblsearch "BLOCK" bn)) (setq loop nil) (princ "*╬┤╒╥╡╜*"))
- )
- (command "insert" bn "x" bx "y" bx)
- (princ "\n▓σ╚δ╡π:")
- (command pause)
- (princ "\n╨²╫¬╜╟:")
- (command pause)
- (setvar "cmdecho" 1)
- (setq *error* oer)
- (princ)
- )
-
-
- (defun tkerr(s)
- (if (/= s "Function cancelled")
- (princ (strcat "Error:" s))
- )
- (command "layer" "s" "0" "")
- (setvar "cmdecho" 1)
- (setvar "highlight" 1)
- (setvar "blipmode" 1)
- (setq *error* oer)
- (princ)
- )
-
- (defun C:CL (/ i item)
- (setq i 0)
- (while (not (equal (setq item (nth i atomlist)) 'C:CL))
- (if (= (type (eval item)) 'FILE)
- (close (eval item)))
- (setq i (1+ i))
- )
- (setq atomlist (member 'C:CL atomlist))
- 'DONE
- )