Select to view content in your preferred language

arcpy.da.Walk: Add Annotation and Dimension to values for "type" parameter

71
0
Friday
Status: Open
AlfredBaldenweck
MVP Frequent Contributor

3.5

I'd like to be able to grab just annotation feature classes from my database using arcpy.da.Walk(). Right now, that is not possible.

Valid feature types are the following:

  • MultipatchMultipatch feature classes are returned.
     
  • MultipointMultipoint feature classes are returned.
     
  • PointPoint feature classes are returned.
     
  • PolygonPolygon feature classes are returned.
     
  • PolylinePolyline feature classes are returned.

The work around for this, then, is run a Describe() on every feature class to determine whether it is an Annotation.

The same problem exists for Dimensions.

I'm finding that you can get them if you filter to Polygons, but again, you have to run a describe or ListFields() to figure out if they're actually what you're looking for.

Please add both of them in to Walk().