ClearEnvironment

この ArcGIS 3.1 ドキュメントはアーカイブされており、今後更新されません。 コンテンツとリンクが古い場合があります。 最新のドキュメントをご参照ください

サマリー

Resets a specific environment setting to its default.

構文

ClearEnvironment (environment_name)
パラメーター説明データ タイプ
environment_name

The name of the environment setting that will be reset to its default setting.

String

コードのサンプル

ClearEnvironment example

Sets the specified environment setting back to its default.

import arcpy

arcpy.env.workspace = "c:/data/world.gdb"

# prints c:/data/world.gdb
print(arcpy.env.workspace)

arcpy.ClearEnvironment("workspace")

# prints None
print(arcpy.env.workspace)

関連トピック