Does anyone know of a way to automatically zoom extents when a drawing is being saved and closed?
"..or have autolisp zoom extents when open the drawing."
That would be my preference, as it would be more reliable and is slightly easier to implement.
I suggest the OP look here (from 2013 Help, but applies to earlier versions as well):
http://docs.autodesk.com/ACD/2013/ENU/files/GUID-FDB4038D-1620-4A56-8824-D37729D42520.htm
Focus on the acaddoc.lsp file... and then post back if this doesn't lead to a DIY solution.
"...zoom extents when a drawing is being saved and closed?"
There are probably several ways this can be done. The easiest is to create a menu macro which you would then assign to a toolbar button, menu pick, or other interface element. The macro would automate the sequence of commands you want to run when the button is clicked. This is done in the CUI.
See this: http://docs.autodesk.com/ACD/2013/ENU/files/GUID-D991386C-FBAA-4094-9FCB-AADD98ACD3EF.htm
Once you set this up, then the main challenge is to remember to use the button instead of the other "more familiar" methods of saving and closing a DWG.
If you are interested in other methods, just ask.
It is very easy to create macro and assign to a key or key combo. I use this myself - Shift+S:
'_zoom _e;save;
Can't find what you're looking for? Ask the community or share your knowledge.