ArcGIS Desktop

  • Documentation
  • Support

  • 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 for 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

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Update Data Frames

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Adjusts the size of the data frames in the map document based on the product type.

Usage

  • This tool is used to update the height and width of the auxiliary data frames in a map document. It is used by the Create Rapid Graphic tool to get the data frames as close to specification as possible.
  • If you have a map document where the data frames are not the proper size, run this tool to resize the frames without altering their scale.

    Note:

    This tool must be run on a map document file that is not currently open in a session of ArcMap.

Syntax

UpdateDataFrames_defense (Input_Map_Document, Product_Type)
ParameterExplanationData Type
Input_Map_Document

The map document file that will be updated. This must be the path to a map document and not a map document object.

ArcMap Document
Product_Type

The supported product types for this tool are the following:

  • MDG50_MGCP —Elevation Guide box for an MDG50_MGCP product
  • MDG100_MGCP —Elevation Guide box for an MDG100_MGCP product
  • MDG50_TLM —Elevation Guide box for an MDG50_TLM product
  • MDG100_TLM —Elevation Guide box for an MDG100_TLM product
  • LDG50_NSG —Elevation Guide box for an LDG50_NSG product
  • LDG100_NSG —Elevation Guide box for an LDG100_NSG product
  • JOG_A —Elevation Guide box for a JOG_A product
String

Code sample

UpdateDataFrames example

The following code sample demonstrates how to execute UpdateDataFrames.

# Importing defense from arcpy module
from arcpy import defnese

# Setting path to mxd
mxd=r'C:\Data\MDG50_TRD_4_0.mxd'

# Calling Update Data Frames tool
defense.UpdateDataFrames(mxd,"MDG50_MGCP")

Environments

  • Scratch Workspace

Licensing information

  • ArcGIS Desktop Basic: No
  • ArcGIS Desktop Standard: Requires Defense Mapping
  • ArcGIS Desktop Advanced: Requires Defense Mapping

Related topics

  • An overview of the Utilities toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

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