CheckProduct (arcpy)
サマリ
Checks to see if the requested license is available.
構文
CheckProduct (product)
パラメータ | 説明 | データ タイプ |
product |
Product code for the product being checked.
| String |
データ タイプ | 説明 |
String |
There are five possible return values for CheckProduct:
|
コードのサンプル
CheckProduct example
Check to see if an ArcGIS for 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)
関連トピック
4/26/2014