Revit 2022 - Export to PDF?

Revit 2022 - Export to PDF?

Anonymous
Not applicable
1,917 Views
3 Replies
Message 1 of 4

Revit 2022 - Export to PDF?

Anonymous
Not applicable

Hi everyone!

 

I understand there have been issues in the past with exporting a view to PDF using the API. However, I note that the DB namespace does have a PDFExportOptions attribute. Is this legacy code, or is there actually a way to export to PDF in Revit 2022?

 

Thank you all!

0 Likes
Accepted solutions (1)
1,918 Views
3 Replies
Replies (3)
Message 2 of 4

Sean_Page
Collaborator
Collaborator
Accepted solution

It's new in 2022.

https://www.revitapidocs.com/2022/93d66d57-c20e-a103-39a1-77bc2ea05183.htm

Sean Page, AIA, NCARB, LEED AP
Partner, Computational Designer, Architect
Message 3 of 4

Anonymous
Not applicable

Oh brilliant! I couldn't find that export option for some reason.

Many thanks!

Message 4 of 4

vitalij.marcukov2BP2F
Advocate
Advocate

Hello @Sean_Page,

 

I hope you’re well. I’ve created a proof-of-concept script that exports sheets to PDF and DWG formats, and have a couple of questions. I searched various forums without success, but saw your explanation about PDFExportOptions on the Dynamo Forum and was hoping you could clarify the following:

  1. Do we need to use the dispose() method for PDFExportOptions, since it’s IDisposable? I’m working in a pyRevit environment using IronPython.

  2. Before exporting a sheet to PDF, do we need to make it the active view to ensure it shows the latest updates (i.e., to “regenerate” it so to say)?

If you could help clarify these points, I would really appreciate it.

0 Likes