import os import arcpy file = r"somepath\pdf.pdf" if os.path.isfile(file): # exists - get a new name for the pdf file = arcpy.CreateUniqueName(file)
arcpy.env.overwriteOutput = True # or 1
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.