# Import arcpy module import arcpy from arcpy import env import os # Overwrite pre-existing files arcpy.env.overwriteOutput = True os.environ['ESRI_SOFTWARE_CLASS']='Professional' #Added based on forum suggestion arcpy.CheckOutExtension('Spatial') #Added based on forum suggestion Input = "C:\\GIS_DATA\\FGDB.gdb\\InputPolygons" Input_Layer = "Feature_Layer" Output = "C:\\GIS_DATA\\FGDB.gdb\\OutputPoints" try: arcpy.MakeFeatureLayer_management(Input, Input_Layer, "", "", "field alias VISIBLE NONE") arcpy.FeatureToPoint_management(Input_Layer, Output, "CENTROID") except: print arcpy.GetMessages()
Failed to execute. Parameters are not valid. ERROR 000824: The tool is not licensed. Failed to execute (FeatureToPoint).
Same problem, anyone with a solution ?
Cheers
Fred