- 积分
- 15341
- 明经币
- 个
- 注册时间
- 2002-2-4
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
发表于 2009-10-21 16:42:00
|
显示全部楼层
- (defun C:TWO ()
- (setvar "cmdecho" 0)
- (setq WEI1_LIST '("白熾燈" "熒光燈(單管)"
- "熒光燈(雙管)" "熒光燈(多管)"
- "高強氣體放電燈" "鹵鎢燈"
- )
- )
- (setq WEI2_LIST '("清潔" "一般" "污染"))
- (setq LI1_LIST '("0.6" "0.7" "0.8" "0.9" "1.0"
- "1.1" "1.25" "1.5" "1.75" "2.0"
- "2.25" "2.5" "3.0" "3.5" "4.0"
- "5.0"
- )
- LI2_LIST '("50,30,10" "50,30,30" "50,50,10"
- "50,50,30" "70,30,10" "70,30,30"
- "70,50,10" "70,50,30"
- )
- )
- (setq LI1_LIST1 '("0.5" "0.6" "0.7" "0.8" "0.9"
- "1.0" "1.1" "1.25" "1.5" "1.75"
- "2.0" "2.25" "2.5" "3.0" "3.5"
- "4.0" "5.0"
- )
- LI2_LIST1 '("30,10" "30,30" "50,10"
- "50,30" "50;50" "70,10"
- "70,30" "70,50" "70,70"
- "30,10,10" "30,30,10" "50,30,10"
- "50,30,30" "50,50,10" "50,50,30"
- "70,30,10" "70,30,30" "70,50,10"
- "70,50,30"
- )
- )
- (DCL_1ST)
- (prin1)
- )
- (defun DCL_1ST ()
- (setq DCL_ID (load_dialog "two.dcl"))
- (new_dialog "two" DCL_ID)
- (SHOW_LIST "wei1" WEI1_LIST)
- (SHOW_LIST "wei2" WEI2_LIST)
- (setq WEI1 "0"
- WEI2 "0"
- WHXS "0"
- LI1 "0"
- LI2 "0"
- )
- (SUB_WEI)
- (action_tile "wei1" "(setq wei1 $value)(sub_wei)")
- (action_tile "wei2" "(setq wei2 $value)(sub_wei)")
- (action_tile "whxs" "(setq whxs $value)(sub_wei)")
- (action_tile "li1" "(setq li1 $value)(sub_wei)")
- (action_tile "li2" "(setq li2 $value)(sub_wei)")
- (action_tile "accept" "(ok_1st)(done_dialog)")
- (start_dialog)
- )
- (defun OK_1ST ()
- (setq LYXS (get_tile "lyxs"))
- )
- (defun SHOW_LIST (KEY NEWLIST)
- (start_list KEY)
- (mapcar 'add_list NEWLIST)
- (end_list)
- )
- (defun SUB_WEI ()
- (if (= WEI1 "0")
- (progn
- (SHOW_LIST "li1" LI1_LIST)
- (SHOW_LIST "li2" LI2_LIST)
- )
- (progn
- (SHOW_LIST "li1" LI1_LIST1)
- (SHOW_LIST "li2" LI2_LIST1)
- )
- )
- (cond
- ((and (= LI1 "0") (= LI2 "0")) (set_tile "lyxs" "0.13"))
- ((and (= LI1 "0") (= LI2 "1")) (set_tile "lyxs" "0.14"))
- ((and (= LI1 "0") (= LI2 "2")) (set_tile "lyxs" "0.16"))
- ((and (= LI1 "0") (= LI2 "3")) (set_tile "lyxs" "0.17"))
- ((and (= LI1 "0") (= LI2 "4")) (set_tile "lyxs" "0.14"))
- ((and (= LI1 "0") (= LI2 "5")) (set_tile "lyxs" "0.15"))
- ((and (= LI1 "0") (= LI2 "6")) (set_tile "lyxs" "0.18"))
- ((and (= LI1 "0") (= LI2 "7")) (set_tile "lyxs" "0.19"))
- ((and (= LI1 "1") (= LI2 "0")) (set_tile "lyxs" "0.16"))
- ((and (= LI1 "1") (= LI2 "1")) (set_tile "lyxs" "0.17"))
- ((and (= LI1 "1") (= LI2 "2")) (set_tile "lyxs" "0.20"))
- ((and (= LI1 "1") (= LI2 "3")) (set_tile "lyxs" "0.20"))
- ((and (= LI1 "1") (= LI2 "4")) (set_tile "lyxs" "0.18"))
- ((and (= LI1 "1") (= LI2 "5")) (set_tile "lyxs" "0.19"))
- ((and (= LI1 "1") (= LI2 "6")) (set_tile "lyxs" "0.22"))
- ((and (= LI1 "1") (= LI2 "7")) (set_tile "lyxs" "0.23"))
- ((and (= LI1 "2") (= LI2 "0")) (set_tile "lyxs" "0.18"))
- ((and (= LI1 "2") (= LI2 "1")) (set_tile "lyxs" "0.19"))
- ((and (= LI1 "2") (= LI2 "2")) (set_tile "lyxs" "0.22"))
- ((and (= LI1 "2") (= LI2 "3")) (set_tile "lyxs" "0.22"))
- ((and (= LI1 "2") (= LI2 "4")) (set_tile "lyxs" "0.21"))
- ((and (= LI1 "2") (= LI2 "5")) (set_tile "lyxs" "0.22"))
- ((and (= LI1 "2") (= LI2 "6")) (set_tile "lyxs" "0.24"))
- ((and (= LI1 "2") (= LI2 "7")) (set_tile "lyxs" "0.25"))
- ((and (= LI1 "3") (= LI2 "0")) (set_tile "lyxs" "0.20"))
- ((and (= LI1 "3") (= LI2 "1")) (set_tile "lyxs" "0.21"))
- ((and (= LI1 "3") (= LI2 "2")) (set_tile "lyxs" "0.24"))
- ((and (= LI1 "3") (= LI2 "3")) (set_tile "lyxs" "0.24"))
- ((and (= LI1 "3") (= LI2 "4")) (set_tile "lyxs" "0.22"))
- ((and (= LI1 "3") (= LI2 "5")) (set_tile "lyxs" "0.23"))
- ((and (= LI1 "3") (= LI2 "6")) (set_tile "lyxs" "0.26"))
- ((and (= LI1 "3") (= LI2 "7")) (set_tile "lyxs" "0.28"))
- )
- (cond
- ((and (= WEI1 "0") (= WEI2 "0")) (set_tile "whxs" "0.75"))
- ((and (= WEI1 "0") (= WEI2 "1")) (set_tile "whxs" "0.70"))
- ((and (= WEI1 "0") (= WEI2 "2")) (set_tile "whxs" "0.65"))
- ((and (= WEI1 "1") (= WEI2 "0")) (set_tile "whxs" "0.75"))
- ((and (= WEI1 "1") (= WEI2 "1")) (set_tile "whxs" "0.70"))
- ((and (= WEI1 "1") (= WEI2 "2")) (set_tile "whxs" "0.65"))
- ((and (= WEI1 "2") (= WEI2 "0")) (set_tile "whxs" "0.75"))
- ((and (= WEI1 "2") (= WEI2 "1")) (set_tile "whxs" "0.70"))
- ((and (= WEI1 "2") (= WEI2 "2")) (set_tile "whxs" "0.65"))
- ((and (= WEI1 "3") (= WEI2 "0")) (set_tile "whxs" "0.75"))
- ((and (= WEI1 "3") (= WEI2 "1")) (set_tile "whxs" "0.70"))
- ((and (= WEI1 "3") (= WEI2 "2")) (set_tile "whxs" "0.65"))
- ((and (= WEI1 "4") (= WEI2 "0")) (set_tile "whxs" "0.75"))
- ((and (= WEI1 "4") (= WEI2 "1")) (set_tile "whxs" "0.70"))
- ((and (= WEI1 "4") (= WEI2 "2")) (set_tile "whxs" "0.65"))
- ((and (= WEI1 "5") (= WEI2 "0")) (set_tile "whxs" "0.85"))
- ((and (= WEI1 "5") (= WEI2 "1")) (set_tile "whxs" "0.75"))
- ((and (= WEI1 "5") (= WEI2 "2")) (set_tile "whxs" "0.70"))
- )
- )
|
|