static void ProcessSectionSheets(SolidEdgeDraft.SectionSheets sectionSheets) { SolidEdgeDraft.Sheet sheet = null; for (int i = 1; i <= sectionSheets.Count; i++) { sheet = sectionSheets.Item(i); Console.WriteLine("\tSheet.Name: {0}", sheet.Name); } }
static void ProcessWorkingSectionDrawingViews(SolidEdgeDraft.Section section) { Console.WriteLine("--> {0}", System.Reflection.MethodBase.GetCurrentMethod().ToString()); SolidEdgeDraft.SectionSheets sectionSheets = null; SolidEdgeDraft.Sheet sheet = null; SolidEdgeDraft.DrawingViews drawingViews = null; SolidEdgeDraft.DrawingView drawingView = null; if (section.Type == SolidEdgeDraft.SheetSectionTypeConstants.igWorkingSection) { sectionSheets = section.Sheets; for (int i = 1; i <= sectionSheets.Count; i++) { sheet = sectionSheets.Item(i); Console.WriteLine("\tSheet.Name: {0}", sheet.Name); drawingViews = sheet.DrawingViews; for (int j = 1; j <= sectionSheets.Count; j++) { drawingView = drawingViews.Item(j); Console.WriteLine("\tDrawingView.Name: {0}", drawingView.Name); ProcessDrawingViewModelLink(drawingView); ProcessDrawingViewModelMembers(drawingView); } } } else { Console.WriteLine("Section '{0}' is not an igWorkingSection.", section); } Console.WriteLine("<-- {0}", System.Reflection.MethodBase.GetCurrentMethod().ToString()); }