Skip to main content
Solved

Change Data Source in MXD

  • May 1, 2019
  • 3 replies
  • 50 views

Forum|alt.badge.img+2

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.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

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

I use arcpy for that sort of thing.


Forum|alt.badge.img+2
  • Author
  • May 1, 2019

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+40
  • Contributor
  • May 1, 2019

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.