When converting a feature-linked multipart annotation to a singlepart in either the context menu within ArcMap, or with the ArcObjects interface I am left with an annotation that becomes stale.
The only way I can fix this is by moving the annotation a little bit, in this case its in follow feature mode. This also generally makes the rotation handles in the corners appear. It also populates the angle field in the annotation featureclass.
Converting to a singlepart annotation does work without error. The problem manifests when you try to edit a field such as "Angle" in the annotation featureclass. It always gives me the error "Invalid Angle". By default, upon conversion, the angle field will still say 0.
Is there some method within ArcObjects that will perform the same sort of action that moving an annotation does to "refresh" itself when converted to a singlepart?
Relevant Code snippet:
var annoFeature = feature as IAnnotationFeature2;
var element = annoFeature.Annotation;
((IMultiPartTextElement)element).ConvertToSinglePart();
feature.Store()
IFeature.Shape = IFeature.ShapeCopy
then callingIFeature.Store()
... this might trigger the same thing that moving the feature does.IFeatureChanges
, isShapeChanged
true?