describe problem

Discussion created by gmendieta on Sep 30, 2013
Latest reply on Oct 1, 2013 by msayler
Hi all:

Im trying to make sth as simple as it follows:

inFC = "D:\\workspace\\Arcgis\\data2\\gorka.mdb\\gorka\\road"

inDesc = arcpy.Describe( inFC )
assert ( inDesc.dataElementType == "DEFeatureClass" )
arcpy.AddMessage( "INFO: Feature Type: %s" % ( inDesc.shapeType ) )
assert ( inDesc.shapeType == "Polyline" )

Im trying to program in this way in orderto debug a geotool before make it as a toolbox. So, modifying only the next
##inFC = arcpy.GetParameterAsText( 0 )
it works perfectly, but the describe functions throws some errors.

Thanks in advance!!