# PrintToPDF Returns Null/Empty without Errors

**URL:** <https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705>\
**Category:** Revit\
**Tags:** revit, dynamo, orchid, crumple\
**Created:** [March 12, 2025, 4:18pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705 "2025-03-12T16:18:59Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 12, 2025, 4:18pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/1 "2025-03-12T16:18:59Z")

</div>

I’ve been trying to make a dynamo script that prints the current project set to a printer I have. Issue is Crumples PrintToPDF _(Archilab didn’t work either)_ doesn’t want to actual print. Too my knowledge I’m inputting all required information and its running without error yet no file is getting sent to the printer or even anywhere in my system. I tried using Microsoft to PDF but that didn’t work. I searched other topics but they have either been fixed with something that didn’t fix this issue or haven’t been fixed.

Any help fellas?

 ![print_2025-03-12_11-47-49](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/9/292e0e0d2b99c63c81b75757bc3b052623c1b420.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [March 12, 2025, 4:25pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/2 "2025-03-12T16:25:42Z")

</div>

It looks like you don’t have a View Set selected. Are you sure you’re providing views to be printed?

---

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 12, 2025, 4:27pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/3 "2025-03-12T16:27:36Z")

</div>

Odd how it didn’t print when I exported the entire workspace but yes I did have the view set selected.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/5/e53a5084c87a22cb9bc35cfb8c4c961cd6711b6d.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [March 12, 2025, 4:30pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/4 "2025-03-12T16:30:48Z")

</div>

I’d suggest pulling out the contents of the custom node and testing in the workspace so you can see what errors you’re getting. You can just edit the custom node, copy everything, then paste it into your workspace and reconnect.

---

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 12, 2025, 4:49pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/5 "2025-03-12T16:49:52Z")

</div>

Failure of renaming, I thought it had to do with the view settings so I changed it from creating a view setting each time to the existing one however the error is still there.

`InvalidOperationException: Rename of the setting was unsuccessful; this may be because the name is already in use. at Autodesk.Revit.DB.ViewSheetSetting.Sa veAs(String newName) at InvokeStub_ViewSheetSetting.SaveAs (Object, Span 1) at BaseInvoker. System.Reflection.Method InvokeWithOneArg(Object obj, Binding Flags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) [' File "<string>", line 121, in <module>\n',' File "<string>", line 83, in exportSheetPdf\n']`

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/4/047e04b9f718707d4a280f45b9cb1dd0b0ab56d8.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [March 12, 2025, 5:07pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/6 "2025-03-12T17:07:20Z")

</div>

It sounds like you need a unique name each time. Try closing out of the dyn, clearing out your saved print settings, and then reopen and provide a brand new name.

---

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 12, 2025, 5:45pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/7 "2025-03-12T17:45:33Z")

</div>

Deleted any existing preset, closed and reopened dynamo, gave it a new name and the result is an empty list and nothing printed at the printer.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/35dac82236c35621460b5dc4a6e133cd26d79854.png)

---

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [March 12, 2025, 5:56pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/8 "2025-03-12T17:56:47Z")

</div>

Ignore the custom node for now and just focus on the python node. Without knowing what errors are occurring we can’t really diagnose anything. It’s very possible that it’s the same error from before, but we don’t know that without seeing it.

A few other things:

- What version of Revit are you in?
- Have you confirmed you’re on the latest version of the package?
- As another test, confirm that the new print setting is being created. If it is, try printing your two sheets using that print setting via the Revit UI to see if you encounter any other issues.

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [March 12, 2025, 10:07pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/9 "2025-03-12T22:07:59Z")

</div>

This script shows the list structure expected for my nodes:

> <https://github.com/aussieBIMguru/Crumple/blob/master/Script%20samples/Crumple_BatchPrintPdf.dyn>

Needs to be 1 file name per sheet (not just 1 for many). Im not sure how those print setting/printer nodes output as well, but my node expects specific types there as well so try using mine.

---

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 21, 2025, 5:26pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/10 "2025-03-21T17:26:49Z")

</div>

Plugging in my own directory and printer name, still sadly returns null oddly. Does printing to pdf not work with actual printers? even if so I tried using the “Microsoft Print to PDF” as a printer to not avail so is it both it doesn’t work with printers in real life AND doesn’t work with Microsoft’s pdf printer? Should I go out and install one of these other pdf printing services to see if that works?

 ![Crumple_BatchPrintPdf_2025-03-21_01-26-12](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/f/7fd14aeb17dde9e77010a82475b0664142e21506.png)

