# Batch Print PDF

**URL:** <https://forum.dynamobim.com/t/batch-print-pdf/37249>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [June 17, 2019, 7:33am UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249 "2019-06-17T07:33:06Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [June 17, 2019, 7:33am UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/1 "2019-06-17T07:33:06Z")

</div>

I am trying to batch print to pdf with several .rvt files in a folder. I collected the filepaths and made it a list for the ‘filepaths’ input and chose the views to get. Somehow I keep getting the null value when I try to run the script. Printing a single file seems to work but I can’t get this (multiple formats) to work.

 ![Batch%20PDF](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/3/834dac79c8c5273e36f89f9aea8d19c45b32b8ff.jpeg)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [June 17, 2019, 8:23am UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/2 "2019-06-17T08:23:56Z")

</div>

Hi @selim.celem,

I don’t think you use the right node.  
Here is an example :

 ![Batch%20Print%20PDF](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/77c0f1ac08e59773d012b0c118a95273caa207f7.png)

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [June 17, 2019, 8:52am UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/3 "2019-06-17T08:52:23Z")

</div>

Ah yeah I have figured that the FilePaths, Views and Printsettings need to be the same amount to batch the files. I am busy filtering them by sheetnames, I will update my progress here and ask my questions if needed. Thank you!

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [June 17, 2019, 9:57am UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/4 "2019-06-17T09:57:20Z")

</div>

Okay I am doing something wrong here, I am trying to get all .rvt files in a document (unopened), print them all to pdf using the same print settings. The only thing I want to filter are the sheets, could you show me an example for this?

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [June 17, 2019, 11:12am UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/5 "2019-06-17T11:12:30Z")

</div>

Here is another example with a list of documents.  
Note that the Revit documents must include the print settings.

 ![Print%20PDF%20from%20directory](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/7/2740a18ec97037f3a2a60035b44a9ecdbd1e7404.png)

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [June 17, 2019, 12:14pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/6 "2019-06-17T12:14:22Z")

</div>

I’m getting an error when I use that script:

 ![batch%20print%20pdf%20error](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/b/7b55fc0191c199843c81db6f2f4fdb6ac6ee348f.jpeg)

Edit: Changed “CudePDF Writer” to “CutePDF Writer” but that didn’t seem to fix the error.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [June 17, 2019, 12:34pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/7 "2019-06-17T12:34:56Z")

</div>

Use the longest lacing for several documents on the _Print PDF_ node.

 ![longest%20lacing](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/7/b72facebf10f5e345982c7c45dd46497ca5ea581.png)

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [June 17, 2019, 12:41pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/8 "2019-06-17T12:41:13Z")

</div>

![batch%20print%20pdf%20error2](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/5/558ae5dde3616aa41f939a91d68a4162eab27ea9.jpeg)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [June 17, 2019, 1:05pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/9 "2019-06-17T13:05:57Z")

</div>

Can you expand the previews under the _GetPAramterValueByName_ and _FileNameToFilePath_ nodes ?  
All the filenames must be different.

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [June 17, 2019, 1:17pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/10 "2019-06-17T13:17:29Z")

</div>

![batch%20print%20pdf%20error%20overview](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/7/27c2f5958ac0695f90f41d24babd1e9d7bffa6d8.jpeg) ![batch%20print%20pdf%20error%20filenames](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/4/54ccbd940a5f9fa283fbdbc602a013053931b283.jpeg)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [June 17, 2019, 1:26pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/11 "2019-06-17T13:26:59Z")

</div>

All your filenames are invalid.

Try this :

 ![PRINT](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/58ba7d56658db109379877c06d2d6a35a64811f7.jpeg)

or this :

 ![PRINT%202](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/f/7f9e2a26c697a5dd609d42a16b61859017508e4e.jpeg)

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [June 18, 2019, 8:31am UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/12 "2019-06-18T08:31:36Z")

</div>

Sorry I was occupied for a bit! Going to give it a try now!

