Select to view content in your preferred language

How to create new annotation feature ?

735
2
10-16-2017 06:52 AM
tanerkoka
Frequent 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)
0 Kudos
2 Replies
CraigWilliams
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.

0 Kudos
tanerkoka
Frequent 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.

0 Kudos