I am trying to use the PDFExportOptions and the Export methods for exporting sheet as PDF’s. When using pyrevit print() I can see the naming convention I want but once the pdf is exported the file name is Sheet + SheetName., This is my code:
for sheet, custom_name in zip(selected_sheets, custom_names):
I am using the Export Method (String, IList(ElementId), PDFExportOptions),
The naming convention I setup should be SheetNumber + Revision, but the created PDF shows Sheet + SheetName. Is like the output is completely ignoring the FileName
If anybody could help or point out some resources, I would appreciate it.
The pdf file you are getting as output must has a fixed pattern of naming convection that is
“sheet-” + sheet.Name + “.pdf”
so just rename it after your export command. Define a rename method in your class that takes the outputFolder, newFilename and that sheet as argument and then rename it as you want dear.
for example I have done as: