Feature-linked annotation with expression

Discussion created by mapswae on Aug 10, 2011
I am searching for some sample code how to create a single feature-linked annotation.
I have already written a program that identifies a feature and the related annotation class and places a new annotation with some 'dummy' text at the desired coordinates. But how do I get the real textstring?
The annotation featureclass uses an expression that takes field values from the related object and adds some other text.

I searched for a method in the arcobjects framework that can build and return the resulting text and found the IAnnotationExpressionParser Interface which I think would do what I need. But I could not figure out how to use it.

Any help is welcome.

Thomas Waenke
Fugro MAPS GmbH