4

Where do I find the ObjectClassID of a feature class in an ESRI GDB?

I am asking as I am writing a script with arcpy to delete a topology rule and need to know the ObjectClassID of the associated feature classes. I feel like this should be simple but I have found no online documentation from google.

8

Try the Describe function:

arcpy.Describe("<layer name>").DSID

The manual way

  1. In the Catalog window of ArcMap, browse to the feature class.
  2. Right-click the feature class, then choose Properties.
  3. In the Feature Class Properties dialog box, click the General tab.
  4. Click the button with the ellipsis, which is next to the Name text box.

The Object Class ID dialog box indicates the feature class ID.

  • 1
    awesome! thanks! the search for online documentation of this was futile for me. it seems like a simple thing that is in a goofy place haha. – gomapping Sep 23 '16 at 16:02
1

Another way would be to check the SDE.GDB_ITEMS table. Look in the PhysicalName column for your table name, noting it may contain the schema owner or not, then the ObjectID of that row is your ObjectClassID.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.