ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

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

ArcGIS Online

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

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS for Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

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

CheckProduct

  • サマリー
  • 構文
  • コードのサンプル

サマリー

Checks to see if the requested license is available.

構文

CheckProduct (product)
パラメーター説明データ タイプ
product

Product code for the product being checked.

  • arcview —ArcGIS Desktop Basic product code
  • arceditor —ArcGIS Desktop Standard product code
  • arcinfo —ArcGIS Desktop Advanced product code
  • engine —Engine Runtime product code
  • enginegeodb —Engine Geodatabase Update product code
  • arcserver — Server product code
String

戻り値

データ タイプ説明
String

There are five possible return values for CheckProduct:

  • AlreadyInitialized — License has already been set in the script.
  • Available — The requested license is available to be set.
  • Unavailable — The requested license is unavailable to be set.
  • NotLicensed — The requested license is not valid.
  • Failed — A system failure occurred during the request.

コードのサンプル

CheckProduct example

Check to see if an ArcGIS Desktop Advanced license is available.

import sys
import arcpy

arcpy.env.workspace = "c:/data/world.gdb"

if arcpy.CheckProduct("ArcInfo") == "Available":
    arcpy.PolygonToLine_management("Lakes", "LakeLines")
else:
    msg = 'ArcGIS for Desktop Advanced license not available'
    print(msg)
    sys.exit(msg)

関連トピック

  • SetProduct
  • ProductInfo
  • Python でのライセンスおよびエクステンションへのアクセス

ArcGIS Desktop

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

ArcGIS プラットフォーム

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

Esri について

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