Tag Info

New answers tagged

0

Try using the absolute path in Python. Instead of H:, what does H: point to? For example: mxd = mapping.MapDocument(r"\FileServer\ThisIsWhereHPoints\Python\Python_Cookbook\Maps\TravisCounty.mxd") More about path referencing here.


2

Try saving the mxd using the save() method or just refresthing the display/TOC. If scripting is used to modify the appearance of some map document elements while using the CURRENT map document (for example, change a layer name, the data frame extent, and so on), the map may not automatically update with each executed line of code. To refresh the ...


0

The fieldInfo object is used to modify field properties when creating a new layer, e.g. with the Make Feature Layer tool. You can't use it to change directly your layer properties.


0

No script solution Convert raster to binary, assigning 1 to value of interest, 0 for the rest Focal statistics, SUM, with appropriate size square. Raster with value => y to points Buffer of points Polygons from individual buffer extents


2

This is old but I had the same error "PageLayoutObject: Error in executing ExportToJPEG". The problem for me was that I was trying to write to a folder that didn't exist. Once I created the folder, it worked fine. This also makes me think that if you had some other kind of permissions problem that didn't let you write to the output file it might also be ...


1

SelectLayerByAttribute_management is available in arcpy. You may need to make a feature layer if you're not in a mapping session. From the second example at the link: arcpy.SelectLayerByAttribute_management("lyr", "SUBSET_SELECTION", ' "population" > 10000 ')


1

You can use the Copy GP tool for copying the entire feature dataset where the ND resides + it will copy all the related ND tables found in the geodatabase (outside of FD). This will preserve the ND and you don't need to create one. You are correct that it is not allowed to run the Dissolve network on an ND stored within the SDE geodatabase, you do need to ...



Top 50 recent answers are included