不知道你讲的啥意思,但是我觉得这样是正常的
- (defun c:cx (/ osm dcl_id dd p x y)
- (setvar "cmdecho" 0)
- (setq osm (getvar "osmode"))
- (setvar "osmode" 0)
- (setq
- dcl_id (load_dialog "D:\\abc.dcl")
- )
- (setq dd 2)
- (while (> dd 1)
- (new_dialog "attline" dcl_id)
- (action_tile "accept" "(done_dialog 1)")
- (action_tile "cancer" "(done_dialog 0)")
- (action_tile "bt_selectline" "(done_dialog 2)")
- (setq dd (start_dialog))
- (cond
- ((= dd 2)
- (progn
- (initget 1)
- (setq p (getpoint "\nPlease get a point:"))
- (setq x (car p)
- y (cadr p)
- )
- )
- )
- ((= dd 0)
- (print "00")
- )
- ((= dd 1)
- (print "11")
- )
- )
- )
- (unload_dialog dcl_id)
- (setvar "osmode" osm)
- (prin1)
- )
|