# Batch plot to pdf

**URL:** <https://forum.dynamobim.com/t/batch-plot-to-pdf/26538>\
**Category:** Revit\
**Tags:** revit, mep, archi-lab, dynamo\
**Created:** [September 27, 2018, 7:53pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538 "2018-09-27T19:53:19Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![scrowe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/scrowe/32/40500_2.png) [@scrowe](https://forum.dynamobim.com/u/scrowe)\
**Post date:** [September 27, 2018, 7:53pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/1 "2018-09-27T19:53:19Z")

</div>

I have made an attempt at plotting a pdf set with dynamo and Im getting a null and I dont know what wrong. Here is what I have so far. Ideally Id like to be able to batch plot 3 view sets separetly, but I was just trying one for now.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/b/5b7ac4cd1ff7d0a8f548272024836b09be44a1a2.png)

---

<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:** [September 27, 2018, 8:21pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/2 "2018-09-27T20:21:44Z")

</div>

Hi @scrowe

You must input as many Filepaths as there are views.  
(You can customize the print setting and the PDF name for each view)

For example for 86 views :  
86 filepaths and 86 printsettings.

 ![Print%20PDF](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/f/1f70c35968f25f84e795ae415e9eb269518ee1b8.png)

---

<div class="post-metadata">

**Author:** ![scrowe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/scrowe/32/40500_2.png) [@scrowe](https://forum.dynamobim.com/u/scrowe)\
**Post date:** [September 27, 2018, 8:22pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/3 "2018-09-27T20:22:29Z")

</div>

even if I want it to be a combined pdf?

---

<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:** [September 27, 2018, 8:28pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/4 "2018-09-27T20:28:21Z")

</div>

I remove the CombineFile option in the last version of the `Print PDF` node because Revit can’t combine sheets with different sizes.  
Use the `MergePDFs` node instead.

You can cycle the printsetting if it’s always the same.

The original `Print PDF` node from archilab package is simpler if you want (one printsetting and one filepath).

---

<div class="post-metadata">

**Author:** ![scrowe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/scrowe/32/40500_2.png) [@scrowe](https://forum.dynamobim.com/u/scrowe)\
**Post date:** [September 27, 2018, 8:31pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/5 "2018-09-27T20:31:40Z")

</div>

I use the older archilab package because I have files that use the view filter nodes that were removed in the newer version. Is there a way to keep the old version and get the new one?

---

<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:** [September 27, 2018, 8:40pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/6 "2018-09-27T20:40:15Z")

</div>

You can take the .dyf files in the DYF folder of an old version of archilab and drop them in a newer version.  
(If the view filter nodes are not in python but in C#, you can’t do that)

Did you succeed in your print ?

---

<div class="post-metadata">

**Author:** ![scrowe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/scrowe/32/40500_2.png) [@scrowe](https://forum.dynamobim.com/u/scrowe)\
**Post date:** [September 27, 2018, 9:02pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/7 "2018-09-27T21:02:39Z")

</div>

I managed to get it to print a bunch of pages separately but Im confused where to incorporate the merge pdf node  
Thanks so much for helping me!

---

<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:** [September 27, 2018, 9:09pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/8 "2018-09-27T21:09:47Z")

</div>

I’m glad it worked.

The easiest way to use the `MergePDF`s node is to make a separate graph :  
(`TargetPdf` input is your filepath/name of combined pdf file)

 ![Merge%20PDF](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/8/580a2c9efc802dead1b64fbf1f15586498d86e49.png)

---

<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:** [September 27, 2018, 9:17pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/9 "2018-09-27T21:17:03Z")

</div>

Or you can combine it with the `Passthrough` node from Clockwork :

 ![Merge%20PDF%202](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/0/20ad45ee059eef8db6e1f387826c9620af0f2f3c.jpeg)

---

<div class="post-metadata">

**Author:** ![scrowe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/scrowe/32/40500_2.png) [@scrowe](https://forum.dynamobim.com/u/scrowe)\
**Post date:** [September 27, 2018, 9:25pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/10 "2018-09-27T21:25:00Z")

</div>

So I tried it with the passthrough, it almost works i get an error on the merge pdf node saying  
“Warning: Merge.MergePDFs operation failed.  
The document has no pages.”

But it still creates a merged pdf file…however the file is corrupt everytime and can not be opened.

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/c/8c826dcc8dc7a2c03c332d8387c0e260f0c82aba.png)

---

<div class="post-metadata">

**Author:** ![scrowe](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/scrowe/32/40500_2.png) [@scrowe](https://forum.dynamobim.com/u/scrowe)\
**Post date:** [September 27, 2018, 9:28pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/11 "2018-09-27T21:28:12Z")

</div>

Id like to try to do it in one graph so the other people using it here dont have to constantly open two graphs to pdf all files at the end of the day

---

<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:** [September 27, 2018, 9:55pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/12 "2018-09-27T21:55:39Z")

</div>

Here is a nother example :

 ![Batch%20Print%20PDF%20Merge](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/2/f2fe119d11624d017b3e23c73c84e1e9d4b7e150.png)

In the example above the `MergePDFs` node depends of the speed of your virtual pdf printer.  
The passthrough node doesn’t work well with some virtual printers.

---

<div class="post-metadata">

**Author:** ![thomas.vhelden](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@thomas.vhelden](https://forum.dynamobim.com/u/thomas.vhelden)\
**Post date:** [March 6, 2019, 3:40pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/14 "2019-03-06T15:40:27Z")

</div>

I really can’t find the merge node in any Genius Loci 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:** [March 6, 2019, 3:44pm UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/15 "2019-03-06T15:44:08Z")

</div>

Hi Thomas,

You can find the MergePDFs node in Genius Loci package version **2018.12.10** (and previous versions).

For the moment, I don’t include anymore this C# node in the package until I’ve found a fix.  
You can find an explanation in this topic if you’re interested :

> [@Cycle through all linked documents to create a list - Replacing null values only](https://forum.dynamobim.com/t/cycle-through-all-linked-documents-to-create-a-list-replacing-null-values-only/29529/7):
>
> Glad I could help out. grinning Another user warned me about this problem with the package manager in Dynamo 2.0. So I made some investigations on differents computers with exactly same packages installed, same Revit build and same Dynamo build. I found one computer where the error occurs when 2 essential packages are already installed. If I remove these packages, there is no more crash. Note that installing the package in Dynamo 2.0 crashes Revit but the package is still installed. On …

---

<div class="post-metadata">

**Author:** ![thomas.vhelden](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@thomas.vhelden](https://forum.dynamobim.com/u/thomas.vhelden)\
**Post date:** [March 7, 2019, 6:29am UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/17 "2019-03-07T06:29:36Z")

</div>

Hi Erfajo,

I downloaded the orchid package but the print node doesn’t allow multiple formats to be printed out all at once. In de Genius Loci package there is one node that does allow multiple formats but it doesn’t combine alle the files.

---

<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:** [March 7, 2019, 6:41am UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/18 "2019-03-07T06:41:21Z")

</div>

Revit does not have the ability to combine multiple formats by itself.  
That’s why I wrote the MergePDF node.  
But the external library used (dll) ITextSharp crash Revit during the update of the package on Dynamo 2.0.  
That’s why I temporarily abandoned this node.

---

<div class="post-metadata">

**Author:** ![thomas.vhelden](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@thomas.vhelden](https://forum.dynamobim.com/u/thomas.vhelden)\
**Post date:** [March 7, 2019, 7:00am UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/19 "2019-03-07T07:00:40Z")

</div>

Thank you for the update. So at the moment it’s not possible to combine files in Dynamo 2.0.  
I will combine them manually.

---

<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:** [March 7, 2019, 7:26am UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/20 "2019-03-07T07:26:28Z")

</div>

It works perfectly with the old version of the Genius Loci package that I mentioned in Dynamo 2.0.  
But there can be a Revit crash during the installation / update with the package manager. Despite this, the package and the node MergePDF will still be perfectly installed and functional.

---

<div class="post-metadata">

**Author:** ![thomas.vhelden](https://avatars.discourse-cdn.com/v4/letter/t/ecb155/32.png) [@thomas.vhelden](https://forum.dynamobim.com/u/thomas.vhelden)\
**Post date:** [March 7, 2019, 9:03am UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/21 "2019-03-07T09:03:57Z")

</div>

Thank you, i got the merge pdf working. I use the wait then passthrough node from bakery so it waits 3 seconds before merging the files.

---

<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:** [March 7, 2019, 9:05am UTC](https://forum.dynamobim.com/t/batch-plot-to-pdf/26538/22 "2019-03-07T09:05:38Z")

</div>

I’m glad it works for you ! 🙂

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