Skip to main content
Solved

Change Data Source in MXD


Forum|alt.badge.img+1

I have an MXD that has all the layers (3 feature classes) reading from one file geodatabase. I would like FME to change the "Data Source" in the MXD from one geodatabase to another geodatabase. Can FME do this?

Thanks

Best answer by jdh

I use arcpy for that sort of thing.

View original
Did this help you find an answer to your question?

3 replies

jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • Best Answer
  • May 1, 2019

I use arcpy for that sort of thing.


Forum|alt.badge.img+1
  • Author
  • May 1, 2019
jdh wrote:

I use arcpy for that sort of thing.

I was hoping I could add it to my workbench. I guess FME can't "write" to an MXD?


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • May 1, 2019
akozielec wrote:

I was hoping I could add it to my workbench. I guess FME can't "write" to an MXD?

As far as I know, there is only the MXD reader, and it's not available in the professional edition.

 

I use either a pythonCaller, or python shutdown script in my workspace to "post-process" the mxd.

 

Usually it's something along the lines of make a copy of the template mxd, update the sources to the data I wrote out in the workspace, zoom to extent of the data.

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings