224 reputation
210
bio website
location Australia
age
visits member for 2 years, 3 months
seen Apr 11 at 7:00

Jan
25
comment How to create a shortcut (a button) for “Make this the only selectable layer” in Python 2.6?
yes, exactly. TOC > Selection > Make this layer the only selectable layer
Jan
25
asked How to create a shortcut (a button) for “Make this the only selectable layer” in Python 2.6?
Jan
25
comment How to change DXF unit by Python 2.6
Yes they are all in the same area and same projection.
Jan
24
asked How to change DXF unit by Python 2.6
Jan
10
awarded  Supporter
Jan
10
awarded  Scholar
Jan
10
accepted How can I write a python script for repairing broken links in ArcGIS 10 for different new paths of layers or shapefiles?
Jan
9
comment How can I write a python script for repairing broken links in ArcGIS 10 for different new paths of layers or shapefiles?
Thanks for your prompt response. Here's my code which does almost the same: import arcpy mapDoc=arcpy.mapping.MapDocument("Current") brokenLayer=arcpy.mapping.ListBrokenDataSources(mapDoc)[0] path=arcpy.GetParameterAsText(0) brokenLayer.replaceDataSource(path) arcpy.RefreshTOC() but every time, you have to invoke this script and input a new path. what I'm looking for is like creating maybe a loop according to the number of broken links that each one has a different path.
Jan
9
awarded  Student
Jan
9
asked How can I write a python script for repairing broken links in ArcGIS 10 for different new paths of layers or shapefiles?