编辑SDE注记图层AnnotationLayer,修改注记后,注记图层不显示了(编辑本地数据库中的数据没有这个问题)
自己写的注记编辑Tool,选择注记要素后,弹出注记编辑窗体,如下图:
然后应用编辑并刷新视图后,注记图层不显示了,入下图:
应用编辑的代码:
ITextElement pTextElement = this.AnnotationFeature.Annotation as ITextElement;
pTextElement.Text = this.txtTextString.Text;
pTextElement.Symbol = pTextSymbol;
this.AnnotationFeature.Annotation = pTextElement as IElement;
IFeature pFeature = this.AnnotationFeature as IFeature;
pFeature.Store();
然后应用编辑并刷新视图后,注记图层不显示了,入下图:
应用编辑的代码:
ITextElement pTextElement = this.AnnotationFeature.Annotation as ITextElement;
pTextElement.Text = this.txtTextString.Text;
pTextElement.Symbol = pTextSymbol;
this.AnnotationFeature.Annotation = pTextElement as IElement;
IFeature pFeature = this.AnnotationFeature as IFeature;
pFeature.Store();
1 个回复
朱新颖
赞同来自:
2,开启SDE编辑会话用的什么方法?
要回复问题请先登录或注册