AnsweredAssumed Answered

Alter a directory of MXD's to enable visibility of 'Shape'

Question asked by JordanBaumgardner_GIS on May 21, 2018
Latest reply on May 22, 2018 by jskinner-esristaff

I have a client who published 10-15 mxd's with 10s of layers in each, without marking SHAPE visible. So I can't query the geometry. There were audible grones when I explained how to correct manually. I told them I might be able to come up with something clever. I'm just starting out on this journey, and I'm not really a python guy, but this seems like a good time to start. Any thought are greatly appreciated. 

 

I'm going to start by trying a simple mxd export into something text-y, manipulate the text with something, and import back.

Though, I feel like if I knew arcPy at all, I could...

dir = source dir

for each(mxd in dir) {

   for each(layer in mxd) {

      layer.something.SHAPE.visible = true;

   }

}

saveMxdAs(..);

Outcomes