---

<div class="post-metadata">

**Author:** ![GavinNicholls](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/gavinnicholls/32/190442_2.png) [@GavinNicholls](https://forum.dynamobim.com/u/GavinNicholls)\
**Post date:** [March 21, 2025, 8:35pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/11 "2025-03-21T20:35:14Z")

</div>

I have only ever tried and used PDF24 personally, and have had to configure it also. I cover this here:

[![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/3/e3a150919ea145119f47feaf68d8473fb407c491.jpeg "Bulk export sheets to PDF using Dynamo + Crumple for Revit!") ](https://www.youtube.com/watch?v=gMpjwoWg4Rg)

Maybe look into my export pdf node as an alternaitve if you are in revit 2022+.

---

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 24, 2025, 3:31pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/12 "2025-03-24T15:31:13Z")

</div>

Hmm oddly enough going off the video there appears to be an issue with crumple as the dropdown form nodes don’t engage any UI to appear, I don’t know what could be the reason for this issue perhaps using Revit 2025? The icon for the node is also a snake rather than the typical circled c if that were to mean anything.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f6a7c662ce9ba0c51735a8c93c9d29a44930d624.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/9/996916a1ad862ef2b91e5389b345454d1ae6f9f5.png)

---

<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:** [March 24, 2025, 3:32pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/13 "2025-03-24T15:32:39Z")

</div>

Open the custom node up and check if the \node has a warning on a Python node therein.

---

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 24, 2025, 3:34pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/14 "2025-03-24T15:34:43Z")

</div>

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/b/9b944881baf647f6d2c09dd0eacd6e0b2bbfe4c9.png)

---

<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:** [March 24, 2025, 3:48pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/15 "2025-03-24T15:48:43Z")

</div>

Not sure where that module originates form - but it’s using IronPython2 so you’ll want to be sure you have the right version installed on your system. Have you confirmed that yet?

---

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 24, 2025, 4:30pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/16 "2025-03-24T16:30:42Z")

</div>

After manually installing Iron Python 2.7 and restarting my computer the same error occurs

---

<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:** [March 24, 2025, 4:37pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/17 "2025-03-24T16:37:48Z")

</div>

> [@Kris\_Arch](#):
>
> Iron Python 2.7

Two questions:

1. Which version of IronPython2.7 did you install?
2. Which version of Dynamo for Revit are you using?

---

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 24, 2025, 4:43pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/18 "2025-03-24T16:43:02Z")

</div>

1. 2.7.12 _The latest release from their Github_ [Here](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.12)
2. Dynamo Core 3.3.0.6316, Dynamo Revit 3.3.0.6523

---

<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:** [March 24, 2025, 6:04pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/19 "2025-03-24T18:04:49Z")

</div>

> [@Kris\_Arch](#):
>
> 2.7.12 _The latest release from their Github_ [Here](https://github.com/IronLanguages/ironpython2/releases/tag/ipy-2.7.12)

You need to install the Dynamo IronPython package off the Dynamo package manager, not the generic one for use in integrations.

In Dynamo check your package list for a DynamoIronPython package. If you don’t have one install the right version of the Dynamo package manager for your Dynamo build. If you do have one, check which version and confirm it’s the right one in the package manager. If so, let us know. If not, remove it, restart Revit, and install the right version.

---

<div class="post-metadata">

**Author:** ![Kris\_Arch](https://avatars.discourse-cdn.com/v4/letter/k/59ef9b/32.png) [@Kris\_Arch](https://forum.dynamobim.com/u/Kris_Arch)\
**Post date:** [March 24, 2025, 6:13pm UTC](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705/20 "2025-03-24T18:13:27Z")

</div>

Sorry, I have 3.2.1 installed in the manager which is the most up to date 3.0 which the package says to have any version with the same beginning integer as the version so since I’m using dynamo 3.x so I should have a Iron Python of 3.x which I do.  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/7/f70f5519f20b3d3964b0d527992098d3fee6ef1a.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/8/f88294e71b2913ca5ba62c140689710695d4ed8a.png)

[Next page](https://forum.dynamobim.com/t/printtopdf-returns-null-empty-without-errors/108705.md?page=2)
