ArcGIS Desktop

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

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

ArcGIS Online

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

ArcGIS Desktop

完全なプロ仕様の GIS

ArcGIS Enterprise

エンタープライズ GIS

ArcGIS for Developers

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

ArcGIS Solutions

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

ArcGIS Marketplace

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

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

ArcMap

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

SetProduct

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

サマリー

The SetProduct function defines the desktop license. SetProduct returns information on the license.

レガシー:

The product level should be set by importing the appropriate product module (arcinfo, arceditor, arcview, arcserver, arcenginegeodb, or arcengine) prior to importing arcpy. The SetProduct function is a legacy function and cannot set the product once arcpy has been imported.

For scripts using the arcgisscripting module, the equivalent SetProduct method is still supported.

説明

ヒント:

製品とエクステンションの設定は、スタンドアロン スクリプト内でのみ必要です。Python ウィンドウからツールを実行する場合や、スクリプト ツールを使用する場合は、製品はアプリケーション内ですでに設定されており、アクティブなエクステンションは [エクステンション] ダイアログ ボックスに基づいて決められます。

構文

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

Product code for the product being set.

  • 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

The function returns the status on the product license. There are four possible values:

  • CheckedOut —License successfully set.
  • AlreadyInitialized —License has already been set.
  • NotLicensed —The license is not valid or available.
  • Failed —A system failure occurred during the set request.

コードのサンプル

SetProduct example

Sets an ArcGIS Desktop Basic product license using the arcview module.

# Set the ArcGIS Desktop Basic product by importing the arcview module.
import arcview
import arcpy

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

arcpy.CreateRasterDataset_management(
    arcpy.env.workspace, "LandUse", "30", "8_BIT_UNSIGNED",
    "Freeways", 1)

関連トピック

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

ArcGIS Desktop

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

ArcGIS プラットフォーム

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

Esri について

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