POST
|
Hello all, Trying to export some data driven pages with dynamic names on multipage PDFs. The script works but exports only the first maps pageRow for each PDF ("ADRESS" = 1000 BISON AVE). Am I misunderstanding how pageRow works? I figured it would be dynamic for each indexed feature. Image of exported PDFs below as well as the script I am using. Thanks in advance. import arcpy arcpy.env.overwriteOutput = True mxd = arcpy.mapping.MapDocument(r"\\Balboa\Maps\ModelBuilderScripts\PrePlanMapbookExport\PrePlanMapbook.mxd") ddp = mxd.dataDrivenPages strOutpath = "\\\Balboa\\Maps\\ModelBuilderScripts\\PrePlanMapbookExport\\IndividualPages\\" pageorder = mxd.dataDrivenPages.pageRow.getValue("PRE_PLAN_NUM") pageindex = mxd.dataDrivenPages.pageRow.getValue("ADDRESS") pdfname = pageorder+ "_" + pageindex + ".pdf" ddp.exportToPDF(strOutpath + pdfname, 'ALL', multiple_files="PDF_MULTIPLE_FILES_PAGE_NAME")
... View more
12-08-2021
11:22 AM
|
0
|
0
|
331
|
POST
|
Having an issue when adding any text, images or links to the "Title" or "Description" portion of the Sidebar Widget. It breaks all selectors and filters throughout the dashboard. Anyone experience something like this? (See Video)
... View more
08-12-2021
10:22 AM
|
0
|
0
|
647
|
POST
|
Hi All, I am attempting to make a simple select and zoom python script for my address points. Currently the script will complete successfully but will not select or zoom to the entered point. I am using two parameters that have been set in the Script Tool. Address_Number (Long) and Address_Name (String) which both have identical spellings/data types in Properties>>Parameters Here's the code: import arcpy
mxd = arcpy.mapping.MapDocument("CURRENT")
df = arcpy.mapping.ListDataFrames(mxd, "*")[0]
addLayer = arcpy.mapping.Layer("G:\Layers\GIS_SDE.AddressPoints.lyr")
arcpy.mapping.AddLayer(df, addLayer, "TOP")
Address_Number = arcpy.GetParameterAsText(0)
Address_Name = arcpy.GetParameterAsText(1
arcpy.SelectLayerByAttribute_management("GIS_SDE.AddressPoints", "NEW_SELECTION", "A_NBR = %Address_Number% AND ADDR = %Address_Name%")
df.zoomToSelectedFeatures() Any help is appreciated. Thanks, Jordan
... View more
03-01-2013
01:48 PM
|
0
|
2
|
818
|
Online Status |
Offline
|
Date Last Visited |
12-21-2021
10:03 AM
|