Hi
I dont know how many times i have been editing a block in a drawing and then clicked on the cross. Instead of closing the block editor i closed the whole drawing, many times without saving.
It should have been made impossible to close the main drawing while editing a block!
Yours sincerely
Stefan Emhjellen
A workaround to avoid the interface confusion is to use keyboard shortcuts for exiting the block editor. I use "SB" and "DB" for "save block" and "discard block changes" respectively. Here's the LISP:
(defun c:SB ()(command "bclose" "s" "regen")(princ))
(defun c:DB ()(command "bclose" "d" "regen")(princ))
Note: the drawing automatically regens after exiting the editor. The second regen I added was to fix layer order issues after exiting the block editor. If you don't have that problem, you can remove the "regen" part.
I use the keyboard 95% for all commands.
I guess you could add the BCLOSE command to the .pgp file as BC.
I like your solution because it adds the "save" command.
Thx
Jepp. i have to change this bad habbit and use BK shortcut for closing blocks
(Still i wish Autodesk could change this "trap" )
Thanks
Way way back up to around release 12 or so END would end your autocad session.
There were so many times I tried to enter END for osnap and it would bomb me out ot autocad.
Fortunately they Autodesk changed that.