ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

SaveSettings

  • Summary
  • Syntax
  • Code sample

Summary

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.

Syntax

SaveSettings (file_name)
ParameterExplanationData Type
file_name

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

String

Code sample

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")

Related topics

  • LoadSettings

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal