Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working in Python 2.6 and ArcGIS 10.0 through comtypes, so I have full ArcObjects access. (See the answer I tacked onto the related question "How do I access arcobjects from python?") That makes this strictly an object model traversal question.

I have an IFeatureClass on an annotation feature class. I need to get to IAnnoClass to get the ReferenceScale property. How do I do that?

I'm guessing that it starts with the Extension property inherited from IClass, but I may be way off base. Thank you, all.

Cheers, Ti

share|improve this question
up vote 5 down vote accepted

If a feature class is an annotation class, its IFeatureClass.Extension will be a reference to the AnnotationFeatureClassExtension coclass instance. It can be directly cast to IAnnoClass interface.

In short, you are right, the Extension property will be an object which implements IAnnoClass.

share|improve this answer
Thank you, Petr. Worked like a charm. – celticflute Jan 10 '11 at 20:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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