Excellent. Thank you Chris, I'll give this a shot..
The easiest way is using IFeatureEdit.MoveSet().
Likewise for rotations, use IFeatureEdit.RotateSet().
The issue, as you've seen, is that the anno shape is just the bounding polygon. This is true for both anno text and anno used to store graphics. The actual text/graphic is stored in the element blob field. So either use the *Set() methods, or move the polygon and element separately.
e.g.
var fedit = feature as IFeatureEdit;
var set = new SetClass();
set.Add(fedit);
var vector = new LineClass();
vector.FromPoint = ...;
vector.ToPoint = ...;
fedit.MoveSet(set, vector);
Anyone else been able to successfully move annotation using arcobjects? I'm trying to create an ArcMap add-in where geodatabase annotation can be selected and aligned with other features (annotation, lines, etc). I'm running into the same issue as Wes - I can move the polygon but not the text.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.