|
POST
|
Jon: Take a look at the 4th sample script provided with the DataFrame class. It performs a SelectByLocation using the DataFrame extent as the selecting feature. I think this is all you need. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/DataFrame/00s300000003000000/ Jeff
... View more
12-29-2010
06:37 AM
|
0
|
0
|
1352
|
|
POST
|
Hi Jon, I believe the reason you are getting the first record (and all other records) is because you are not applying a query to your search cursor. In this case you want to perform a SelectLayerByLocation and pass in the geometry of the data frame envelope. 1) don't put your ListLayoutElements within the loop, you only need to reference the text element once so move this line above the loop. Depending on the complexity of the MXD, this could be a real performance problem. 2) You can remove the additional if statement if you use the wildcard parameter for ListLayoutElements, try: "elm = arcpy.mapping.ListLayoutElements(mxd, "TEXT_ELEMENT", "LayoutLegend")[0] I hope this helps, Jeff
... View more
12-24-2010
04:54 AM
|
0
|
0
|
1352
|
|
POST
|
Ryan, After closer examination, we discovered that your font does NOT allow fonts to be embeded. Under Names and Copyright --> Embedding, you have it set to "Embedding of this font is not allowed" I hope this helps with your confusion, Jeff
... View more
12-03-2010
11:15 AM
|
0
|
0
|
2700
|
|
POST
|
Ryan, Thanks for sending me your data. I was able to reproduce the problem with your specific font. I also noticed that this also occurs when exporting from the User Interface, in other words, it is not specific to arcpy.mapping.ExportToPDF. Could you please open an incident with Technical Support so this issue can be further investigated. Thanks, Jeff
... View more
12-03-2010
10:13 AM
|
0
|
0
|
2700
|
|
POST
|
Ryan, Can you send me the font (jbarrette@esri.com). I'll try the same steps with your font. It there any reason your font would behave differenently from the Esri fonts? Thanks, Jeff
... View more
12-03-2010
05:19 AM
|
0
|
0
|
2700
|
|
POST
|
Hello Ryan, I tried to reproduce this using 10.0 SP1 and could not. Here are my steps. Create a layout with multiple text strings. Modify the font for each string. A few were core fonts, the remaining were Esri fonts. I exported to PDF using the UI two times: one with embeded fonts and the other with convert markers and embeded fonts. I did the same using arcpy.mapping. I had someone in our office (with no Esri software) open the PDFs and they saw them just fine. Is there a particular font that is failing for you? Thanks, Jeff
... View more
12-02-2010
07:24 AM
|
0
|
0
|
2700
|
|
POST
|
Thanks Ryan, This is something we are currently looking into. We also have observed the performance issues concerning ListLayoutElements as well. You will see a difference between running this as a stand-alone script vs. running in the Python Window using CURRENT because the implementations are different. Here is a very brief explanation: with CURRENT the code is acting directly on the map document in the application and all objects are directly accessible. As a stand alone script, the code is acting against a map document that does not exist in an application but rather in a "fictitious" window that needs to be activated each time objects called. We hope to have this addressed for SP2. Thanks, Jeff
... View more
12-01-2010
06:10 AM
|
0
|
0
|
1211
|
|
POST
|
Sean, The way to verify if SP1 is installed is to check via the ArcGIS Administrator. 1) Open ArcGIS Administrator 2) Click the root node 3) Read the Service Pack information section. It should read SP1 (build 10.0.1.2800) We had a memory leak issue that that has similar symptoms as yours. Does this fail at all when you run the Export on 1, 2 or just a few MXDs? If it happens with just one MXD then this may be a different issue. Thanks, Jeff
... View more
11-22-2010
05:13 AM
|
0
|
0
|
972
|
|
POST
|
Sean, Have you tried applying SP1? There was a memory leak that was patched that may address your issue. Jeff
... View more
11-17-2010
10:15 AM
|
0
|
0
|
972
|
|
POST
|
Jane, This option is not available in with the arcpy.mapping Export functions. I'd like to know more about how you use this and why. I also recommend that you add this to the http://ideas.arcgis.com website. It may be possible to add in a future release but we'd really like to know the use cases in terms of map automation. Thanks, Jeff
... View more
11-17-2010
06:10 AM
|
0
|
0
|
3168
|
|
POST
|
Also - any suggestions you have for software enhancements are always welcome and encouraged to be put on the http://ideas.arcgis.com website. Thanks again, Jeff
... View more
11-17-2010
05:35 AM
|
0
|
0
|
1018
|
|
POST
|
Aaron, I'm glad that helped out. At SP1, with ExportToPDF and ExportToEPS, we added Adaptive and JPEG compressions. We also added the {jpeg_compression_quality} parameter. I am not aware of future additions concerning Exporting to PDF. My focus has been on making sure that arcpy.mapping provides the same results as the ArcMap UI. I will look into this for you. Jeff
... View more
11-17-2010
05:31 AM
|
0
|
0
|
1018
|
|
POST
|
Hi Sean, Could you share a snippet of your code so I can see what you are trying to do. Also if you want, please feel free to send me an MXD along with your code so I can take a look: jbarrette@esri.com. Thanks, Jeff
... View more
11-17-2010
04:59 AM
|
0
|
0
|
972
|
|
POST
|
Note: the Refresh functions are only needed when referencing a map document using the "CURRENT" keyword. Not all functions automatically refresh the current ArcMap application. When referencing a map document via a system path, the refresh functions are not required. Jeff
... View more
11-12-2010
04:23 AM
|
0
|
1
|
2031
|
| 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 |
a week ago
|