New answers tagged arcpy-mapping
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.
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 ...
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.
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
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 ...
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 ')
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