User's Guide > Drawings > Drawing Views > Obtaining Drawing Views
Obtaining Drawing Views
Methods Introduced:
The method pfcSelection::GetSelView2D returns the selected drawing view (if the user selected an item from a drawing view). It returns a null value if the selection does not contain a drawing view.
The method pfcModel2D::List2DViews lists and returns the drawing views found. This method does not include the drawing sheet background views returned by the method pfcSheetOwner::GetSheetBackgroundView.
The method pfcModel2D::GetViewByName returns the drawing view based on the name. This method returns a null value if the specified view does not exist.
The method pfcModel2D::GetViewDisplaying returns the drawing view that displays a dimension. This method returns a null value if the dimension is not displayed in the drawing.
* 
This method works for solid and drawing dimensions.
The method pfcSheetOwner::GetSheetBackgroundView returns the drawing sheet background views.
Was this helpful?