Message 1 of 5
OwnerViewId doesn't report Dependent view Id of annotation element

Not applicable
04-25-2016
07:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?