

I have tried to omitted the code “printJob.SetProfileByGuid("DefaultGuid") ” from the pdfCreator sample and this appears to have no effect.ĭo I need to create my own printJob profile? I have assumed that once the print settings are set within the Revit routine they do not require setting within the pdfCreator routine? The routine prints the document with the required name in the required location but appears to disregard the Print settings set within the Revit print routine. If (("A1"))// Work required to get actual paper size


PParam.PaperPlacement=PaperPlacementType.Center įoreach (.PaperSize pSize in printManager.PaperSizes) PrintSetup pSetup =printManager.PrintSetup ViewSheetSetting viewSheetSetting = printManager.ViewSheetSetting PrintManager.PrintRange=.PrintRange.Select PrintManager printManager = m_revitDoc.PrintManager Using (Transaction transaction = new Transaction(m_revitDoc, "Print to PDF")) ViewSet ViewSetName = selectViewsData.SelectedViews įoreach (.View view in ViewSetName) //For the purpose of the test there is only one view in the ViewSet Within the PrintWindowsTestPage() Method I have substituted the original code for a Revit SubmitPrint() routine as below. To keep things simplified I have utilised the c# sample code based on the “testPage_btn_Click” that comes with PDFCreator. I have been working on this since my last post and Im afraid I just dont understand what im doing wrong.
