Add Locator to Unopened MXD

647
1
06-22-2017 03:29 PM
StevenGraf1
Occasional Contributor III

How do I programmatically add a locator to an unopened mxd?   I can't find any esri pages that reference adding a locator using python.  Everything just mentions adding layers to a map document using arcpy.mapping.AddLayer.

Basically what I'm trying to do is script the building of a runtime locator.  I have all the other pieces in place except for adding the locator to the mxd.

-Steven

0 Kudos
1 Reply
StevenGraf1
Occasional Contributor III

Instead of doing it that way, I just manually created an MXD with the locator in it.  The locator gets rebuilt then the runtime content gets created using the same MXD over and over.