Skip To Content

Disable COGO

Summary

Disables COGO on a line feature class. Existing COGO fields can be deleted.

Usage

  • Disables the following COGO fields on the selected line feature class: ArcLength, Direction, Distance, Radius, and Radius2. These fields can be deleted.

  • Removes COGO-related labeling and symbology from the selected line feature class.

  • If there are no COGO fields on a line feature class, the Traverse tool will not store any entered dimensions.

    Learn more about the Traverse tool

  • COGO fields can be enabled with the Enable COGO tool.

Syntax

DisableCOGO_management (in_line_features)
ParameterExplanationData Type
in_line_features

The line feature class that will have COGO disabled.

Feature Layer

Code sample

DisableCOGO example (Python window)

The following Python window script demonstrates how to use the DisableCOGO tool in immediate mode.

import arcpy
arcpy.env.workspace = r"E:\ArcGISXI\Mont\Montgomery.gdb"
arcpy.DisableCOGO_management("Landbase\Road_cl")
DisableCOGO example 2 (stand-alone script)

The following stand-alone script demonstrates how to check for and disable COGO on a line feature class.

import arcpy

#Variable to contain the path of the feature class that will have COGO disabled
lineFeatureClass = r"d:\test.gdb\myLineFC"

#Check to see if the feature class is already COGO enabled by using .isCOGOEnabled on a Describe
if arcpy.Describe(lineFeatureClass).isCOGOEnabled == True:
    #If it returns True, run DisableCOGO_management and pass the feature class
    arcpy.DisableCOGO_management(lineFeatureClass)
else:
    print("{} is not COGO Enabled".format(lineFeatureClass))

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • ArcGIS Desktop Basic: No
  • ArcGIS Desktop Standard: Yes
  • ArcGIS Desktop Advanced: Yes

Related topics