Select to view content in your preferred language

Update AnnotationFeature graphic

214
0
03-25-2024 10:21 AM
DanielRoth
Esri Contributor

I want to make updates on an AnnotationFeature's Graphic. For that I use this pattern:

 

var graphic = annotationFeature.GetGraphic() as CIMTextGraphic
graphic.Shape = someGeometry;
annotationFeature.SetGraphic(graphic)
annotationFeature.Store()
ActiveMapView.Invalidate(..);

 

I want the annotation to reflect my edits instantly but without the annotationFeature.Store(). For every update on the graphic Store() creates Add-/Delete rows in a versioned geodatabase.

What I want to achieve is to update the Annotation's graphic in some sort of sketch operations and then commit the operations in a single edit operation. Tnanks.

0 Kudos
0 Replies