メッセージ1/5
OwnerViewId doesn't report Dependent view Id of annotation element

適用対象外
04-25-2016
07:59 AM
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- パーマリンクを表示
- 印刷
- 報告
Hello,
We have multiple tools in need of getting the Id of the dependent view that an annotation is on such as symbols and revision clouds. Currently, the parent view is reported regardless of whether the annotation is created in the parent view or the dependent view. You can use this code to test:
public void getOwnerViewId() { Reference picked = this.ActiveUIDocument.Selection.PickObject(ObjectType.Element, "Pick Annotation"); Element e = this.ActiveUIDocument.Document.GetElement(picked); TaskDialog.Show("id",e.OwnerViewId.IntegerValue.ToString()); }
How can I easily retrieve the Id of the dependent view? Is it possible we need a new element property for this or does the Element.OwnerViewId functionality need to be changed?