home *** CD-ROM | disk | FTP | other *** search
- (SETQ NOL 0)
- (DEFUN CHECK (FUNCNAME FUNCNAME1)
- (CLEAN)
- (SETQ FUNCNAME1 (STRCAT "\\HOUSEM\\LSP\\" FUNCNAME1))
- (LOAD FUNCNAME1)
- )
- (DEFUN CHECK2 (FUNCNAME FUNCNAME1)
- (CLEAN)
- (SETQ FUNCNAME1 (STRCAT "\\HOUSEM\\LSP2\\" FUNCNAME1))
- (LOAD FUNCNAME1)
- )
- (defun scale1 ()
- (SETVAR "CMDECHO" 0)
- (MENUCMD "S=SC1")
- (initget (+ 2 4))
- (setq sc (getint "\n╟δ╩Σ╚δ▒╚└²╤í╘±: "))
- (if (null sc)(setq sc 1))
- (SETQ SCA SC)
- (setq s (/ 0.05 sc))
- (MENUCMD "S=SCREEN")
- )
- (defun scale2 ()
- (SETVAR "CMDECHO" 0)
- (MENUCMD "S=SC1")
- (initget (+ 2 4))
- (setq sc (getREAL "\n╟δ╩Σ╚δ▒╚└²╤í╘±: "))
- (if (null sc)(setq sc 1))
- (setq s (/ 1 sc))
- (MENUCMD "S=SCREEN")
- )
- (defun attdef1 (str1 str2 fpt)
- (SETVAR "CMDECHO" 0)
- (command "attdef" "i" "" str1 "" str2 fpt 0.001 0)
- )
- (defun attdef2 ()
- (SETVAR "CMDECHO" 0)
- (attdef1 "dl1" dl1 fpt)
- (attdef1 "dr1" dr1 fpt)
- (attdef1 "l1" l1 fpt)
- (attdef1 "schl1" schl fpt)
- (attdef1 "xchl1" xchl fpt)
- (attdef1 "angl1" angl fpt)
- (attdef1 "dgl1" dgl1 fpt)
- (attdef1 "angr1" angr fpt)
- (attdef1 "dgr1" dgr1 fpt)
- )
- (defun dbsa1 (xb sl)
- (SETVAR "CMDECHO" 0)
- (setq tg 0)
- (if (/= angl 0)(setq tg (/ (cos (* (/ 3.14 180) angl)) (sin (* (/ 3.14 180) angl)))))
- (if (= sl 0)(setq atl (* tg dgl))(setq atl (- 0 (* tg dgl))))
- (if (/= angr 0)(setq tg (/ (cos (* (/ 3.14 180) angr)) (sin (* (/ 3.14 180) angr)))))
- (if (= sl 0)(setq atr (* tg dgr))(setq atr (- 0 (* tg dgr))))
- (setq topl (list (+ xb dgl) (+ yb dl)))
- (setq botl (list (+ xb dgl) (- yb dl)))
- (setq tof (list xb (- (+ yb dl) atl)))
- (setq bof (list xb (+ (- yb dl) atl)))
- (setq topr (list (- (+ xb l) dgr) (+ yb dr)))
- (setq botr (list (- (+ xb l) dgr) (- yb dr)))
- (setq toe (list (+ xb l) (- (+ yb dr) atr)))
- (setq boe (list (+ xb l) (+ (- yb dr) atr)))
- (if (or (= ed "l")(= ed "L"))
- (progn
- (setq topr (list (- xb dgr) (+ yb dr)))
- (setq botr (list (- xb dgr) (- yb dr)))
- (setq toe (list xb (- (+ yb dr) atr)))
- (setq boe (list xb (+ (- yb dr) atr)))
- (setq topl (list (+ (- xb l) dgl) (+ yb dl)))
- (setq botl (list (+ (- xb l) dgl) (- yb dl)))
- (setq tof (list (- xb l) (- (+ yb dl) atl)))
- (setq bof (list (- xb l) (+ (- yb dl) atl)))
- (command "layer" "n" "f2" "s" "f2" "color" "m" "" "")
- )
- )
- (command "line" tof bof botl topl tof topl topr toe boe botr topr botr botl "")
- )
- (defun C:HOTAL ()
- (command "layer" "n" "f2" "s" "f2" "color" "m" "" "")
- (if (/= dir1 "H")(setq m xb xb xf))
- )
- (defun point1 ()
- (initget 1)
- (setq pt1 (getpoint "\n▒Ω╫ó╡π: "))
- )
- (DEFUN FN ()
- (if (or (= ed "l")(= ed "L"))
- (SETQ FPT (LIST (- XB L) YB) NO (1+ NO))
- (SETQ FPT (LIST XB YB) NO (+ NO 1))
- )
- (COND ((= NO 0) (SETQ XF XB)))
- )
- (DEFUN NK1 ()
- (SETQ NK (+ NK 1))
- )
- (DEFUN NZ1 ()
- (SETQ NZL (+ NZL 1))
- )
- (DEFUN XB1 ()
- (IF (OR (= ED "L")(= ed "l"))
- (SETQ XB (- XB L))
- (SETQ XB (+ XB L))
- )
- )
- (DEFUN CL ()
- (SETQ XF (CAR B1))
- )
- (defun CLEAN ()
- (setq atomlist (member 'C:CLEAN atomlist))
- )