| 标注 | 说明 | 数据类型 | 
| 输入追踪网络 | 将导入指定追踪配置的目标追踪网络。 | Trace Network; Trace Network Layer | 
| 输入文件 (.json) | 包含要导入的指定追踪配置的 .json 文件。 | File | 
派生输出
| 标注 | 说明 | 数据类型 | 
| 已更新的追踪网络 | 更新的追踪网络。 | Trace Network | 
输入追踪网络版本必须是 2 或更高版本。
输入追踪网络参数值必须来自追踪网络服务。
当作为门户追踪网络所有者或者具有管理员角色的门户帐户进行连接时,输入追踪网络参数值可以来自作为数据库追踪网络所有者建立的数据库连接。
指定追踪配置必须位于单个 .json 文件中。
.json 文件中的信息按以下格式存储:
[
	{
		"creator": "<property representing the connected portal account on creation>",
		"name": "<property  representing the name of the named trace configuration>",
		"description": "<property representing the description of the named trace configuration>",
		"traceType": <property representing the trace type>,
		"configuration": <property representing the collection of trace configuration parameters>,
		"resultTypes": "[<property representing the types of results to return>]",
		"tags": "<property representing user provided tags>"
	}
]
使用导入追踪配置工具将指定追踪配置导入追踪网络的示例 JSON:
[
	{
		"creator": "TN_Admin",
		"name": "Connected trace HUC12",
		"description": "Connected trace for HUC12",
		"traceType": 1,
		"configuration": 
        {"{"includeBarriers":true,"validateConsistency":true,"ignoreBarriersAtStartingPoints":true,"allowIndeterminateFlow":true,
         "traversabilityScope":"junctionsAndEdges","combineUsingOr":false,"isSpecificValue":true}],"functionBarriers":[],
         "functions":[],"outputFilters":[],"outputConditions":[],}",},
		"resultTypes": "[{"type":"elements","includeGeometry":false,"includePropagatedValues":false,"networkAttributeNames":[],"diagramTemplateName":"","resultTypeFields":[]},{"type":"aggregatedGeometry","includeGeometry":false,"includePropagatedValues":false,"networkAttributeNames":[],"diagramTemplateName":"","resultTypeFields":[]}]",
  "tags": "connected,nhd,huc12"
	}
]| 标注 | 说明 | 数据类型 | 
| 输入追踪网络 | 将导入指定追踪配置的目标追踪网络。 | Trace Network; Trace Network Layer | 
| 输入文件 (.json) | 包含要导入的指定追踪配置的 .json 文件。 | File | 
| 标注 | 说明 | 数据类型 | 
| 已更新的追踪网络 | 更新的追踪网络。 | Trace Network | 
arcpy.tn.ImportTraceConfigurations(in_trace_network, in_json_file)
| 名称 | 说明 | 数据类型 | 
| in_trace_network | 将导入指定追踪配置的目标追踪网络。 | Trace Network; Trace Network Layer | 
| in_json_file | 包含要导入的指定追踪配置的 .json 文件。 | File | 
| 名称 | 说明 | 数据类型 | 
| out_trace_network | 更新的追踪网络。 | Trace Network | 
此示例脚本可将指定追踪配置导入名为 HydroTraceNetwork 的追踪网络。
import arcpy
arcpy.ImportTraceConfigurations_tn("HydroTraceNetwork", 
                                   r"c:\temp\trace_configurations.json")