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); } }
public static RevitDB.ElementId GetStartViewId(RevitDoc document) { RevitDB.StartingViewSettings startViewSettings = RevitDB.StartingViewSettings.GetStartingViewSettings(document); return(startViewSettings.ViewId); }