Auto create feature linked anno via arcobjects .net

446
0
11-05-2021 02:38 PM
JoshPritt
New Contributor III

I have a simple ICommand/Addin button in ArcMap 10.6.1 that simply creates point features in my ServicePoint feature class and populates the subtype and attributes including the HOUSENUMBER field that drives the Feature-linked annotation in ServicePointAnno anno class. When we place a new ServicePoint on the map in ArcMap with the HOUSENUMBER preset it auto-creates the ServicePointAnno as we expect just fine right next to it. BUT when we use arcobjects in our add-in and use IFeatureClass.CreateFeature() to create it, then set the geometry point and all the attributes including subtype and HOUSENUMBER, then call IFeature.Store() it creates the point on the map just fine, we can see all the attributes are set correctly, but it does NOT auto-create the feature-linked anno!  Is there another function/method/object we have to call to tell it to auto-create feature linked anno that arcmap.exe might be calling?

Is this a bug in ArcObjects or is this feature linked anno auto-creation only valid if you place the features manually in ArcMap?

0 Kudos
0 Replies