Issue
I need to find the base view of all projected views in the drawing. I use the DrawingView.ParentView however the ParentView is nothing if the view is an isometric view. Is there a way to get the baseview?
Solution
Isometric projected views are not associated with the base views. You can see this in the browser. When you create an isometric projected view, it is not nested under the base view. Also deleting the base view does not delete the isometric view. There is no a property that could return the projected view from the base view. A solution is to check the ReferencedDocumentDescriptor.FullDocumentName property – both views should reference the same document.
The following VB .NET function uses this approach:
Private Function IsProjectedView( _
oBaseView As DrawingView, _
oIsoView As DrawingView) As Boolean
Return ((oIsoView.ViewType = _
DrawingViewTypeEnum.kProjectedDrawingViewType) _
And (oBaseView.ReferencedDocumentDescriptor.FullDocumentName _
= oIsoView.ReferencedDocumentDescriptor.FullDocumentName))
End Function