5
30
25
初来乍到
(setq 8plt 97.125)(setq 9plt 109.125)(setq 10plt 121.125)(setq flsys 14.75)(setq cj 7.25)(setq STYLE '("Cottage" "Drive Under" "Elite Ranch" "Estate" "J-Drive" "Traditional Front Load" "Traditional Rear Load" "Villa"))(setq BED '("1" "2" "3" "4" "5" "6" "7" "8"))(setq BATH '("1" "1.5" "2" "2.5" "3" "3.5" "4" "4.5" "5" "5.5" "6" "6.5" "7" "7.5"))(setq pldt "C:\\Users\\toddreaves\\developer\\plandata.txt")(defun c:SETUP1 () ;define the function (setq dcl_id (load_dialog "setup1.dcl")) ;load the DCL file (if (not (new_dialog "Main" dcl_id)) ;load the dialogue box (exit) ;if not loaded exit )(start_list "sel1" 3)(mapcar 'add_list STYLE) (end_list)(start_list "sel2" 3)(mapcar 'add_list BED) (end_list)(start_list "sel3" 3)(mapcar 'add_list BATH) (end_list)(setq found (findfile pldt)) (if (= found nil)(progn(setq count 0))) (if (= found pldt)(progn(setq count 2)))(while (= count 2) (prompt "\nLoading Plan Data") (setq fo (open pldt "r")) (setq pl# (read-line fo)) (setq pln (read-line fo)) (setq dt (read-line fo)) (setq ela (read-line fo)) (setq elb (read-line fo)) (setq elc (read-line fo)) (setq eld (read-line fo)) (setq ele (read-line fo)) (setq elf (read-line fo)) (setq elg (read-line fo)) (setq elh (read-line fo)) (setq elj (read-line fo)) (setq styl (read-line fo)) (setq bd (read-line fo)) (setq bh (read-line fo)) (setq mstr (read-line fo)) (setq isl (read-line fo)) (setq sty (read-line fo)) (setq mplt (read-line fo)) (setq bsm (read-line fo)) (setq bplt (read-line fo))(close fo) (set_tile "eb1" pl#) (set_tile "eb2" pln) (set_tile "eb3" dt) (set_tile "tog1" ela) (set_tile "tog2" elb) (set_tile "tog3" elc) (set_tile "tog4" eld) (set_tile "tog5" ele) (set_tile "tog6" elf) (set_tile "tog7" elg) (set_tile "tog8" elh) (set_tile "tog9" elj) (set_tile "sel1" styl) (set_tile "sel2" bd) (set_tile "sel3" bh) (cond ((= mstr "1") (set_tile "rb10" "1"))((= mstr "2") (set_tile "rb11" "1"))((= isl "1") (set_tile "rb12" "1"))((= isl "0") (set_tile "rb13" "1"))((= sty 1s) (set_tile "rb14" "1"))((= sty 1sa) (set_tile "rb15" "1"))((= sty 2s) (set_tile "rb16" "1"))((= sty 2sa) (set_tile "rb17" "1"))((= sty 3s) (set_tile "rb18" "1"))((= mplt 8plt) (set_tile "rb19" "1"))((= mplt 9plt) (set_tile "rb20" "1"))((= mplt 10plt) (set_tile "rb21" "1"))((= bsm "1") (set_tile "rb22" "1"))((= bsm "0") (set_tile "rb23" "1"))((= bplt nil) (mode_tile "rb24" 1)