Select to view content in your preferred language

ERROR 000824: The tool is not licensed.  in arcpy.Contour_3d

1981
4
Jump to solution
11-16-2012 11:01 AM
GualbertoHernández_Juárez
Emerging Contributor
I am using "arcpy.Contour_3d" and get an error, and review in detail the parameters and apparently all is well I hope you can help me

thank you very much



# -*- coding: utf-8 -*- # --------------------------------------------------------------------------- # test contours.py # Created on: 2012-11-16 14:51:29.00000 #   (generated by ArcGIS/ModelBuilder) # Description:  # ---------------------------------------------------------------------------  # Import arcpy module import arcpy  # Check out any necessary licenses arcpy.CheckOutExtension("3D")   # Local variables:  sde_SDE_time0__3_ = "Database Connections\\Coneccion local SDE.sde\\sde.SDE.time0" time1 = "Database Connections\\Coneccion local SDE.sde\\time1"   # Process: Contour arcpy.Contour_3d(sde_SDE_time0__3_, time1, "2", "0", "1")



I get:


  File "C:\Program Files (x86)\ArcGIS\Desktop10.1\arcpy\arcpy\ddd.py", line 3612, in Contour
    raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000824: The tool is not licensed.
Failed to execute (Contour).
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
curtvprice
MVP Alum
If the checkout fails, it doesn't generate an error.

You will see the result if you enter:

print arcpy.CheckOutExtension("3D")


See the example code in the help for CheckOutExtension-- it has a nice example of how to check whether the license was successfully acquired.

View solution in original post

0 Kudos
4 Replies
curtvprice
MVP Alum
If the checkout fails, it doesn't generate an error.

You will see the result if you enter:

print arcpy.CheckOutExtension("3D")


See the example code in the help for CheckOutExtension-- it has a nice example of how to check whether the license was successfully acquired.
0 Kudos
GualbertoHernández_Juárez
Emerging Contributor
Thanks Curtis,

Effectively I have not the license "3D Analyst" available.
Use spatial analysis

Gualberto
0 Kudos
curtvprice
MVP Alum
De nada.

For the record, this is exactly the same tool, licensed under Spatial Analyst or 3D Analyst.
0 Kudos
GualbertoHernández_Juárez
Emerging Contributor
Hi Curtis,

All the above is to make animate the contours generated using "time slider".

In the process, I get 120 raster and get the contours of all, after using arcpy.Merge_management, integrated all into one and finally add the field time to use "time slider". I've done it but the process is very slow,

You know if there is another method to do the same and help me optimize time?, Already with other tools, I'll be pending comments.

Finally I need to animate the time, of the 120 contours

Gualberto
0 Kudos