I have successfully created a program to create PDF files without reformatting the file name (Revit strips out dots and puts in dashes, and prefixes the file name with the entire model name). However, once the PDF is "created" it is still ported to Bluebeam Revu (where the REAL save to file is done). How do I get Revit to create the file with exactly the name specified, in the folder specified, without calling up the Bluebeam "intermediary" dialog?
//this is my code as written....
string PDF_Path = "C:\\Revit Local\\" + Each_Sheet + " - " + Each_Name + ".pdf";
IPrintSetting PDF_Sets = PDF_Manage.PrintSetup.CurrentPrintSetting;
PrintParameters PDF_Params = PDF_Sets.PrintParameters;
PDF_Params.PaperSize.Equals(Use_Size);
PDF_Params.PageOrientation = PageOrientationType.Landscape;
PDF_Params.ZoomType = ZoomType.Zoom;
PDF_Params.Zoom = 100;
PDF_Params.PaperPlacement = PaperPlacementType.Center;
PDF_Params.HideReforWorkPlanes = true;
PDF_Params.HideUnreferencedViewTags = true;
PDF_Params.HideCropBoundaries = true;
PDF_Params.HideScopeBoxes = true;
PDF_Params.ColorDepth = ColorDepthType.GrayScale;
PDF_Manage.SubmitPrint(uiDoc.ActiveView)
PDF_Manage.PrintToFileName = "MyFileNameVariable.pdf";
I tried the various options of "...PrintParameters" and none seemed to suppress the dialog called up by the printer defined.