DisableDataFrameClipping (arcpyproduction.mapping)

Summary

Removes any existing clipping setting on the data frame.

Discussion

This function performs the same operation as opening the Data Frame Properties dialog box in ArcMap and changing the Clip Options setting to No Clipping.

Syntax

DisableDataFrameClipping (data_frame)
ParameterExplanationData Type
data_frame

The DataFrame object for which to disable clipping.

DataFrame

Code Sample

DisableDataFrameClipping example 1

This example changes the clipping option to No Clipping for the specified data frame.

import arcpy
import arcpyproduction

# Check out Production Mapping license
arcpy.CheckOutExtension("Foundation")

# Define the data frame object and the grid extent as the geometry
mxd = arcpy.mapping.MapDocument(r"C:\Project\Grids\AustinEast.mxd")
df = arcpy.mapping.ListDataFrames(mxd)[0]

# Clip the DataFrame object using the first grid geometry in the dataset
arcpyproduction.mapping.DisableDataFrameClipping(df)
mxd.save()

# Check in extension
arcpy.CheckInExtension("Foundation")

Related Topics

6/8/2015