naxweekend.blogg.se

Revit pdf creator download
Revit pdf creator download













revit pdf creator download

If I need a new profile I would be grateful if you could clarify how this is done. Is "printJob.SetProfileByGuid("DefaultGuid") " required or would this override my Revit Print settings? MessageBox.Show("An error occurred: "+ex.Message)

revit pdf creator download

MessageBox.Show("Could not be converted:") If(!printJob.IsFinished||!printJob.IsSuccessful) PrintJob.SetProfileByGuid("DefaultGuid") //Tried with and without this and still same result printJob.SetProfileSetting("PdfSettings.PageOrientation","Landscape") //Tried this and it does affect the orientation. MessageBox.Show("The job didn't arrive within 10 seconds") Var convertedFilePath = Path.Combine(resultsDir,"FirstTestPDF.pdf") Var resultsDir =PDFExportFolderTextBox.Text Type queueType = Type.GetTypeFromProgID("PDFCreator.JobQueue") Yes both paper size and orientation were incorrect.įor clarity the code for PDFCreator is below and is taken from the c# sample Thanks for your response it is much appreciated. If so I can see how for example I could change the sheet profile: printJob.SetProfileSetting("PdfSettings.PageOrientation","Landscape") īut for example how would I change the sheet size?Ĭan anyone identify what I am doing wrong? 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

revit pdf creator download

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.















Revit pdf creator download