> Does anybody know what in what format the save command is for the following
> dialogue box. I am trying to redefine the save commands and cant seem to capture
> that one. I am using LDD2i so there is no worry of multiple drawings being open.
>
> Any help would be greatly appreciated.
I'm not sure exactly what you are asking. Here's what I've used in the
past...
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;SAVE Command Redefinition;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
(command "undefine" "save") ;Undefine SAVE
(defun c:save () ;Redefine SAVE
{put pre-case actions here}
(if (= (getvar "filedia") 1)
(command ".save" "~") ;SAVE dialog
(command ".save") ;SAVE command line
);ENDif
(princ)
);ENDsave
Redefining SAVE isn't a problem. It's QUIT, OPEN, NEW, that force the
"Save changes" prompt that are more work. In these cases, you have to
look yourself to see if the drawing is changed or not and issue your own
actions based on these conditions. When I've done this, I created my own
DCL dialog prompt for the "save changes?" prompt to give it as close a
feel to the native AutoCAD command as possible.
--
Sincerely,
Darren J. Young
Minnesota CADWorks, Inc.
P.O. Box 7293
Saint Cloud, Minnesota 56302-7293
Phone: (320) 654-9053
WWW: http://www.mcwi.com