The first option worked yeah, but I am trying to filter the list by only printing the wanted sheets instead of all the sheets, right now it prints every possible sheet in the project.

---

<div class="post-metadata">

**Author:** ![selim.celem](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/selim.celem/32/73146_2.png) [@selim.celem](https://forum.dynamobim.com/u/selim.celem)\
**Post date:** [June 18, 2019, 10:36am UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/13 "2019-06-18T10:36:43Z")

</div>

![batch%20print%20pdf%20null](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/f/2f681a1dece4ce6f53eb76b7abbdb39076513071.jpeg)

I’m trying to create inputs for choosing 2 sheets, an input for the directory path to choose the files within the document. Doing so I am willing to print every file within the selected directory using the same settings and views. This is a different attempt but I guess ‘selectcategoryindocument’ node is required? Cause I had trouble filtering out sheets using that node because I have several sheets that contains the same word.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [June 18, 2019, 12:09pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/14 "2019-06-18T12:09:26Z")

</div>

View and sheets parameters are typically used to categorize the browser organization.  
As you realized it’s complicated by keyword filtering, it’s easier to filter by parameter value.

---

<div class="post-metadata">

**Author:** ![cliDNCUS](https://avatars.discourse-cdn.com/v4/letter/c/ecc23a/32.png) [@cliDNCUS](https://forum.dynamobim.com/u/cliDNCUS)\
**Post date:** [April 6, 2020, 6:47pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/15 "2020-04-06T18:47:06Z")

</div>

hi @Alban_de_Chasteigner

I cant find the node called: Print settings, Filename.ToFilePaths, and Print PDF (Multiple formats)

I havent loaded any packes, do i have to?

and thanks for sharing.

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [April 6, 2020, 7:21pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/16 "2020-04-06T19:21:43Z")

</div>

Genius Loci package.

---

<div class="post-metadata">

**Author:** ![cliDNCUS](https://avatars.discourse-cdn.com/v4/letter/c/ecc23a/32.png) [@cliDNCUS](https://forum.dynamobim.com/u/cliDNCUS)\
**Post date:** [April 6, 2020, 7:43pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/17 "2020-04-06T19:43:24Z")

</div>

@jacob.small  
Thank you.

But i still cant find the one called: Print Settings.

Can it be from another package.

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [April 6, 2020, 8:25pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/18 "2020-04-06T20:25:26Z")

</div>

The _Print Settings_ node is from archilab.  
You can use instead the _Print Settings by Name_ node in _Genius Loci_ package (but archilab is a really essential package).

---

<div class="post-metadata">

**Author:** ![simon\_murphy1](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/simon_murphy1/32/101536_2.png) [@simon\_murphy1](https://forum.dynamobim.com/u/simon_murphy1)\
**Post date:** [April 9, 2020, 9:16am UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/19 "2020-04-09T09:16:06Z")

</div>

Hi All,

I am also trying to use this workflow to batch print a series of drawings. I use a bit of python script earlier in my graph to create a viewSet but then the print node says

“ValueError: Requested value ‘my custom name of pRange’ was not found.”

[testing printing pdfs #4.dyn](https://forum.dynamobim.com/uploads/short-url/sffK9fA5phfQtgpEeWIfBMeTdT0.dyn) (103.6 KB)

---

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [April 9, 2020, 1:31pm UTC](https://forum.dynamobim.com/t/batch-print-pdf/37249/20 "2020-04-09T13:31:06Z")

</div>

> [@simon\_murphy1](#):
>
> “ValueError: Requested value ‘my custom name of pRange’ was not found.”

I didn’t understand if the error came from your python script “Create a ViewSet (Print Set) From list of views” of from the _Print PDF_ node.

Please note, you will have twice the suffix “.pdf” in your pdf names with your codeblock and the _FilenameToFilePaths_ node.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/4/6/460d9c1954493f21c54d174904cd3a65cc727cd7.png)

[Next page](https://forum.dynamobim.com/t/batch-print-pdf/37249.md?page=2)
