AnsweredAssumed Answered

Exporting Layouts from Multivalue Parameter

Question asked by MatthewAdam on Nov 20, 2018
Latest reply on Nov 20, 2018 by MatthewAdam

How's it going Hive Mind? So I decided to try and make a tool in ArcGIS Pro to let the user easily export selected layouts to individual pdfs. So far I have it set to pick out the project names and folder path, but I cannot seem to figure out how to get my script to recognize the layouts selected in the parameter. The parameter is set as follows:

Label - Input Layers

Name - paramin

Data Type - [Layout] - multivalue

Type - Required

Direction - Input


I'm definitely missing something. This is one of my first attempts to get back into Python since college, so sorry if I'm being ignorant. Any ideas?


# Specify that PDF files can be overwritten
arcpy.env.overwriteOutput = True

## Define variables
# Project File
aprx ="CURRENT")
# Workspace
workspace = os.getcwd()
# Main Directory
maindir = os.path.dirname(workspace)
# Project Name
prjname = os.path.basename(os.path.dirname(maindir))

# Print Check
arcpy.AddMessage (maindir)
# PDF Directory Check
if not os.path.exists(maindir+"\\PDF\\"):
arcpy.AddMessage ("PDF PATH VERIFIED")