path = r"C:\\" mxdList = glob.glob(path + "\\*.mxd") for mxd in mxdList: mxd = arcpy.mapping.MapDocument(mxd) for elm in arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT"): if elm.text == "works": elm.text = "replaceword" mxd.save() del mxd
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.