参考(具体内容自己写)- (defun c:test( / what_next what_next2 dcl_id ss)
- (setq what_next 2 what_next2 1)
- (setq dcl_id (load_dialog "tmp"))
- (while (>= what_next 2)
- (new_dialog "gxdata" dcl_id)
- (if (>= what_next2 2) (next dcl_id))
- (action_tile "nd" "(next dcl_id)")
- (setq what_next (start_dialog))
- (cond
- ((and (= what_next 2) (= what_next2 2))
- (setq ss (ssget))
- )
- )
- )
- (unload_dialog dcl_id)
- )
- (defun next(dcl_id)
- (setq dcl_id (load_dialog "tmp"))
- (new_dialog "gxdata2" dcl_id)
- (action_tile "hide" "(done_dialog 2)")
- (setq what_next2 (start_dialog))
- (if (= what_next2 2)
- (done_dialog 2)
- )
- )
- gxdata : dialog {
- label = "0";
- : edit_box {
- label = "附属物:";
- key = "qdfsw";
- edit_width = 15;
- }
- :button{label="下一层";key="nd";}
- ok_cancel;
- }
- gxdata2 : dialog {
- label = "1";
- : edit_box {
- label = "附属物:";
- key = "qdfsw";
- edit_width = 15;
- }
- :button{label="选对象";key="hide";}
- ok_cancel;
- }
|