ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Hilfe
  • Sign Out
ArcGIS Desktop

ArcGIS Online

Die Mapping-Plattform für Ihre Organisation

ArcGIS Desktop

Ein vollständiges professionelles GIS

ArcGIS Enterprise

GIS in Ihrem Unternehmen

ArcGIS Developers

Werkzeuge zum Erstellen standortbezogener Apps

ArcGIS Solutions

Kostenlose Karten- und App-Vorlagen für Ihre Branche

ArcGIS Marketplace

Rufen Sie Apps und Daten für Ihre Organisation ab.

  • Dokumentation
  • Support
Esri
  • Anmelden
user
  • Eigenes Profil
  • Abmelden

ArcMap

  • Startseite
  • Erste Schritte
  • Karte
  • Analysieren
  • Verwalten von Daten
  • Werkzeuge
  • Erweiterungen

SetProduct

  • Zusammenfassung
  • Auswertung
  • Syntax
  • Codebeispiel

Zusammenfassung

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

Ältere Versionen:

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.

Auswertung

Tipp:

Die Einstellung des Produkts und der Erweiterungen ist nur innerhalb eigenständiger Skripte erforderlich. Wenn Sie Werkzeuge im Python-Fenster ausführen oder Skriptwerkzeuge verwenden, wird das Produkt bereits in der Anwendung festgelegt und die aktiven Erweiterungen basieren auf dem Dialogfeld "Erweiterungen".

Syntax

SetProduct (product)
ParameterErklärungDatentyp
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

Rückgabewert

DatentypErklärung
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.

Codebeispiel

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)

Verwandte Themen

  • CheckProduct
  • ProductInfo
  • Zugreifen auf Lizenzen und Erweiterungen in Python

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

Über Esri

  • Über uns
  • Karriere
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Wir sind an Ihrer Meinung interessiert.
Copyright © 2021 Esri. | Datenschutz | Rechtliches