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:
- Multipatch—Multipatch feature classes are returned.
- Multipoint—Multipoint feature classes are returned.
- Point—Point feature classes are returned.
- Polygon—Polygon feature classes are returned.
- Polyline—Polyline 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().
If nothing else that filter is completely wrong, annotations should appear under Point and dimensions under Polyline.
Well, technically annotations are actually polygons in file geodatabases. You can copy the SHAPE field into a polygon feature class to get its footprint, although that changes with its symbology. Not sure how it is for dimensions but it's probably the same.
Funnily enough, they used to be lines in coverages, but that was most likely because the symbology and size of them was determined in the map instead of at the database level.
Edit: actually yeah dimensions function the same
So yeah I understand the technical reason annotations and dimensions are being returned as polygons, but we really should be able to filter for them specifically.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.