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
|
1
|
2
|
377
|
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
|
61
|
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
|
61
|
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
|
172
|
Online Status |
Offline
|
Date Last Visited |
11-13-2020
08:41 AM
|