/// <summary>
        /// Initialize a AreaPlanView element
        /// </summary>
        private void InitAreaPlanView(Autodesk.Revit.DB.Level level, Autodesk.Revit.DB.AreaScheme areaScheme)
        {
            TransactionManager.Instance.EnsureInTransaction(Document);

            var vd = CreateAreaPlan(level, areaScheme);

            InternalSetPlanView(vd);

            TransactionManager.Instance.TransactionTaskDone();

            ElementBinder.CleanupAndSetElementForTrace(Document, InternalElement);
        }
Exemple #2
0
 protected static Autodesk.Revit.DB.ViewPlan CreateAreaPlan(Autodesk.Revit.DB.Level level, Autodesk.Revit.DB.AreaScheme areaScheme)
 {
     return(Autodesk.Revit.DB.ViewPlan.CreateAreaPlan(Document, areaScheme.Id, level.Id));
 }
 /// <summary>
 /// Private constructor
 /// </summary>
 private AreaPlanView(Autodesk.Revit.DB.Level level, Autodesk.Revit.DB.AreaScheme areaScheme)
 {
     SafeInit(() => InitAreaPlanView(level, areaScheme));
 }