语句顺序有误。下面是改过的。
- (defun c:HH ()
- (if (> (setq dcl_id (load_dialog (findfile "drawn.dcl"))) 0) (progn
- (if (new_dialog "drawn" dcl_id "") (progn
- (action_tile "jf" "(done_dialog 1)")
- (action_tile "jian" "(done_dialog 2)")
- (action_tile "cf" "(done_dialog 3)")
- (action_tile "chu" "(done_dialog 4)")
- (setq re (start_dialog))
- )
- (princ "\n无法显示对话框!")
- )
- (unload_dialog dcl_id)
- )
- (princ "\n无法加载对话框!")
- )
- (cond
- ((= re 1) (load "C:/CSRCAD/TOOL/加法计算") (c:Jf))
- ((= re 2) (load "C:/CSRCAD/TOOL/减法计算") (c:jian))
- ((= re 3) (load "C:/CSRCAD/TOOL/乘法计算") (c:cf))
- ((= re 4) (load "C:/CSRCAD/TOOL/除法计算") (c:chu))
- )
- (princ)
- )
|