|
POST
|
Hello Cosmin, I'm not sure I completely understand the workflow, you please confirm or clarify the following: - You open an MXD (in the ArcMap application). - Next you add some script tools to the Catalog Window (but you mention ArcCatalog, not Catalog Window) - I'm not sure what you mean by append. - you do a saveACopy (to a different mxd) - then you close the ArcMap application, - reopen the same MXD and the toolbox is not available. I.e., you must add it again. Question: if you do the same thing with File-->SaveACopy, do you get the same behavior? Thanks, Jeff
... View more
01-10-2011
06:52 AM
|
0
|
0
|
705
|
|
POST
|
Here is the correct link. http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=A910AB18-1422-2418-3418-3885D388EF60 Sorry for the confusion, Jeff
... View more
01-10-2011
06:37 AM
|
0
|
0
|
3550
|
|
POST
|
The following is a link to some sample scripts on the Resource Center: http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=A910AB18-1422-2418-3418-3885D388EF60 It contains one script called Multi-MXD report. It writes a bunch of MXD information to a text file (including file path). This should help you get going. Jeff
... View more
01-09-2011
07:49 AM
|
0
|
0
|
3550
|
|
POST
|
Francis, At 10.0, if your mxd is in page layout view, the mxd.activeView returns "PAGE_LAYOUT" (and not the active data frame within the layout). You would need to find the data frame by name (or loop through each df) and return the rotation accordingly. If you are in data view, the mxd.activeView returns the active dataframe. At that point you can get the df.rotation value. At 10.1 we plan to introduce a new MapDocument property called ActiveDataFrame which will be r/o and will return a reference to a data frame object regardless of data view or layout view. Jeff
... View more
01-07-2011
06:20 AM
|
0
|
0
|
393
|
|
POST
|
John, The first code sample in the MapDocument Class help shows how to do this. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/MapDocument/00s30000000n000000/ Jeff
... View more
01-04-2011
07:14 AM
|
0
|
0
|
2221
|
|
POST
|
Michael, This special formating can't be done within a dynamic tag. There are not built in options to strip away characters using some pre-determined logic. This could be done using basic Python string manipulation but that would require that you replace the dynamic tags with scripting logic and use arcpy.mapping to generate your output. The maps would need to be generated using a script as opposed to it being dynamic within the user interface. If this is a direction you want to go, I could provide you with some of the logic. Jeff
... View more
12-30-2010
07:10 AM
|
0
|
1
|
1148
|
|
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
|
1030
|
|
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
|
1030
|
|
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
|
1831
|
|
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
|
1831
|
|
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
|
1831
|
|
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
|
1831
|
|
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
|
833
|
|
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
|
644
|
| 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
|