public static GCLevel CreateLevel(GCRevitDocument doc, double elev) { #if (REVIT2015) Level lev = doc.Document.Create.NewLevel(elev); #else var lev = Level.Create(doc.Document, elev); #endif return(GCLevel.CreateGCLevel(lev)); }
public static List <GCLevel> CreateLevels(GCRevitDocument doc, List <double> elevs) { var levs = new List <GCLevel>(); foreach (var elev in elevs) { #if (REVIT2015) Level lev = doc.Document.Create.NewLevel(elev); #else var lev = Level.Create(doc.Document, elev); #endif levs.Add(GCLevel.CreateGCLevel(lev)); } return(levs); }