Пример #1
0
        /// <summary>
        /// Create from existing view
        /// </summary>
        /// <param name="view"></param>
        /// <param name="isRevitOwned"></param>
        /// <returns></returns>
        internal static View3D FromExisting(Autodesk.Revit.DB.View3D view, bool isRevitOwned)
        {
            if (view == null)
            {
                throw new ArgumentNullException(nameof(view));
            }

            return(new View3D(view)
            {
                IsRevitOwned = isRevitOwned
            });
        }
Пример #2
0
 /// <summary>
 /// Private constructor
 /// </summary>
 private View3D(Autodesk.Revit.DB.View3D view)
 {
     SafeInit(() => Init3DView(view));
 }
Пример #3
0
 /// <summary>
 /// Initialize a 3d view
 /// </summary>
 private void Init3DView(Autodesk.Revit.DB.View3D view)
 {
     InternalSetView3D(view);
 }
Пример #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="view"></param>
 protected ThreeD(Autodesk.Revit.DB.View3D view)
 {
     SafeInit(() => InitView3D(view));
 }