Am .08.2015, 20:36 Uhr, schrieb <
schiffba...@gmail.com>:
> Hello Charlie. Well, our deadline... as soon as it can possibly be done -
> budgeting can be tricky you know, and we have lots to do. I don't have
> any
> sample code for the excel python, but I do have sample code for a single
> map document arcpy module replaceDataSource. The indentation in my actual
> module comes out right - so that's not the issue, just how it pasted in
> here. I have attached a sample of the spreadsheet (this is truncated and
> edited so that sensitive information has been removed). I appreciate your
> help/comments very much.
So, this file just contains the data source listed in the cells and not
connected to the file?
The second row looks like this:
Database Connections\My
data.sde project.SDE.i15_USGS_FedIndLand_03 "HCP_Basemap.gdb\Administrative\fedlanp020"
This is an edited file because it has New_SDE_Connection and NewFCName?
But based on what you said earlier, this isn't the case. You want to use
this file to manage edits to the myterious mxd files, right? And this is
what is currently broken.
Please write some pseudo to show what you want to with the data from this
file.
In openpyxl the following might be useful:
wb = load_workbook("SampleDataForPyxlHelp.xlsx")
ws = wb['Sheet1']
for row in ws.iter_rows():
new_conn, new_name, old_path = row[:3]