SaveSettings (arcpy)

Récapitulatif

Saves environment settings to an environment settings file (text stored in an Extensible Markup Language [XML] schema). See also LoadSettings on how to load environment settings from an XML file.

Syntaxe

SaveSettings (file_name)
ParamètreExplicationType de données
file_name

The XML file to be created that will store the current environment settings.

String

Exemple de code

SaveSettings example

Save environment settings to an XML file.

import arcpy

arcpy.env.workspace = "c:/data/mydata.gdb"
arcpy.env.cellSize = 28
arcpy.env.compression = "LZ77"

# Save environment settings to XML file
arcpy.SaveSettings("c:/data/mycustomsettings.xml")

Thèmes connexes

4/26/2014