sonj

Annotation Boundary

Discussion created by sonj on Jun 25, 2018
Latest reply on Jun 27, 2018 by sonj

How can extract actual annotation boundaries rather than Feature geometry. Using IQueryGeometry tried but it is throwing an error "Value does not fall within the expected range". Could you please suggest.

 


Snippet

while ((feature = featurecursor.NextFeature()) != null) {     IAnnotationFeature annofeature = feature as IAnnotationFeature;       IElement element = annofeature.Annotation;     ITextElement textelement = element as ITextElement;     ITextSymbol textsymbol = textelement.Symbol;                      try    {                             IQueryGeometry querygeometry = textsymbol as IQueryGeometry;         IGeometry geo = querygeometry.GetGeometry(screendisplay.hDC, displaytransformation, element.Geometry );                                             }     catch (Exception ex)     {         MigrationMessage.Message(ex.Message, "boundary"MessageBoxIcon.Error);     } }

Outcomes