Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

Describe method for ObjectID

$
0
0
I know how to use describe method when there is an FID field in layer's attribute table.

I use the following codes

Code:


  # describe the feature layer to access the the selected set
      desc = arcpy.Describe(lyr)
  # FIDSet will contain the selected features
      selectedFids = desc.FIDSet

But when a layer is added to a map from a GeoDatabase it has an ObjectID* fields instead of FID.

How can I describe an OBJECTID* field usng describe method?

I appreciate if somebody helps me.

Thanks

Babak

Viewing all articles
Browse latest Browse all 2485

Trending Articles