Sample Code Revit Batch Processor 1.1.16 documentation
Panel: Export | Button: PDF and DWG / Settings (split button)
Batch-export sheets from the current Revit project to PDF and/or DWG files, following a configured naming standard.
Configures the naming rules used to generate PDF and DWG filenames.
Opens the PDFDWGExporterUI settings window.
You select which Revit sheet properties (sheet number, name, revision, etc.) to include in the filename, and set a prefix, suffix, and separator for each component. Any parameter present on sheets in this model can be used.
Settings are stored in an extensible schema in the model — separate JSON strings for the PDF rule, the DWG rule and the DWG export scheme name — so they travel with the file.
DWG-specific: choose an export scheme to control which DWG version and layer standards are applied. The list offered comes from the predefined DWG export setups in the model.
Run Settings before your first export to ensure filenames match your project’s naming convention.
Print sets created in the selection window are saved to the project and can be reused on subsequent exports.
DWG export uses the scheme configured in Settings; create the DWG export setup in Revit first, otherwise there is nothing to choose.
Both buttons load .NET UI assemblies from the extension’s bin folder at run time. If that folder is missing or incomplete, the button fails immediately with a message about the bin directory.