- (defun act_pp(val)
- (start_list "dd")
- (cond
- ((= val "0") (mapcar 'add_list list2))
- ((= val "1") (mapcar 'add_list list3))
- )
- (end_list)
- )
- (defun c:test( / dcl_id list1 list2 list3)
- (setq list1 '("1" "2"))
- (setq list2 '("0.1" "0.2" "0.3"))
- (setq list3 '("0.1" "0.2"))
- (setq dcl_id (load_dialog "tmp"))
- (new_dialog "bzfl593" dcl_id)
- (start_list "pp") (mapcar 'add_list list1) (end_list)
- (start_list "dd") (mapcar 'add_list list2) (end_list)
- (action_tile "pp" "(act_pp $value)")
- (start_dialog)
- (unload_dialog dcl_id)
- (princ)
- )
|