ViewPlan.SetUnderlayRange
Description:
Sets the underlay base and underlay top to the specified levels.
Sets the underlay base and underlay top to the specified levels.
-
baseLevelIdThe element id of a level in the project or InvalidElementId. If InvalidElementId, then the underlay base level is not set and no elements will be displayed as underlay.
-
topLevelIdThe element id of a level in the project or InvalidElementId. If InvalidElementId, then the underlay range is unbounded.
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);
}
}
-
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.
-
A non-optional argument was NULL