home *** CD-ROM | disk | FTP | other *** search
- (defun hd27 ()
- (setq i (open "data.tat" "r"))
- (read-line i)
- (setq aaa (read (read-line i)))
- (setq p21 (read (read-line i)))
- (setq pg (read (read-line i)))
- (close i)
- (setq pm (car aaa) p (cadr aaa) p1 (nth 2 aaa) ppp (nth 3 aaa))
- (setq n11 (nth 4 aaa) n10 (nth 5 aaa))
- ;
- ;
- (setq h0 nil h1 nil h2 nil h3 nil)
- (setq p2 (polar p1 0 48) p3 (polar p 0 48))
- (command "line" p1 p2 p3 p "c")
- (setq n1 n10 c1 13 c2 1 c3 1 pt nil n n1 n15 0)
- (setq pt1 nil)
- (setq ppp (reverse ppp))
- (setq j (open "\\house1\\tst\\hd12.tat" "a"))
- (setq p3 (list (car p3) (- (cadr p3) c1)))
- (setq p (list (car p) (- (cadr p) c1)))
- ;
- (setq n11 (length p21))
- (setq n13 0)
- (setq n12 0)
- (setq p22 nil)
- (while (< n12 (- n11 1))
- (cond ((= p22 nil) (setq pp (car (nth n12 p21)))))
- (setq p22 (nth n12 p21))
- (if (/= p22 nil) (progn
- (setq pp0 (nth n13 ppp))
- (setq n14 0)
- (while (< n14 (length p22))
- ;
- (setq p25 (nth n14 p22))
- (setq pp1 (car pp0))
- (setq pp2 (car (cadr pp0)))
- (setq pp3 (list (car pp1) (- (cadr pp1) (* (- p25 pp) 5))))
- (setq pp4 (list (+ pp2 (* c1 (- n12 n15)))
- (- (cadr pp1) (* (- p25 pp) 5))))
- (setq p24 (list (car pp4) (cadr p3)))
- (setq p24 (list p25 pp3 pp4 p24))
- (setq n14 (1+ n14))
- (print p24 j)))
- (progn (print nil j) (setq n13 (1+ n13)) (setq n15 (1+ n12))))
- (setq n12 (1+ n12))
- )
- (print "end" j)
- (close j)
- ;
- (setq k (open "\\house1\\tst\\hd8.tat" "a") n2 0)
- (while (> n1 0)
- (setq n2 (1+ n2))
- (if (or (= pm "R") (= pm "r")) (progn
- (setq p3 (list (+ (car p3) c1) (cadr p3)))
- (command "pline" (nth (- n1 1) pg) "W" 0.3 0.3 P3 "")
- (setq p23 p3)
- ) (progn
- (setq p (list (- (car p) c1) (cadr p)))
- (command "pline" (nth (- n1 1) pg) "W" 0.3 0.3 P "")
- (setq p23 p)
- ))
- (setq p2 (list (car p23) (- (cadr p23) 5)))
- (setq pw1 (list (car p2) (- (cadr p2) 5)))
- (setq pw2 (list (car p2) (- (cadr p2) 12)))
- (setq pw3 (list (car p2) (- (cadr p2) 16)))
- (command "circle" p2 5)
- (command "pline" pw1 "w" 0 0 pw2 "w" 1.5 0 pw3 "")
- (setq h0 nil h1 nil h2 nil h3 nil)
- (menucmd "s=hd126")
- (setq a1 (getstring 1
- (strcat "\n╩Σ╚δ░▓╫░╡Ñ╬╗║═╡┌< " (itoa n2) " >╕∙╡τ└┬╡─▒α║┼:")))
- (menucmd "s=hd127")
- (setq a2 (getstring 1 "\n╩Σ╚δ╡τ└┬╨═║┼╣µ╕±:"))
- (menucmd "s=screen")
- (setq a3 (getstring 1 "\n╩Σ╚δ╡τ└┬╞≡╡π▒α║┼:"))
- (setq a4 (getstring 1 "\n╩Σ╚δ╡τ└┐╓╒╡π▒α║┼:"))
- (menucmd "s=hd36")
- (setq a5 (getstring 1 "\n╩Σ╚δ╡τ└┐│ñ╢╚:"))
- (setq pt (list a1 a2 a3 a4 a5))
- (print pt k)
- (command "text" "m" p2 3 0 a1)
- (setq n1 (- n1 1) c3 (1+ c3))
- )
- (close k)
- (menucmd "s=hd128")
- (setq b (getstring "\n╨Φ╥¬╔·│╔╡τ└┐▒φ┬≡?<Y/N>: "))
- (if (or (= b "Y") (= b "y")) (progn
- (setq l (open "\\house1\\tst\\hd8.tat" "r"))
- (hh)
- (close l)))
- )
- (defun hh ()
- (menucmd "s=screen")
- (setq p (getpoint "\n╩Σ╚δ╡τ└┐▒φ╡─▓σ╚δ╡π:"))
- (setq e1 0 p1 p pt 0 p (polar p (/ (* pi 3) 2) 18))
- (command "insert" "jxx28" p1 1 1 0)
- (read-line l)
- (setq pt (read-line l))
- (while (/= pt nil)
- (setq pt (read pt))
- (setq e1 (1+ e1))
- (setq n 0 a1 0)
- (setq a1 (nth 0 pt))
- (if (/= a1 nil) (progn
- (setq a2 (nth 1 pt) a3 (nth 2 pt) a4 (nth 3 pt) a5 (nth 4 pt))
- (command "insert" "jxx29" p 1 1 0 a5 a4 a3 a2 a1 e1)
- (setq p (polar p (/ (* pi 3) 2) 8) n (+ n 5))
- ))
- (setq pt (read-line l))
- )
- (setq p2 (polar p 0 200) p3 (list (car p2) (cadr p1)))
- (command "pline" p "w" 0.3 0.3 p1 p3 p2 "c")
- )
- (hd27)