所以我发现了我的一些错误。
应如下所示:
-
- (defun C:rev_box () ;define function
- (setq dcl_id (load_dialog "rev_box.dcl")) ;load dialog
- (if (not (new_dialog "rev_box" dcl_id) ;test for dialog
- )
- (exit) ;exit if no dialog
- );if
- [color=red](set_tile "ccc_rev1" ccc_rev_1)[/color]
- (action_tile
- "cancel" ;if cancel button pressed
- "(done_dialog) (setq userclick nil)" ;close dialog, set flag
- );action_tile
- (action_tile
- "accept" ;if O.K. pressed
- " (done_dialog)(setq userclick T))" ;close dialog, set flag
- );action tile
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- (action_tile "ccc_rev1" "(setq ccc_rev_1 $value)")
- (action_tile "ccc_by1" "(setq ccc_by_1 $value)")
- (action_tile "ccc_date1" "(setq ccc_date_1 $value)")
- (action_tile "ccc_des1" "(setq ccc_des_1 $value)")
- (start_dialog) ;start dialog
- (unload_dialog dcl_id) ;unload
- (princ)
- (command "regenall")
- );defun C:samp
- (princ)
这在图形中可以正常工作,但当我保存它时,请关闭它,然后返回。当我运行它时,会出现以下错误:
; 错误:错误的参数类型:stringp nil
安东有什么想法吗? |