View |
| Exception | Condition |
|---|---|
| ArgumentException | The ElementId baseLevelId does not correspond to a Level in the project. -or- The ElementId topLevelId does not correspond to a Level in the project. -or- The elevation of level topLevelId must be greater than the elevation of level baseLevelId. |
| ArgumentNullException | A non-optional argument was null |
private void ViewUnderlay(ViewPlan planView, ElementId topLevelId, ElementId baseLevelId) { if (planView.GetUnderlayOrientation() == UnderlayOrientation.LookingDown) { if (planView.GetUnderlayTopLevel() != topLevelId) { planView.SetUnderlayRange(baseLevelId, topLevelId); } planView.SetUnderlayOrientation(UnderlayOrientation.LookingUp); } }