|
POST
|
Ryan, I could not reproduce. There are a couple of things. 1) The aspect ratio of your data frames need to be similar otherwise the extents can not be the same - we don't warp the data but fit the extent until the one of the delta Xs or Ys are fitted. 2) did you save your changes? Here is my code - I have a simple MXD with 2 data frames, the main is 6x6 inches and the inset is 2x2 inches. import arcpy MXD = arcpy.mapping.MapDocument(r"C:\Temp\df.mxd") DF = arcpy.mapping.ListDataFrames(MXD, "main")[0] newInsetExtent = DF.extent DF_inset = arcpy.mapping.ListDataFrames(MXD, "inset")[0] DF_inset.extent = newInsetExtent MXD.saveACopy(r"C:\Temp\df2.mxd")
... View more
04-29-2011
10:56 AM
|
0
|
0
|
620
|
|
POST
|
I'm trying to reproduce the issue. I've tried everything you suggest (SDE data, no SDE data, DDP, no DDP, etc). I'm even trying to use the same symbols. Could you send me a couple of your layer files? Send directly to jbarrette@esri.com. Thanks, Jeff
... View more
04-21-2011
11:56 AM
|
0
|
0
|
803
|
|
POST
|
We reproduced this issue an will hopefully be able to address it in the next service pack. If you want to check its status, it is: NIM067167
... View more
04-20-2011
11:53 AM
|
0
|
0
|
790
|
|
POST
|
We reproduced this issue an will hopefully be able to address it in the next service pack. It appears to be related to the output file size. Anything over 1GB will not work or open correctly. If you want to check its status, it is: NIM067258
... View more
04-20-2011
11:51 AM
|
0
|
0
|
1916
|
|
POST
|
We can reproduce this issue an will hopefully be able to address it in the next service pack. If you want to check its status, it is: NIM067157 Thanks, Jeff
... View more
04-15-2011
01:02 PM
|
0
|
0
|
1010
|
|
POST
|
We reproduced this issue an will hopefully be able to address it in the next service pack. Our fix is to prevent web service and image service layers from supporting Layer.dataSource. You can then test to see if a layer supports the Layer.dataSource property before attempting to modify a data source. If you want to check its status, it is: NIM067149 Thanks! Jeff
... View more
04-15-2011
10:10 AM
|
0
|
0
|
1769
|
|
POST
|
We reproduced this bug an will hopefully be able to address it in the next service pack. If you want to check its status, it is: NIM067146 Thanks! Jeff
... View more
04-15-2011
08:38 AM
|
0
|
0
|
1068
|
|
POST
|
Thomas, Do your rasters come with any sort of vector footprint that could be incorporated into an index layer? If not, there are GP functions that do this (e.g., BuildFootPrints, BuildBoundaryTool). I'd like to know more about your workflow. Do you create individual map books based on just the new data or is it constantly expanding? Thanks, Jeff
... View more
04-14-2011
07:43 AM
|
0
|
0
|
1812
|
|
POST
|
It is a great question but of course the answer isn't that simple. Here is a very quick summary: Our objective with arcpy.mapping was NOT to recreate ArcObjects capabilities but to simplify the scripting experience. If we gave you the ability to add new objects (e.g., scale bar) we would need to expose ALL of the properties associated with adding that object (aka ArcObjects). Arcpy.mapping is intended to work with already authored mxds and layer files. The idea is that we use ArcMap and all of its 100's of buttons, menus, properties dialogs to author the content and we use arcpy.mapping to automate it. It is difficult for us to draw a line in the sand and are always looking for good feedback on when/how we should expand the API to further enhance map automation (not map creation). At 10.1 we are going to expand the symbology API because our users showed us some really nice use cases. Please, send us your feedback. Jeff
... View more
04-08-2011
08:45 AM
|
0
|
0
|
3112
|
|
POST
|
You can not create or remove layout elements using arcpy.mapping. You can either move elements on and off the page or like Dan suggests, in the case of text elements you can set the string to be a blank space. NOTE - don't set the string to be completely empty (e.g., ""). This causes issues that are being addressed at SP2. The UI doesn't let you do it either. Set the string to be a single blank (e.g., " "). Jeff
... View more
03-31-2011
08:36 AM
|
1
|
0
|
3112
|
|
POST
|
We reproduced this bug an will hopefully be able to address it in the next service pack. If you want to check its status, it is: NIM066646
... View more
03-27-2011
08:55 AM
|
0
|
0
|
872
|
|
POST
|
arcpy.mapping.ExportToPDF exports a single pdf based on the current MXD. It does not take into consideration that the MXD is DDP enabled. DDP.exportToPDF allows you to print multiple PDfs from a single DDP enabled map doc. Also, how do I only export a page range instead of all pages: Use DDP.exportToPDF. Set page_range_type="RANGE", set page_range_string to equal the pages you want printed (e.g., "1-5, 8, 10"). Read the help for details. Also, how do I export each page to a separate pdf: Use the {multiple_files parameter}. Read the help for details. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataDrivenPages/00s300000030000000/ Jeff
... View more
03-23-2011
05:44 AM
|
0
|
0
|
1916
|
|
POST
|
Are you running 10.0 SP1. The was reported a long time ago but I believe it was not reproducible using SP1.
... View more
03-18-2011
06:51 AM
|
0
|
0
|
923
|
|
POST
|
Kevin, The script must run on a 10.0 machine because arcpy.mapping is new at 10 but it should not matter that the feature classes are coming from a 9.3 SDE source. Please let us know if there is a problem, Jeff
... View more
03-16-2011
07:11 AM
|
0
|
0
|
923
|
|
POST
|
Data Driven Pages were not designed for this purpose. I personally would not use DDP and would script it using arcpy.mapping but your solution to create stacked index polygons for each route should work. It is very difficult to manage overlapping polygons. With arcpy.mapping you can simply iterate through each layer and set the definition query and then ExportToPDF before setting the next query. Jeff
... View more
03-15-2011
06:46 AM
|
0
|
0
|
4742
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-05-2025 11:20 AM | |
| 3 | 06-05-2025 09:21 AM | |
| 1 | 05-14-2025 01:19 PM | |
| 2 | 04-24-2025 07:54 AM | |
| 1 | 03-15-2025 07:19 PM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|