Tag Info

New answers tagged

0

I have been down that route and I don't suggest it. When I started to run Arcobjects with Python (almost 2yrs ago), I only knew a little bit of C#, but had what I would consider a modest knowledge of Python. Not a pro, but not a beginner either. Now, I am switching the whole Add-In (3k-ish lines of code) to C# as it will be developed further and it's not ...


1

To "go through a designated folder, [and] locate all MXD files within the folder" is relatively easy with Python, and there is a Stack Overflow Q&A that describes some ways: http://stackoverflow.com/questions/3207219/how-to-list-all-files-of-a-directory-in-python However, the rest is much harder because ArcGIS Desktop 9.3 only had access to the ...


3

So this should solve your question. This fundtion will list all the data sources found in any MXD file within a folder and it's subfolders. It'll save the CSV in the folder you specify to begin the search from. Change the name of the CSV on line 22 if you need to. The CSV is written with Path, FileName, FileType import os import csv import arcpy def ...


6

What you are after may not be determinable, it requires that the document info was saved/embedded and as you've found that is not often embedded into the document. I cannot find any reference to when this data is saved/skipped. For what it's worth this is another method: import os, sys, arcpy from comtypes.client import GetModule, CreateObject BasePath = ...



Top 50 recent answers are included