Exemplo n.º 1
0
 public static RevitDB.ElementId SetStartViewId(RevitDoc document, RevitDB.ElementId viewId)
 {
     RevitDB.StartingViewSettings startViewSettings = RevitDB.StartingViewSettings.GetStartingViewSettings(document);
     if (startViewSettings.IsAcceptableStartingView(viewId))
     {
         return(startViewSettings.ViewId = viewId);
     }
     else
     {
         return(null);
     }
 }
Exemplo n.º 2
0
 public static RevitDB.ElementId GetStartViewId(RevitDoc document)
 {
     RevitDB.StartingViewSettings startViewSettings = RevitDB.StartingViewSettings.GetStartingViewSettings(document);
     return(startViewSettings.ViewId);
 }