ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • ヘルプ
  • Sign Out
ArcGIS Desktop

ArcGIS Online

組織のマッピング プラットフォーム

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS Developers

位置情報利用アプリの開発ツール

ArcGIS Solutions

各種業界向けの無料のテンプレート マップおよびテンプレート アプリケーション

ArcGIS Marketplace

組織で使えるアプリとデータを取得

  • ドキュメント
  • サポート
Esri
  • サイン イン
user
  • マイ プロフィール
  • サイン アウト

ArcMap

  • ホーム
  • はじめに
  • マップ
  • 解析
  • データ管理
  • ツール
  • エクステンション

SetPageSize

Production Mapping ライセンスで利用できます。

  • 概要
  • ディスカッション
  • 構文
  • コードのサンプル

概要

Changes the page size of an input map document. Choices for the sizes are the standard ArcMap layouts, as well as a custom option. The orientation can be set to portrait or landscape, and the page units can be set to ArcGIS supported units.

ディスカッション

Sometimes changes are needed for the layers or layouts of several maps (MXDs). With the SetPageSize function, you don’t have to manage and keep several MXDs synchronized on the server or desktop application. This function can also be used in conjunction with the ApplyLayoutRules function to ensure that the MXD's layout is properly preserved after changing the page size.

構文

SetPageSize (map_document, size, {orientation}, {custom_width}, {custom_height}, {page_units})
パラメーター説明データ タイプ
map_document

A variable that references a MapDocument object.

Map
size

The size the page layout can be changed to.

  • LETTER —8.5 x 11 inches
  • LEGAL —8.5 x 14 inches
  • TABLOID —11 x 17 inches
  • A5 —5.83 x 8.27 inches
  • A4 —8.27 x 11.69 inches
  • A3 —11.69 x 16.54 inches
  • A2 —16.54 x 23.39 inches
  • A1 —23.39 x 33.11 inches
  • A0 —33.11 x 46.8 inches
  • C —17 x 22 inches
  • D —22 x 34 inches
  • E —34 x 44 inches
  • CUSTOM —Enter custom values for custom_width and custom_height.
String
orientation

The orientation the page layout can be changed to. If the size argument is set to CUSTOM, the orientation parameter is ignored.

  • PORTRAIT —Orientation where the height of the display area is greater than the width. This is the default.
  • LANDSCAPE —Orientation where the width of the display area is greater than the height.
String
custom_width

The custom page width in page units. If a custom size is selected, the orientation is ignored and this value is used to set the page size.

Double
custom_height

The custom page height in page units. If a custom size is selected, the orientation is ignored and this value is used to set the page size.

Double
page_units

Specifies which ArcGIS supported page units the output extent/AOI can be when a custom page size is selected. The default is inches.

(デフォルト値は次のとおりです Inches)

String

コードのサンプル

SetPageSize example 1

This script shows how to set the page layout size by choosing an option from the ArcGIS supported sizes.

import arcpy
import arcpyproduction

# Check out Production Mapping extension
arcpy.CheckOutExtension("foundation")

# Define variables
mxd = arcpy.mapping.MapDocument(r'C:\Project\Project.mxd')

# Set the page size
arcpyproduction.mapping.SetPageSize(mxd, "LEGAL", "LANDSCAPE")

# Check in Production Mapping extension
arcpy.CheckInExtension("foundation")
SetPageSize example 2

This script shows how to set the page layout size with a custom option.

import arcpy
import arcpyproduction

# Check out Production Mapping extension
arcpy.CheckOutExtension("foundation")

# Define variables
mxd = arcpy.mapping.MapDocument(r'C:\Project\Project.mxd')

# Set the page size
arcpyproduction.mapping.SetPageSize(mxd, "CUSTOM", custom_width=60, custom_height=40, page_units="CENTIMETERS")

# Check in Production Mapping extension
arcpy.CheckInExtension("foundation")

ArcGIS Desktop

  • ホーム
  • ドキュメント
  • サポート

ArcGIS

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

Esri について

  • 会社概要
  • 採用情報
  • Esri ブログ
  • ユーザ カンファレンス
  • デベロッパ サミット
Esri
ご意見・ご感想をお寄せください。
Copyright © 2021 Esri. | プライバシー | リーガル