コード例 #1
0
 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));
     }
 }
コード例 #2
0
ファイル: ElementWrapper.cs プロジェクト: mgjean/DynamoRevit
        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));
        }