Tag Info

New answers tagged

2

You should check the geometry of the first feature. It might be that the first feature's geometry is not what you think it is. It might have a multipart at an unsuspected location. This will cause the first page to zoom to an other extent that you wanted.


0

You do not mention the version of ArcGIS for Desktop that you are using, but I am guessing that it is 10.0 because I recall an issue similar to this at that release, which was resolved by MapsurroundElement (arcpy.mapping) being enhanced at 10.1 (or possibly at one of the later service packs to 10.0) to handle the scale bar anchor point more predictably. ...


1

You can largely avoid opening the reference mxd by using layers. This is generally how arcpy.mapping operates anyways, is through layer files. For example, I have used a workflow which looks something like this: arcpy.MakeFeatureLayer_management - here is where you can subset the data arcpy.SaveToLayerFile_management arcpy.mapping.UpdateLayer - allows you ...


1

I think I understand what you are trying to do, but correct me if I am wrong. If I have understood the use case I would not involve Data Driven Pages to do this. I think you are saying that you want to: Export to PDF your layout which has Group 1 elements on it - let's call it Group1.pdf You get hold of Group 1 and move it off the page You get hold of ...


2

You can list text and other graphic elements with arcpy.ListLayoutElements(). This will even give you the option of returning only text elements, graphic elements, mapsurround elements (like north arrow, scale bar). For each of these elements you can set its location by setting the X and Y properties e.g. element.elementPositionX = 12.5. This allows you as ...



Top 50 recent answers are included