ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

DisableDataFrameClipping

Available with Production Mapping license.

  • Summary
  • Discussion
  • Syntax
  • Code sample

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

  • ClipDataFrameToGeometry
  • Introduction to arcpyproduction.mapping

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal