Calculate Default Values (Defense Mapping)

汇总

Replaces null values in a feature class or table with the default values from the data model.

用法

语法

CalculateDefaultValues_defense (in_datasets)
参数说明数据类型
in_datasets
[in_datasets,...]

The feature classes and/or tables whose null values will be replaced with the default values from the data model.

Table View;Feature Layer

代码示例

CalculateDefaultValues (stand-alone Python script)

This stand-alone Python script calculates the default values for several feature classes in the VMap2TLM geodatabase.

# Name: CalculateDefaultValues.py
# Description: Calculates default values on a feature dataset based on default data 
# model values
# Author: ESRI
# Date: June 2010

# Import arcpy module
import arcpy

# Check out a DefenseMapping extension license
arcpy.CheckOutExtension("defense")

# Import the Defense Mapping toolbox - you may have to alter this path
arcpy.ImportToolbox("C:/Program Files/ArcGIS/Desktop10.0/ArcToolbox/Toolboxes/Defense Mapping Tools.tbx")

# Local variables
in_datasets = "C:/Data/Defense/VMap2TLM.mdb/VMap2TLM/BridgeL;C:/Data/10.0/Defense/VMap2TLM.mdb/VMap2TLM/BuildA;C:/Data/10.0/Defense/VMap2TLM.mdb/VMap2TLM/BuildL;C:/Data/10.0/Defense/VMap2TLM.mdb/VMap2TLM/BuildP;C:/Data/10.0/Defense/VMap2TLM.mdb/VMap2TLM/BuiltupA"

# Execute Calculate Default Values function
arcpy.CalculateDefaultValues_defense(in_datasets)

# Check in the Defense Mapping extension
arcpy.CheckInExtension("defense")

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcView: 否
ArcEditor: 否
ArcInfo: 需要 Defense Mapping

9/30/2010