SaveSettings

サマリ

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.

構文

SaveSettings (file_name)
パラメータ説明データ タイプ
file_name

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

String

コードのサンプル

SaveSettings example

Save environment settings to an XML file.

import arcpy
from arcpy import env

env.workspace = "C:/Data/MyData.gdb"
env.cellSize = 28
env.compression = "LZ77"

# Save environment settings to XML file
#
arcpy.SaveSettings("C:/Data/MyCustomSettings.xml")

関連項目


7/10/2012