Hi all,
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):
folder_path = os.path.join(output_folder, now_str) if not os.path.exists(folder_path): os.makedirs(folder_path) try: sheet_ids = List\[ElementId\]() sheet_ids.Add(sheet.Id) pdf_export_options.Combine = False doc.Export(folder_path, sheet_ids, pdf_export_options) success_count += 1 except Exception as e: fail_count += 1 failed_sheets.append((custom_name, str(e)))
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.