How to create new annotation feature ?

303
2
10-16-2017 06:52 AM
Highlighted
Occasional Contributor

Hi,

I have AnnotationLayer and polygon geometry, how can I create new graphic polygon element and store to new annotation feature(create new annotation)? Can you help me ?There is no any example .

Thanks.

Tags (1)
Reply
0 Kudos
2 Replies
Highlighted
Esri Contributor

Annotation in ArcGIS Pro only supports Text Graphics and the current released version doesn't have SDK abilities to update annotation.  Annotation SDK support is coming at the 2.1 release.

Reply
0 Kudos
Highlighted
Occasional Contributor

Thanks Craig,

Do you have any information about when to release ArcGIS Pro SDK 2.1? And can it create an annotation with the (polygon, polyline, text) element or group element ( like below Arcobjects annotation in picture) in it in Pro SDK 2.1? İf not, are there any alternative way to store this kind of elements in Pro SDK ?

ArcObjects:

sembol

IFeatureLayer featureLayer=Utility.GetAnnotationFeatureLayer("ANNOTATIONFC", map);

IFeature feature = featureLayer.FeatureClass.CreateFeature();

(feature as IAnnotationFeature).Annotation = groupElement as IElement;

feature.Store();

Best Regards.

Reply
0 Kudos