public static View3D Wrap(Autodesk.Revit.DB.View3D view, bool isRevitOwned) { if (view.IsPerspective) { return(PerspectiveView.FromExisting(view, isRevitOwned)); } else { return(AxonometricView.FromExisting(view, isRevitOwned)); } }
public static AbstractView3D Wrap(Autodesk.Revit.DB.View3D view, bool isRevitOwned) { if (view.IsTemplate) { return(Revit.Elements.Views.View3D.FromExisting(view, isRevitOwned)); } if (view.IsPerspective) { return(PerspectiveView.FromExisting(view, isRevitOwned)); } return(AxonometricView.FromExisting(view, isRevitOwned)); }