|
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
|
633
|
|
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
|
2517
|
|
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
|
762
|
|
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
|
762
|
|
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
|
633
|
|
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
|
1623
|
|
POST
|
How large is your result? Have you compared the export size from arcpy.mapping to the same export via the ArcMap user interface? They should be the same. Please let me know if you see differences. If arcpy.mapping is producing a result that is different from the UI export, they we must know that. FYI - With SP1 we've introduced additional compression options/settings.
... View more
11-11-2010
09:24 AM
|
0
|
0
|
762
|
|
POST
|
Hello Eric, Based on the testing we've done together, it appears your issue is resolved with SP1. Several issues have been addressed that are specific to change SDE data sources. Thanks for your help, Jeff
... View more
11-03-2010
11:42 AM
|
0
|
0
|
859
|
|
POST
|
Hello Eric, I'm not sure if the problem you are having is with your .replace statement. You are not using the raw (r) format, the back slashes may be causing a problem. Try: lyr = arcpy.mapping.Layer(r"C:\temp\index.lyr") lyr.findAndReplaceWorkspacePath(r"C:\", r"D:\") lyr.save()
... View more
10-25-2010
08:09 AM
|
0
|
0
|
859
|
|
POST
|
Hello Brent, Have you tried using the GP Describe object? desc = arcpy.Describe("PathToFC") dfExtent = df.extent dfExtent.XMin = desc.XMin dfExtent.XMax = desc.XMax dfExtent.YMin = desc.YMin dfExtent.YMax = desc.YMax df.extent = dfExtent Jeff
... View more
10-25-2010
07:54 AM
|
0
|
0
|
1335
|
|
POST
|
Hello Paul, Have you tried testing your lines of code in the Python Window of ArcMap? Here you would see immediate feedback with the code you are testing. For example. filePath = os.path.dirname(mxd) throws a "Map Document object is not subscriptable". Perhaps an alternative would be to use filePath = os.path.dirname(mxd.filePath) I'm also a little concerned with trying attempting to close the application that is currently open. After doing a little pthon searching, it appears you would need to call other modules to actually close an application (e.g., the win32com module). This would be much easier if you were not using "current". os.startfile(mxd.path) is a way to open the resulting mxd. I hope this helps a little, Jeff
... View more
10-21-2010
06:59 AM
|
0
|
0
|
722
|
|
POST
|
It should not matter if the raster is in a different folder. I was going to provide an alternative approach but then learned about the SP1 fix concerning the extension as part of the string. Please keep us posted, Jeff
... View more
10-13-2010
12:10 PM
|
0
|
0
|
1773
|
|
POST
|
Daniel, Try removing the extension from the file name. Try: lyr.replaceDataSource("E:/Projects", "RASTER_WORKSPACE", "NewLayer_2010") This issue was addressed for SP1. Please let me know if this does not work for you. At SP1 you'll be able to use your original line of code. Thanks again, Jeff
... View more
10-13-2010
08:48 AM
|
0
|
0
|
1773
|
|
POST
|
Hello Daniel, Is your new raster in the same workspace (i.e., folder) as the old raster? Jeff
... View more
10-13-2010
08:18 AM
|
0
|
0
|
1773
|
|
POST
|
Unfortuneately you won't be able to. Arcpy.mapping is a new module at 10 and is not backward compatible. Jeff
... View more
10-01-2010
06:39 AM
|
0
|
0
|
1259
|
| 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
|