private void duplicateSchedules(Document detailLibrary, Document templateFile, ViewSheet sheet) { IEnumerable <ViewSchedule> viewSheets = getViewSchedulesOnSheets(sheet, detailLibrary); Dictionary <ElementId, ElementId> schedules = DuplicateViewUtils.DuplicateSchedules(detailLibrary, viewSheets, templateFile); foreach (var schedule in schedules) { this.scheduleGraphicIDMap.Add(schedule.Key, schedule.Value); } }
private void duplicateDraftingViews(Document detailLibrary, Document templateFile, ViewSheet sheet) { IEnumerable <ViewDrafting> draftingViews = getViewsOnSheets(sheet, detailLibrary); Dictionary <ElementId, ElementId> views = DuplicateViewUtils.DuplicateDraftingViews(detailLibrary, draftingViews, templateFile); foreach (var view in views) { this.draftingViewIDMap.Add(view.Key, view.Value); } //this.draftingViewIDMap = DuplicateViewUtils.DuplicateDraftingViews(detailLibrary, draftingViews, templateFile); //int numDrafting = draftingViews.Count<ViewDrafting>(); }