Changing sheet print order - auto PDF print
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have modified the autopdf print plugin found at http://thebuildingcoder.typepad.com/blog/2013/06/auto-pdf-print-from-revit-2014.html
I have it running pretty well, the only thing bugging me is I have not found a way to change the order of the sheets printed.
It prints everything in alphabetical order, which is good, the only problem is with the GSN sheets that I want to print first, but they usually end up a few sheets back. Changing the sheet naming is not an option.
Is there a way to change the print order?
I thought this would have worked: 'SExxx' is the GSN sheet name, so I insert them first, then loop through again and add everthing not 'SExxx'
ViewSet myViewSet = new ViewSet(); string match = "SE"; foreach (ViewSheet vs in new FilteredElementCollector(doc).OfClass(typeof(ViewSheet)).Cast<ViewSheet>().OrderBy( e => e.SheetNumber).Where(q => q.SheetNumber.Contains(match))) { myViewSet.Insert(vs); } foreach (ViewSheet vs in new FilteredElementCollector(doc).OfClass(typeof(ViewSheet)).Cast<ViewSheet>().OrderBy( e => e.SheetNumber).Where(q => !q.SheetNumber.Contains(match))) { myViewSet.Insert(vs); }
Which does loop through the sheets correctly, but does not have an effect on the print order. I'm kinda stuck right now, any advice appreciated.