image by archi-lab

image exporter for dynamo

image by archi-lab

This post has been long overdue, but I had gotten quite busy at work and basically have been hording all of these ideas. The image exporter came about when I was considering ways of adding a floor plan to each Room Data Sheet while keeping the data in Excel. The idea was to just export each room’s floor plan as a JPG and then embed it into Excel. That worked fine, to an extent but I realized that it will be better to just keep RDS in Revit and not export them to Excel for now, so I moved on from Image Exporting.

Obviously Dynamo, already has a OOTB (out of the box) node for exporting views to images. It works fine, and I have nothing against it. The only thing that its lacking is flexibility, and all of the options that Revit’s UI offers when one wants to export something to an image. I really like having options:


In order to implement this node I had to make a few miscellaneous nodes that would retrieve things like Fit Direction Type, Image Quality or File Type. They are very simple enumeration nodes that just produce a list of available options for each setting. This way I don’t have to write that all out.  

Next in line was putting it all together into one export node. Here’s code for it and I will explain the logic/behavior below:    

The idea is to be able to specify whether we want to export a single image or a whole set of images. Also, there are options for Image Resolution and Size, but those can only be set when the Zoom Type is set to Fit To View. Just like you can see in the UI when you choose Fit To option, Zoom To becomes grayed out. Very similar thing happens when dealing with the API and we can chose one or the other and with each choice comes a different set of options that we can set.

If you chose Fit To, now you can also specify exported image size in pixels (there is a limit in size, but I haven’t figured out what it is yet) and whether its in Horizontal Direction or Vertical. So if i Specified Horizontal and 500px, exporter will make sure to scale my image down to 500px in horizontal direction and vertical will be whatever it comes out to be based on proportions.

This is a work in progress obviously, and I am sure there are still some bugs in it, but give it a whirl and let me know if you encounter any trouble and hopefully I can fix them.

Example of how the node can be set up. All custom nodes are part of the archi-lab package so get them from the Package Manager.


Update: 09/01/2015

There has been a change (for better I hope) in how most of the custom nodes here are working. I decided to hard code them using a DropDown node as a base. This should make picking all of the right types much easier. Please download latest Archi-lab package to see that reflected.


  1. Graham says:

    I think this is a great tool and is very similar to what I am trying to automate myself. What I am trying to do it is instead of exporting an image (Revit> Export> Images and Animations> Image) I am trying to save sheets out of Revit (Revit> Save As> Library> View). I am not sure if I would be able to modify this node or what exactly I have to do but any help would be much appreciated! Thanks in advance!

    • Graham, I might be wrong but I don’t believe that this particular functionality that you are asking for was exposed in the Revit API. It might be only available via UI. I am sorry.

      • It would appear that way, I have checked a few other sources and they are all coming back with the same conclusion. It is a little odd that it’s accessible only through the UI but thank again of the help!

Leave a Comment