AnsweredAssumed Answered

Automate the .saveACopy() ArcPy method to reduce MXD file size

Question asked by cbeyerhelm on Aug 31, 2014
Latest reply on Oct 1, 2014 by curtvprice

I have a folder of 50+ MXDs that have been edited repeatedly, such that their file size has increased over the course of time.  Applying File - Save A Copy from ArcMap, or the mapDoc.saveACopy() method in the Python window will reduce the current MXD's file size...but only for the MXD that is currently open in ArcMap.  Applying the mapDoc.saveACopy() method to a long ArcPy list of MXDs does, indeed make a copy of the MXDs, but it does not also reduce their file size.

 

So, the question is, is there a way to automate MXD file size reduction?  I've explored the os.startfile(mxd_path) scenario, but it opens a new instance of ArcMap for each MXD...which is not satisfactory.

 

Advice or insights are welcome.  Thanks...

Outcomes