コード例 #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);
     }
 }
コード例 #2
0
 public static RevitDB.ElementId GetStartViewId(RevitDoc document)
 {
     RevitDB.StartingViewSettings startViewSettings = RevitDB.StartingViewSettings.GetStartingViewSettings(document);
     return(startViewSettings.ViewId);
 }