public static Element Wrap(Autodesk.Revit.DB.ViewPlan view, bool isRevitOwned) { switch (view.ViewType) { case ViewType.CeilingPlan: return(CeilingPlanView.FromExisting(view, isRevitOwned)); case ViewType.FloorPlan: return(FloorPlanView.FromExisting(view, isRevitOwned)); case ViewType.EngineeringPlan: return(StructuralPlanView.FromExisting(view, isRevitOwned)); default: return(UnknownElement.FromExisting(view, true)); } }
public void ByLevel_BadArgs() { Assert.Throws(typeof(ArgumentNullException), () => StructuralPlanView.ByLevel(null)); }