ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Ayuda
  • Sign Out
ArcGIS Desktop

ArcGIS Online

La plataforma de representación cartográfica para tu organización

ArcGIS Desktop

Un completo SIG profesional

ArcGIS Enterprise

SIG en tu empresa

ArcGIS for Developers

Herramientas para crear aplicaciones basadas en la ubicación

ArcGIS Solutions

Plantillas de aplicaciones y mapas gratuitas para tu sector

ArcGIS Marketplace

Obtén aplicaciones y datos para tu organización.

  • Documentación
  • Soporte
Esri
  • Iniciar sesión
user
  • Mi perfil
  • Cerrar sesión

ArcMap

  • Inicio
  • Introducción
  • Cartografiar
  • Analizar
  • Administrar datos
  • Herramientas
  • Extensiones

CheckOutExtension

  • Resumen
  • Debate
  • Sintaxis
  • Muestra de código

Resumen

Retrieves the license from the License Manager.

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.

Debate

Sugerencia:

Solamente es necesario establecer el producto y las extensiones dentro de las secuencias de comandos independientes. Si está ejecutando las herramientas desde la ventana de Python o utilizando herramientas de secuencia de comandos, el producto ya está establecido dentro de la aplicación y las extensiones activas están basadas en el cuadro de diálogo Extensiones.

Sintaxis

CheckOutExtension (extension_code)
ParámetroExplicaciónTipo de datos
extension_code

Keyword for the extension product that is being checked.

  • 3D —Extensión 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 —Extensión de Interoperabilidad de datos para Desktop de ArcGIS.
  • Defense —Esri Defense Solution
  • Foundation —Esri Production Mapping
  • GeoStats —ArcGIS Geostatistical Analyst extension
  • Highways —Esri Roads and Highways
  • JTX —ArcGIS Workflow Manager for Desktop
  • LocationReferencing —ArcGIS Pipeline Referencing
  • Nautical —ArcGIS for Maritime: Charting
  • Network —Extensión ArcGIS Network Analyst
  • Schematics —Extensión ArcGIS Schematics
  • Spatial —Extensión ArcGIS Spatial Analyst
  • StreetMap —StreetMap Premium for ArcGIS
  • Tracking —Extensión ArcGIS Tracking Analyst
  • Licensing and extensions
String

Valor de retorno

Tipo de datosExplicación
String

There are three possible returned values for CheckOutExtension:

  • NotInitialized —No desktop license has been set.
  • Unavailable —The requested license is unavailable to be set.
  • CheckedOut —The license has been set successfully.

Muestra de código

CheckOutExtension example

Check out 3D extension for use by tools.

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

Temas relacionados

  • CheckExtension
  • CheckInExtension
  • Acceder a licencias y extensiones en Python
  • Vista general de las extensiones de ArcGIS

ArcGIS Desktop

  • Inicio
  • Documentación
  • Soporte

Plataforma ArcGIS

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

Acerca de Esri

  • Quiénes somos
  • Empleo
  • Blog de Esri
  • Conferencia de usuarios
  • Cumbre de desarrolladores
Esri
Díganos su opinión.
Copyright © 2019 Esri. | Privacidad | Legal