Revit 2022 PDF Export Event?

Is the new Revit 2022 PDF Exporter tied to the File Exporting event or View Exporting event - or does it have it’s own event?

2022 will file FileExported event https://apidocs.co/apps/revit/2022/b319fd4a-07af-ddac-41a2-f1478d4ff100.htm

You can use file-exported.py hook in pyRevit to capture it

Revit 2022 has added PDF to the list of export formats here

https://apidocs.co/apps/revit/2022/f43a36a6-ebce-29e2-693b-9b9867da026b.htm#

1 Like

Ahh, thank you. :pray: Prior to R2022 I was using the print events to capture which views/sheets were being printed. It looks like there isn’t an easy way to capture the views that are being exported with that event, unless I’m missing something.

I noticed ViewsExportingByContextEventArgs has the method GetViewIds… but it seems like this might not have anything to do with the new Revit built-in PDF exporter? :pensive:

1 Like