RudinA

ArcPy Layer Class dataType values

Discussion created by RudinA on Nov 9, 2011
Latest reply on Nov 11, 2011 by Hornbydd
On the Arcpy.mapping.Layer class help, it explains that ArcMap layers have a dataType property that stores a layer's source 'Type' like Shapefile, or Geodatabase, or SDE, Raster, etc.  I would like to see a full list of possible values for this dataType property but can't seem to find it in the help.  Anyone know where it is?  http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Layer_properties/000v0000002t000000/

For now, I mainly need to know how to specifically identify layers who sources are shapefile, personal geodatabase, file geodatabase, or SDE, since I'll need to handle each of these categories in different ways.  Also need to identify if a standalone table in an MXD is dbf, personal geodatabase, file geodatabase, or SDE.  Would be nice to be able to do this without having to create some complex string search on the layers datasource.

Thanks for any help

-Andrew

Outcomes