📅  最后修改于: 2022-03-11 14:49:01.694000             🧑  作者: Mango
var viewSchedule = new FilteredElementCollector(document)
.OfClass(typeof(ViewSchedule))
.FirstOrDefault(e => e.Name == "MyScheduleName") as ViewSchedule;