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 for 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

CheckInExtension

  • Zusammenfassung
  • Syntax
  • Codebeispiel

Zusammenfassung

Returns the license to the License Manager so other applications can use it.

Once the extension license has been retrieved by the script, tools using that extension can be used. Once a script is finished with an extension's tools, the CheckInExtension function should be used to return the license to the License Manager so other applications can use it. All checked-out extension licenses and set product licenses are returned to the License Manager when a script completes.

Syntax

CheckInExtension (extension_code)
ParameterErklärungDatentyp
extension_code

Keyword for the extension product that is being checked.

  • 3D —Erweiterung "ArcGIS 3D Analyst"
  • Aeronautical —ArcGIS for Aviation: Charting
  • Airports —ArcGIS for Aviation: Airports
  • ArcScan —ArcScan
  • Bathymetry —ArcGIS for Maritime: Bathymetry
  • Business —ArcGIS Business Analyst
  • DataReviewer —ArcGIS Data Reviewer for Desktop
  • DataInteroperability —Erweiterung "ArcGIS Data Interoperability for Desktop"
  • Defense —Esri Defense Solution
  • Foundation —Esri Production Mapping
  • GeoStats —Erweiterung "ArcGIS Geostatistical Analyst"
  • Highways —Esri Roads and Highways
  • JTX —ArcGIS Workflow Manager for Desktop
  • LocationReferencing —ArcGIS Pipeline Referencing
  • Nautical —ArcGIS for Maritime: Charting
  • Network —Erweiterung "ArcGIS Network Analyst"
  • Schematics —Erweiterung "ArcGIS Schematics"
  • SMPAsiaPacific —StreetMap Premium Asia Pacific
  • SMPEurope —StreetMap Premium Europe
  • SMPJapan —StreetMap Premium Japan
  • SMPLatinAmerica —StreetMap Premium Latin America
  • SMPMiddleEastAfrica —StreetMap Premium Middle East Africa
  • SMPNorthAmerica —StreetMap Premium North America
  • Spatial —Erweiterung "ArcGIS Spatial Analyst"
  • Tracking —Erweiterung "ArcGIS Tracking Analyst"
  • Licensing and extensions
String

Rückgabewert

DatentypErklärung
String

There are three possible returned values for CheckInExtension:

  • NotInitialized —No desktop license has been set.
  • Failed —A system failure occurred during the request.
  • CheckedIn — The license has been returned successfully.

Codebeispiel

CheckInExtension example

Return 3D extension license to License manager.

import arcpy

class LicenseError(Exception):
    pass

try:
    if arcpy.CheckExtension("3D") == "Available":
        arcpy.CheckOutExtension("3D")
    else:
        # raise a custom exception
        raise LicenseError

    arcpy.env.workspace = "c:/GrosMorne"
    arcpy.HillShade_3d("WesternBrook", "wbrook_hill", 300)
    arcpy.Aspect_3d("WesternBrook", "wbrook_aspect")
    arcpy.CheckInExtension("3D")

except LicenseError:
    print("3D Analyst license is unavailable")
except arcpy.ExecuteError:
    print(arcpy.GetMessages(2))

Verwandte Themen

  • CheckExtension
  • CheckOutExtension
  • Zugreifen auf Lizenzen und Erweiterungen in Python
  • Überblick über die ArcMap-Erweiterungen

ArcGIS Desktop

  • Startseite
  • Dokumentation
  • Support

ArcGIS Plattform

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

Über Esri

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