POST
|
I am having the same problem. Did you get any luck??
... View more
06-08-2020
10:00 AM
|
0
|
1
|
159
|
POST
|
Thanks Jeff, what you mentioned is what I ended up doing. Glad to know it has been addressed in 2.5
... View more
06-08-2020
10:00 AM
|
0
|
0
|
37
|
POST
|
Hi all, I am trying to automate PDF map production using arcpy for ArcGIS Pro. My idea is to create a custom tool that can be run from ArcGIS Pro with no manual input. This Map Book will be composed by first page showing Overview and rest of the pages showing Detailed Data and the visibility of the layers between Overview/Detailed Data pages. So far I have tried the following: Loop cursor to export Overview and Detailed Data pages, then use of 'arcpy.CreatePFDocument' and '<pdfDoc>.appendPages' to merge all the PDF pages. Map Series creating a Feature Class composed by both Overview and Detailed Data extents. For both I have found the following impediments: Loop cursor: Unable to merge PDF pages while maintaining layers (layers shown on PDF viewer Layer's panel as shown on the attached image) - Also tried PyPDF2 Library to merge them without success. Map Series: Unable to make Map Series to be dynamic and automated (enabling Map Series Class to be True and choosing the Index Layer and Field Properties to be the Page Number from the script). The only way I found to automate this is by letting the user refresh the Map Series bottom within the application while running the tool (This was still causing issues with layers representation within the Map Frame). Even though I was able to minimize the export to PDF to be just an Overview 'PDF Lot' and a Detailed 'PDF Lot' so I only have to merge two PDFs, I still have the same issue as I had with Loop Cursor (no Layers shown on PDF viewer) Is there anyway to export Map Series with different visibility settings and symbols for each of the Map Series pages? This would avoid needing to export different pages at different stages within the script and merging them at the end. Any thoughts about how to optimize it would be really appreciated. Thanks, Ana
... View more
12-05-2019
07:18 AM
|
0
|
0
|
98
|
POST
|
Hi all, Does anybody know how to merge two PDFs using Python while maintaning layers as shown on the attached picture? I am using arcpy for ArcGIS Pro to export an 'Overview' PDF and a 'Detailed Location' PDF. Both PDFs contain the layers once they're opened on PDF viewer. However, when I merge both PDF 'lots' within a single 'Map Book' PDF using 'arcpy.PDFDocumentCreate' and '<pdfDoc>.appendPages', those layers are lost. I have also tried PdfFileMerger within PyPDF2 Library without success, Any thoughts? Thanks, Ana
... View more
12-05-2019
06:46 AM
|
0
|
0
|
88
|
POST
|
Hi community, I have a question relating to custom symbols in ArcGIS Pro within a script. I have created some custom symbols and I am able to use 'applySymbolFromGallery' and direct it to the symbol I want when it is located within my Favourites Styles folder on my local path. However, when I try to store these symbols within a path that multiple users can access, the script doesn't seem to locate these files even though if I run that part of the script within the Python Pane on ArcGIS Pro, it works. Could anyone help? It is also appreciated if you could share ideas with me as to how you share styles with multiple users using ArcGIS Pro. Thanks
... View more
11-25-2019
12:45 AM
|
0
|
0
|
44
|
POST
|
Hi Zachary, were you able to relate the stylx file within the script? I am trying to access custom symbols stored within a shared drive so that multiple users are able to use a script tool; however, the script doesn't seem to be able to identify that style file when I try to use 'item.symbol.applySymbolFromGallery'.
... View more
11-25-2019
12:36 AM
|
0
|
0
|
125
|
POST
|
Hi community, I am having problems to show the a Feature Layer label while exporting a Layout to a PDF File using a script tool on ArcGIS Pro. As below, I've set the Label Class and expression, which seems to work on the application; however, when running this script which is producing a Map Book PDF the label for that feature is not shown until the Map Book PDF is exported. # Create XY Coordinates Labels XYCoordinates.showLabels = True if XYCoordinates.supports( "SHOWLABELS" ): XYCoordinatesLblClass = XYCoordinates.listLabelClasses()[ 0 ] XYCoordinatesLblClass.expression = """'<FNT size="24">' + round($feature.POINT_X) + " " + round($feature.POINT_Y) + '</FNT>'""""" XYCoordinatesLblClass.visible = True Is anyone having the same issue? I am also showing the GridIndexFeature labels produced by the Grid Index Features without a problem; so have no ideas as to why this specific one is not being shown until the PDF is produced. Many thanks, Ana
... View more
11-11-2019
09:48 AM
|
0
|
2
|
179
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|