# Print PDFs

**URL:** <https://forum.dynamobim.com/t/print-pdfs/4387>\
**Category:** Revit\
**Tags:** revit, archi-lab\
**Created:** [June 7, 2016, 8:04pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387 "2016-06-07T20:04:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danny\_Bentley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/danny_bentley/32/52927_2.png) [@Danny\_Bentley](https://forum.dynamobim.com/u/Danny_Bentley)\
**Post date:** [June 7, 2016, 8:04pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/1 "2016-06-07T20:04:54Z")

</div>

Hi Dynamo Community,

I’ve been struggling this morning trying to create PDFs from a archi-lab node. It seem very simple and its well explained on the site. [http://archi-lab.net/printing-pdfs-w-dynamo/](http://archi-lab.net/printing-pdfs-w-dynamo/). I can’t see what I"m doing wrong but I continue to get a Exception of Invalid fileName. Has anyone had any success with this node?

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/a/a61d168ff5d15c3665756e437a3218ba609d9e35.JPG)

---

<div class="post-metadata">

**Author:** ![Dimitar\_Venkov](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dimitar_venkov/32/2068_2.png) [@Dimitar\_Venkov](https://forum.dynamobim.com/u/Dimitar_Venkov)\
**Post date:** [June 8, 2016, 5:27am UTC](https://forum.dynamobim.com/t/print-pdfs/4387/2 "2016-06-08T05:27:24Z")

</div>

The error message seems clear enough. You’ll most likely have to feed in a directory. Right now you’re attempting to create a single file with an invalid name: “NULL.pdf” Try feeding in a directory instead with the “Directory Path” node.

---

<div class="post-metadata">

**Author:** ![Vincent\_Olthuis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vincent_olthuis/32/8543_2.png) [@Vincent\_Olthuis](https://forum.dynamobim.com/u/Vincent_Olthuis)\
**Post date:** [June 8, 2016, 9:30am UTC](https://forum.dynamobim.com/t/print-pdfs/4387/3 "2016-06-08T09:30:03Z")

</div>

Hello Danny,

Try a filename instead of just “.pdf” end with “test.pdf” check the printscreen below:

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/e693ff219eb9c89392048ab12b11354b854773c9.png)

-Vincent

---

<div class="post-metadata">

**Author:** ![Danny\_Bentley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/danny_bentley/32/52927_2.png) [@Danny\_Bentley](https://forum.dynamobim.com/u/Danny_Bentley)\
**Post date:** [June 8, 2016, 4:41pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/4 "2016-06-08T16:41:18Z")

</div>

Dimitar and Vincent,

Thank you for your suggestion. I made the changes without any success. I got an error message. Oddly I shouldn’t have anything deleted or changed.

`Traceback(most recent call last): File "<string>", line 101, in <module> Exception: The iterator cannot proceed due to changes made to the Element table in Revit's database (typically, This can be the result of an Element deletion).`

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/e/eb132d1428f4084d7b70b0aea225784afdbbfc93.JPG)

---

<div class="post-metadata">

**Author:** ![Danny\_Bentley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/danny_bentley/32/52927_2.png) [@Danny\_Bentley](https://forum.dynamobim.com/u/Danny_Bentley)\
**Post date:** [June 8, 2016, 6:10pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/5 "2016-06-08T18:10:55Z")

</div>

I got it to work. Unfortunately it seems that I get a fetal error that crashes my model. I will continue to work on it and update this form. Thank you everyone.

---

<div class="post-metadata">

**Author:** ![Vincent\_Olthuis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vincent_olthuis/32/8543_2.png) [@Vincent\_Olthuis](https://forum.dynamobim.com/u/Vincent_Olthuis)\
**Post date:** [June 8, 2016, 8:54pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/6 "2016-06-08T20:54:36Z")

</div>

Do you have Adobe PDF? otherwise you should use your own printer name.

---

<div class="post-metadata">

**Author:** ![Danny\_Bentley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/danny_bentley/32/52927_2.png) [@Danny\_Bentley](https://forum.dynamobim.com/u/Danny_Bentley)\
**Post date:** [June 8, 2016, 9:45pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/7 "2016-06-08T21:45:34Z")

</div>

Oddly the problem was that it didn’t like the folder on my user. I changed it to C: and then desktop and it worked perfectly on both. Thank you again for all the suggestions and help.

---

<div class="post-metadata">

**Author:** ![Francisco\_Farias](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@Francisco\_Farias](https://forum.dynamobim.com/u/Francisco_Farias)\
**Post date:** [June 9, 2016, 4:43pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/8 "2016-06-09T16:43:09Z")

</div>

Hi, where can we get the scripts? I was looking at the website, but there are many nodes I don’t have (View Sets, everything related to “Print”, etc.), so was wondering which packages do I need if I want to replicate that work?  
Or if you can, can you please post the script, so I can give it a try?

Thanks,

---

<div class="post-metadata">

**Author:** ![Vincent\_Olthuis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vincent_olthuis/32/8543_2.png) [@Vincent\_Olthuis](https://forum.dynamobim.com/u/Vincent_Olthuis)\
**Post date:** [June 9, 2016, 4:54pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/9 "2016-06-09T16:54:59Z")

</div>

The title of the package is Archi-lab like in the title of this post.

---

<div class="post-metadata">

**Author:** ![Danny\_Bentley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/danny_bentley/32/52927_2.png) [@Danny\_Bentley](https://forum.dynamobim.com/u/Danny_Bentley)\
**Post date:** [June 9, 2016, 5:04pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/10 "2016-06-09T17:04:52Z")

</div>

Archi-lab is a must have.

---

<div class="post-metadata">

**Author:** ![Francisco\_Farias](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@Francisco\_Farias](https://forum.dynamobim.com/u/Francisco_Farias)\
**Post date:** [June 10, 2016, 9:34am UTC](https://forum.dynamobim.com/t/print-pdfs/4387/11 "2016-06-10T09:34:03Z")

</div>

I am sorry if I am asking stupid questions, but I do have [Archi-lab.net](http://Archi-lab.net) installed (for Dynamo 1.0) and Bumblebee, but when I search for nodes like “Print PDF”, “Print Settings”, “Print Range”, “View Sets”, “Get Views form View Set”, I get nothing… I can’t recreate what is shown here…

---

<div class="post-metadata">

**Author:** ![Vincent\_Olthuis](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vincent_olthuis/32/8543_2.png) [@Vincent\_Olthuis](https://forum.dynamobim.com/u/Vincent_Olthuis)\
**Post date:** [June 10, 2016, 12:23pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/12 "2016-06-10T12:23:00Z")

</div>

Hi Francisco,

There are two versions of the archi-lab packages, the last one is filled with the printing scripts.

![](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/2/2d474e191df3056984af518448c408f7e68f65a5.png)

---

<div class="post-metadata">

**Author:** ![Mitchelld3680](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@Mitchelld3680](https://forum.dynamobim.com/u/Mitchelld3680)\
**Post date:** [September 7, 2016, 4:16pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/13 "2016-09-07T16:16:05Z")

</div>

I was able to get this to work, but i am still prompted for each file name. is there an easy way to bypass this. I just want default file names .

---

<div class="post-metadata">

**Author:** ![Danny\_Bentley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/danny_bentley/32/52927_2.png) [@Danny\_Bentley](https://forum.dynamobim.com/u/Danny_Bentley)\
**Post date:** [September 27, 2016, 8:48pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/14 "2016-09-27T20:48:06Z")

</div>

I’ve also created a node for batch renaming PDF files using regular Expressions (Node Name: **Rename PDFs** - Package **Parachence** ). [Regular Expression Website](http://regexr.com/)

I created a short video on my dropbox on how it works.  
[Batch Rename PDF Video](https://dl.dropboxusercontent.com/u/35803291/PDFRenamer.mp4)

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/2X/8/8e20639a767c1c2a569eec285095484e4eec76ed.JPG)

---

<div class="post-metadata">

**Author:** ![kevin.carroll](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@kevin.carroll](https://forum.dynamobim.com/u/kevin.carroll)\
**Post date:** [December 9, 2016, 6:44pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/15 "2016-12-09T18:44:30Z")

</div>

I have been able to get this to run, however, the sheet size is 8 1/2 x 11 no matter what printsettings I choose. Has anyone run into this and/or have a solution?

---

<div class="post-metadata">

**Author:** ![p.piwek](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@p.piwek](https://forum.dynamobim.com/u/p.piwek)\
**Post date:** [September 19, 2017, 8:29am UTC](https://forum.dynamobim.com/t/print-pdfs/4387/16 "2017-09-19T08:29:48Z")

</div>

Hello, When I have set print settings on A0 and prints it is OK, but as I change to A1 it still prints on A0. What is going on?

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [September 19, 2017, 9:32am UTC](https://forum.dynamobim.com/t/print-pdfs/4387/17 "2017-09-19T09:32:01Z")

</div>

If I remember correctly the bug was that it prints with the last changed settings from the user interface.

---

<div class="post-metadata">

**Author:** ![p.piwek](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@p.piwek](https://forum.dynamobim.com/u/p.piwek)\
**Post date:** [September 19, 2017, 11:07am UTC](https://forum.dynamobim.com/t/print-pdfs/4387/18 "2017-09-19T11:07:35Z")

</div>

Exactly, is it possible to change settings for each of the dynamos at any time?

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [September 19, 2017, 1:19pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/19 "2017-09-19T13:19:20Z")

</div>

> [@Archi-lab Batch Print Node Problem](https://forum.dynamobim.com/t/archi-lab-batch-print-node-problem/6575/5):
>
> Oк Try to add these lines in the Python node inside Print PDF

> [@PDF print node by Archi-Lab Ignores printer and print range](https://forum.dynamobim.com/t/pdf-print-node-by-archi-lab-ignores-printer-and-print-range/9104):
>
> The PDF print node seems to ignore whatever printer and print range I push into the node, instead it uses the printer and print range selected in Revit. Does anyone have a solution? Thanks in advance, Tim

Take a look at these topics

---

<div class="post-metadata">

**Author:** ![p.piwek](https://avatars.discourse-cdn.com/v4/letter/p/ce7236/32.png) [@p.piwek](https://forum.dynamobim.com/u/p.piwek)\
**Post date:** [September 19, 2017, 1:47pm UTC](https://forum.dynamobim.com/t/print-pdfs/4387/20 "2017-09-19T13:47:36Z")

</div>

Thanks, I think everything is fine now. 🕶

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