Editing block and closing the whole drawing by mistake without saving

Editing block and closing the whole drawing by mistake without saving

Anonymous
Not applicable
717 Views
6 Replies
Message 1 of 7

Editing block and closing the whole drawing by mistake without saving

Anonymous
Not applicable

 

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

718 Views
6 Replies
Replies (6)
Message 2 of 7

leothebuilder
Advocate
Advocate

I have done the same thing many times!

0 Likes
Message 3 of 7

nrz13
Advisor
Advisor

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.


Work:  AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-8700K, 32GB RAM, Samsung 960 Pro SSD, AMD Radeon Pro WX 5100, 3 Dell Monitors (3840x2160)
Home: AutoCAD 2022.1.3, Windows 10 Pro v22H2 64-bit, Intel Core i7-11700, 64GB RAM, Samsung 980 Pro SSD, NVIDIA Quadro P2200, Dell Monitor (3840x2160)
0 Likes
Message 4 of 7

leothebuilder
Advocate
Advocate

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

0 Likes
Message 5 of 7

Anonymous
Not applicable

 

 

Jepp.  i have to change this bad habbit and use BK shortcut  for closing blocks

 

(Still i wish Autodesk could change this  "trap" )

 

Thanks

 

 

 

0 Likes
Message 6 of 7

Anonymous
Not applicable

 BC !

0 Likes
Message 7 of 7

leothebuilder
Advocate
Advocate

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.

0 Likes