The feature classes and/or tables whose null values will be replaced with the default values from the data model.
Dataset; Feature Layer; Table View
派生输出
名称
说明
数据类型
out_dataset
Output dataset where attributes were updated.
Table View; Feature Layer; Dataset
代码示例
CalculateDefaultValues example (stand-alone script)
This stand-alone script calculates the default values for several feature classes in the TDS geodatabase.
# Name: CalculateDefaultValues_sample.py
# Description: Use the Calculate Default Values tool to replace null values with their appropriate default data model values
# Import System Modules
import arcpy
# Setting Local Variables
in_features = [r'C:\Temp\Test.gdb\StructurePoints', r'C:\Temp\Test.gdb\StructurePolygons']
# Use the Calculate Default Values tool to replace null values and print the result
arcpy.topographic.CalculateDefaultValues(in_features)