home *** CD-ROM | disk | FTP | other *** search
- ;
- ; │╠╨≥╣ª─▄:╔Φ╓├▓╔┼»│⌡╩╝▒Σ┴┐.
- ;
- (defun heat0 ()
- (setvar "cmdecho" 0)
- (command "del" "heat*.tst"
- "layer" "s" "HVAC" "")
- (textscr)
- (setq f (open "heat.tat" "r"))
- (if (/= f nil) (progn
- (read-line f)
- (setq heat (read-line f))
- (if (= heat nil) (setq heat (list 1.0 500 30 450 160 "ON" "0"))
- (setq heat (read heat)))
- (close f))
- (setq heat (list 1.0 500 30 450 160 "ON" "0")))
- (setq sc (car heat) hhd (cadr heat) w (nth 2 heat)
- d (nth 3 heat) r (nth 4 heat) hd (nth 5 heat) xd (nth 6 heat))
- (setq sc1 (list "▒╚└²" sc))
- (setq hhd1 (list "▒Ω╫ó╕▀╢╚" hhd))
- (setq w1 (list "╧▀┐φ" w))
- (setq sys 1 sys1 (list "▓╔┼»╧╡═│╨╬╩╜<1:╡Ñ╣▄>,<2:╦½╣▄>" sys))
- (setq dhw 700 dhw1 (list "╔ó╚╚╞≈╓╨╨─╧▀╡╜╟╜├µ╛α└Θ" dhw))
- (setq d1 (list "╞╜├µ═╝╦½╣▄╧╡═│╣⌐╗╪╦«┴ó╣▄╝Σ╛α" d))
- (setq r1 (list "╞╜├µ═╝┴ó╣▄╣▄╛╢" r))
- (setq hd1 (list "╩╟╖±▒Ω╫ó" hd))
- (setq xd1 (list "╫∙▒Ω<0:╛°╢╘> <@:╧α╢╘>" xd))
- (princ (chr 10))
- (princ sc1)
- (princ (chr 10))
- (princ hhd1)
- (princ (chr 10))
- (princ w1)
- (princ (chr 10))
- (princ sys1)
- (princ (chr 10))
- (princ dhw1)
- (princ (chr 10))
- (princ d1)
- (princ (chr 10))
- (princ r1)
- (princ (chr 10))
- (princ hd1)
- (princ (chr 10))
- (princ xd1)
- (setq h (getstring "\n─π╥¬╨▐╕─┬≡<Y/N>: "))
- (cond ((= sc nil) (setq sc 1.0)))
- (cond ((= hhd nil) (setq hhd 500)))
- (cond ((= w nil) (setq w 30)))
- (cond ((= d nil) (setq d 450)))
- (cond ((= r nil) (setq r 160)))
- (cond ((= hd nil) (setq hd "ON")))
- (cond ((= xd nil) (setq xd "0")))
- (setq heat (list sc hhd w d r hd xd))
- (if (or (= h "y") (= h "Y")) (progn
- (setq sc (getreal (strcat "\n╟δ╩Σ╚δ▒╚└²╓╡< " (rtos sc 2 2) " >:")))
- (setq hhd (getint (strcat "\n▒Ω╫ó╕▀╢╚<" (itoa hhd) ">:")))
- (setq w (getint (strcat "\n╟δ╩Σ╚δ╧▀┐φ<" (itoa w) ">:")))
- (setq d (getint (strcat "\n╟δ╩Σ╚δ╞╜├µ═╝╦½╣▄╧╡═│╣⌐╗╪╦«┴ó╣▄╝Σ╛α<"
- (itoa d) ">:")))
- (setq r (getint (strcat "\n╟δ╩Σ╚δ╞╜├µ═╝┴ó╣▄╣▄╛╢<" (itoa r) ">:")))
- (setq hd (getstring (strcat "\n╟δ╩Σ╚δ╩╟╖±▒Ω╫ó<" hd ">:")))
- (setq xd (getstring (strcat "\n╟δ╩Σ╚δ╫∙▒Ω<0:╛°╢╘,@:╧α╢╘<" xd ">:")))
- (cond ((= sc nil) (setq sc (car heat))))
- (cond ((= hhd nil) (setq hhd (cadr heat))))
- (cond ((= w nil) (setq w (nth 2 heat))))
- (cond ((= d nil) (setq d (nth 3 heat))))
- (cond ((= r nil) (setq r (nth 4 heat))))
- (cond ((= hd "") (setq hd (nth 5 heat))))
- (cond ((= xd "") (setq xd (nth 6 heat))))
- ))
- (setq heat (list (* sc 1.0) hhd w d r hd xd))
- (setq f (open "heat.tat" "w"))
- (print heat f)
- (close f)
- (graphscr)
- )
-