サマリー
The SetProduct function defines the desktop license. SetProduct returns information on the license.
説明
構文
SetProduct (product)
パラメーター | 説明 | データ タイプ |
product | Product code for the product being set.
| String |
戻り値
データ タイプ | 説明 |
String | The function returns the status on the product license. There are four possible values:
|
コードのサンプル
SetProduct example
Sets an ArcGIS for Desktop Basic product license using the arcview module.
# Set the ArcGIS for 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)