I’m somewhat new to dynamo - been toying with it off and on for the past few months as I have time between tasks here. But something Konrad posted (http://archi-lab.net/printing-pdfs-w-dynamo/) really grabbed my attention as something that would help out my workflow immensely if I could only figure out how to make it function.
I followed the post, I can make the script print my view set from Revit and it’ll name the files they’re Revit default naming, but I’m struggling on where the rename files node gets plugged in, so it’ll rename those files that were printed. I’m still fairly new to all this so I’m probably missing something incredibly obvious, all report out in dynamo indicate “success” … but the rename isn’t actually renaming right now.
I’m posting the image of my dynamo workspace - and a link below just in case that doesn’t function. Any help would be immensely appreciated.
Follow the link to archi-lab post that the original OP posted on top of this page. Please pay attention to details. All images and information required to make this work are posted on my blog as well as source code.
Hi Konrad I’ve got it working of a fashion but I seem to have to run it twice - once to print the pdf’s, then again to rename them. As it stands I may as well just print from the standard print dialogue and the run the rename bit on it’s own afterwards.
Hi Dywyane, I am now getting this too. It has happened after updating Dynamo to 0.9.1.4062 and the Archi-lab package to 2016.2.10.
The problem seems to be with the “rename files” node. If you double click on the node it will open it in a new tab. Copy the python script node from here and paste it into your script and re-wire to this instead of the “rename files” node. This seems to get it working again, although it ignores the RunIt flag and runs whether true or false!
Dario/Andy, would you be able to post some screenshots explaining the workaround? I have tried what was described, however I’m still getting the same error and single letter renaming. RVT 2016 - Windows Server 2012 R2
Hi, same results here. @David Fraser, try double clicking the “Rename Files” node body and enter in “custom node editor mode” (read: yellow canvas). Once inside the node, again double click the Python Script Node. Copy the script to clipboard and then go to your main workspace, put a Python Script Node on the canvas and paste the script inside.
Contrary to others, I need the “true” input to proceed renaming files.