Document Views Export for C#

Document Views Export for C#

bibal45271
Observer Observer
438 Views
1 Reply
Message 1 of 2

Document Views Export for C#

bibal45271
Observer
Observer

Hello, Revit API Forum.

I've needed to export some views in PDF format and everything seemed fine until I tried to export three hundred views, each in the separate PDF file 😅

 

As I understand, the only method, that can export PDFs is:

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

bibal45271_0-1702045572093.png

 

But when I use it for many PDFs export, the application freezes on the 171st PDF.

(If a one big process is batched into two smaller processes, like 150 and 150, it works fine).

Is there any possible workaround for this problem in which it would be possible to export all 300 views without batching?

 

 

 

0 Likes
Accepted solutions (1)
439 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Alumni
Alumni
Accepted solution

Probably not. You could try to increase the size of your memory and hard disk etc. but every batch process will hit a limit eventually. Revit was implemented and tested with an end user in mind, with limited working time per day and limited patience. For serious batch processing, you either need to split it up into manageable batches, as you describe, or implement process logging and graceful handling of freezing, crashing and restarting to continue from where it broke off, cf. 

  

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open