Create Topology (Data Management)

License Level:BasicStandardAdvanced

Summary

Creates a topology. The topology will not contain any feature classes or rules.

Use the Add Feature Class To Topology and the Add Rule To Topology tools to add feature classes and rules to the topology.

Usage

Syntax

CreateTopology_management (in_dataset, out_name, {in_cluster_tolerance})
ParameterExplanationData Type
in_dataset

The feature dataset in which the topology will be created.

Feature Dataset
out_name

The name of the topology to be created. This name must be unique across the entire geodatabase.

String
in_cluster_tolerance
(Optional)

The cluster tolerance to be set on the topology. The larger the value, the more likely vertices will be to cluster together.

Double

Code Sample

CreateTopology stand-alone script

The following Stand-alone script demonstrates how to use the CreateTopology function.

# Name: CreateTopology_Example.py
# Description: Creates a new topology (these must reside within a feature dataset)
# Author: ESRI

# Import system modules

import arcpy
from arcpy import env
 
env.workspace = "h:/workspace"
arcpy.CreateTopology_management("d:/landuse.mdb/landuse",  "landuse_Topology")

Environments

This tool does not use any geoprocessing environments

Related Topics

Licensing Information

ArcGIS for Desktop Basic: No
ArcGIS for Desktop Standard: Yes
ArcGIS for Desktop Advanced: Yes
5/7/2015