11
28
17
初露锋芒
(defun saveVars() (setq mychoice(get_tile "size")))(action_tile "sp" "(start_list "rep" 3) (cond (= mychoise "str_s2") (mapcar 'add_list mylist8)) (cond (= mychoise "str_s3") (mapcar 'add_list mylist70)) (cond (= mychoise "str_m2") (mapcar 'add_list mylist72)) (end_list)") (action_tile "tp" "(start_list "rep" 3) (cond (= mychoise "str_s2") (mapcar 'add_list mylist9)) (cond (= mychoise "str_s3") (mapcar 'add_list mylist71)) (cond (= mychoise "str_m2") (mapcar 'add_list mylist73)) (end_list)")
使用道具 举报
91
428
326
后起之秀
10
38
(cond ( (= mychoise "str_s2") (mapcar 'add_list mylist8) ) ( (= mychoise "str_s3") (mapcar 'add_list mylist70) ) ( (= mychoise "str_m2") (mapcar 'add_list mylist72) ) ) (end_list)"
22
185
(defun saveVars() (setq mypan(get_tile "panel")) ;;(setq mychoice(get_tile "sizecab")) (setq size1(atoi(get_tile "str_s2"))) (setq size2(atoi(get_tile "str_m2"))) (setq size3(atoi(get_tile "str_l2"))) (setq size4(atoi(get_tile "str_s3"))) (setq size5(atoi(get_tile "str_m3"))) (setq size6(atoi(get_tile "str_l3"))) (setq mypump1(atoi(get_tile "sp"))) (setq mypump2(atoi(get_tile "tp"))) (setq myspider1(atoi(get_tile "phs"))) (setq myspider2(atoi(get_tile "pud"))) (setq myspider2(atoi(get_tile "i_spid"))) ;;;--- Get the selected item from the first list (setq sStr1(get_tile "mylist1")) (setq sStr20(get_tile "mylist20")) (setq sStr21(get_tile "mylist21")) (setq sStr13(get_tile "rep")) ) ;;;--- Make sure something was selected... ;;(if(= sStr1 "")> ;;(setq myItem1 "Nothing") ;;(setq myItem1 (nth (atoi sStr1) myList1)) ; ;;(cond ((= choice2 1)(princ "Tank")));;(cond ((= choice1 1)(setq myList1(list "" "Height 600 mm" "Height 700 mm" "Height 800 mm")))) (defun FillPopupList1 ( key1 lst1 ) (start_list key1) (foreach item lst1 (add_list item)) (end_list) ) (defun FillPopupList2 ( key2 lst2 ) (start_list key2) (foreach item1 lst2 (add_list item1)) (end_list) )(setq a 0)(setq b 0)(setq c 0)(setq d 0)(setq e 0)(setq f 0)(setq g 0)(defun C:DUE_DIM()(setq myList2(list "" "---ABB---" "75 kW" "90 kW" "110 kW" "132 kW" "160 kW" "200 kW" "--Siemens--"))(setq myList3(list "" "---ABB---" "250 kW" "315 kW" "355 kW" "400 kW" "500 kW" "--Siemens--"))(setq myList70(list "1" "SP71" "SP125" "Sp180")) (setq myList71(list "2" "SP180" "SP250" "Sp500"))(setq myList72(list "3" "SP180/180" "SP250/125" "SP250/250" "SP355/250" "SP355/355" "SP500/250" "SP500/355"))(setq myList73(list "4" "SP180" "SP250" "Sp500" "Sp750")) (setq myList74(list "5" "SP180/180" "SP250/125" "SP250/250" "SP355/250" "SP355/355" "SP500/250" "SP500/355" "SP500/500")) (setq myList8(list "" "-VATTENKYLARE-" "B025T040" "B025T080" "B120T060" "B120T080" "B120T120" "-TUBKYLARE-" "000GK400" "000GK600" "000PK600" "000PK600" "-LUFTKYLARE-" "HDCA-100-4" "HDCA-145-4" "HDCA-205-4" "HDCA-275-4" "HDCA-360-6" "HDCA-490-6" "HDCA-700-6" "HDCA-710-6" "HDCA-1250-8"))(setq myList9(list "" "-VATTENKYLARE-" "B025T040" "B025T080" "B120T060" "B120T080" "B120T120" "-TUBKYLARE-" "000GK400" "000GK600" "000PK600" "000PK600" "-LUFTKYLARE-" "HDCA-100-4" "HDCA-145-4" "HDCA-205-4" "HDCA-275-4" "HDCA-360-6" "HDCA-490-6" "HDCA-700-6" "HDCA-710-6" "HDCA-1250-8"))(setq myList10(list "" "-VATTENKYLARE-" "B025T040" "B025T080" "B120T060" "B120T080" "B120T120" "-TUBKYLARE-" "000GK400" "000GK600" "000PK600" "000PK600" "-LUFTKYLARE-" "HDCA-100-4" "HDCA-145-4" "HDCA-205-4" "HDCA-275-4" "HDCA-360-6" "HDCA-490-6" "HDCA-700-6" "HDCA-710-6" "HDCA-1250-8"))(setq myList11(list "" "-VATTENKYLARE-" "B025T040" "B025T080" "B120T060" "B120T080" "B120T120" "-TUBKYLARE-" "000GK400" "000GK600" "000PK600" "000PK600" "-LUFTKYLARE-" "HDCA-100-4" "HDCA-145-4" "HDCA-205-4" "HDCA-275-4" "HDCA-360-6" "HDCA-490-6" "HDCA-700-6" "HDCA-710-6" "HDCA-1250-8"))(setq myList12(list "" "-VATTENKYLARE-" "B025T040" "B025T080" "B120T060" "B120T080" "B120T120" "-TUBKYLARE-" "000GK400" "000GK600" "000PK600" "000PK600" "-LUFTKYLARE-" "HDCA-100-4" "HDCA-145-4" "HDCA-205-4" "HDCA-275-4" "HDCA-360-6" "HDCA-490-6" "HDCA-700-6" "HDCA-710-6" "HDCA-1250-8"))(setq myList13(list "" "-VATTENKYLARE-" "B025T040" "B025T080" "B120T060" "B120T080" "B120T120" "-TUBKYLARE-" "000GK400" "000GK600" "000PK600" "000PK600" "-LUFTKYLARE-" "HDCA-100-4" "HDCA-145-4" "HDCA-205-4" "HDCA-275-4" "HDCA-360-6" "HDCA-490-6" "HDCA-700-6" "HDCA-710-6" "HDCA-1250-8")) (setq rep(list "Ingen" "Flushing via backventil" "Flushing extern pump" "Flushing+Broms1" "Flushing+Broms1+Broms2" "Broms1" "Broms1+Broms2")) ;;;--- Load the dcl file (setq dcl_id (load_dialog "dimritn6.dcl")) ;;;--- Load the dialog definition if it is not already loaded (if (not (new_dialog "dimdialog6" dcl_id)) (progn (alert "The SAMPLE4.DCL file could not be loaded!") (exit) ) ) ;;;--- If an action event occurs, do this function (action_tile "accept" "(setq ddiag 2)(saveVars)(done_dialog)") (action_tile "cancel" "(setq ddiag 1)(done_dialog)") (start_list "mylist7" 3) (mapcar 'add_list myList8) (end_list) (start_list "rep" 3) (mapcar 'add_list rep) (end_list) ;;(action_tile "str_s2sp" "(FillPopupList1 "mylist20" mylist1)(FillPopupList2 "mylist21" mylist70)") ;;(action_tile "str_m2sp" "(FillPopupList1 "mylist20" mylist2)(FillPopupList2 "mylist21" mylist71)") ;;(action_tile "str_m2tp" "(FillPopupList1 "mylist20" mylist2)(FillPopupList2 "mylist21" mylist72)") ;;(action_tile "str_l2sp" "(FillPopupList1 "mylist20" mylist3)(FillPopupList2 "mylist21" mylist73)") ;;(action_tile "str_l2tp" "(FillPopupList1 "mylist20" mylist3)(FillPopupList2 "mylist21" mylist74)") ;;(action_tile "str_s3sp" "(FillPopupList1 "mylist20" mylist1)(FillPopupList2 "mylist21" mylist70)") ;;(action_tile "str_m3sp" "(FillPopupList1 "mylist20" mylist2)(FillPopupList2 "mylist21" mylist71)") ;;(action_tile "str_m3tp" "(FillPopupList1 "mylist20" mylist2)(FillPopupList2 "mylist21" mylist72)") ;;(action_tile "str_l3sp" "(FillPopupList1 "mylist20" mylist3)(FillPopupList2 "mylist21" mylist73)") ;;(action_tile "str_l3" "(FillPopupList1 "mylist20" mylist3)(FillPopupList2 "mylist21" mylist74)")(action_tile "sp" "(start_list "mylist20" 3)