Résumé
The SetProduct function defines the desktop license. SetProduct returns information on the license.
Discussion
Syntaxe
SetProduct (product)
Paramètre | Explication | Type de données |
product | Product code for the product being set.
| String |
Valeur renvoyée
Type de données | Explication |
String | The function returns the status on the product license. There are four possible values:
|
Exemple de code
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)