POST
|
I figured that might be the case, but I appreciate the confirmation. I'm using this functionality as a component of a template designed to generate a Map Series with several maps as part of the layout that I'm trying to have the Clip layers functionality impact. The map series will have several hundred pages, so clipping rasters via GP tools wouldn't be ideal. Resetting the map properties manually to clip appropriately each time the template is used shouldn't be too bad. Just trying to simplify the process for different end users - they'll just have to deal with a few extra clicks 😉
... View more
06-21-2021
01:10 PM
|
0
|
1
|
1289
|
POST
|
Hi all, In Map Properties, there's the option to Clip Layer, where you can select between No clipping, Clip to the outline of features, and Clip to a custom extent Is there a way to set this via Python? I'm currently running ArcGIS Pro v2.7.3. Thanks!
... View more
06-21-2021
12:41 PM
|
0
|
7
|
1305
|
POST
|
In Pro (currently using 2.6), is there a way to adjust only the font of the legend title (usually "Legend")? You can change the text symbol for everything within the legend, and usually the word "Legend" is a different size from the rest of the contents, but I cannot find a way to change just the title. Any ideas? Evidently, you also can't selectively alter any of the other legend items (Group layer name, Layer name, Headings, Label (or layer name), Descriptions)
... View more
11-10-2020
05:45 AM
|
2
|
3
|
9021
|
POST
|
Thing is though, there are only the 3 required parameters. However, you were absolutely correct about going with the examples. After following them closely, I figured out what was going on - despite directly referencing a .lyr file as the lyr file input, it wanted me to declare it as a layer file: lyr = arcpy.mapping.Layer("D:\tool\Test_Layer.lyr") Then this worked: arcpy.mapping.ExportReport(lyr, rlf, out) Glad we got it figured out!
... View more
11-02-2017
12:44 PM
|
0
|
0
|
614
|
POST
|
Nope, I haven't tried before. But given that each of the variables are pretty straight forward - a polygon layer with an attribute table, an rlf file that I've made myself, and a generic output PDF directory - and the limited inputs needed for the arcpy function, I can't figure out what I'm doing wrong
... View more
11-02-2017
12:18 PM
|
0
|
0
|
614
|
POST
|
Hey all, I'm having trouble getting python to export a report in ArcMap 10.3. This is what I try to run: import arcpy rlf = r"D:\tool\tool_dev\Tool_Report.rlf" layer = r"D:\tool\Test_Layer.lyr" out = r"D:\tool\report.pdf" arcpy.mapping.ExportReport(layer, rlf, out) This is the output: Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> arcpy.mapping.ExportReport(layer, rlf, out) File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\utils.py", line 182, in fn_ return fn(*args, **kw) File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\mapping.py", line 524, in ExportReport assert isinstance(report_source, (MapDocument, TableView, Layer)), str(type(report_source)) AssertionError: <type 'str'> I get the same AssertionError no matter if I try to do it by command line within ArcMap, from IDLE, a new toolbox, or opening it with C:\Program Files (x86)\PYTHON27\ArcGIS10.3\python.exe. Additionally, I've tried it with background processing both on and off Any ideas?
... View more
11-02-2017
11:38 AM
|
0
|
4
|
725
|
Title | Kudos | Posted |
---|---|---|
1 | 12-28-2022 11:35 AM | |
2 | 11-10-2020 05:45 AM |
Online Status |
Offline
|
Date Last Visited |
07-13-2021
11:26 AM
|