As a base case, I think the get views from
View set node will need to be edited to work on something other than the active document. Can you post your dyn and a sample rvt for people to test with?
I think you should watch in the Genius Loci package. There are nodes for printing pdf from directory or export DWG/DWFx from directory and a node “View Sets from document”.
All the nodes need to be use with Document.BackgroundOpen node.
I have some issues trying to run the batch print from the Genius package:
“Get Views from View Set” have null output. (My input is ViewSheetSet and input is ViewSet)
I believe to have constructed the script correctly, but can’t make the view from view set to work properly.
To be precise, in the first iteration of the script the node reads the data, but I am unable to exploit the content. The parent node will be able to use the content from “Get all views from document” but not from the “get views from view set” (Also the DYN became slow and hard to uses for no apparent reason)
Further to this workflow, I would like to run a batch print for multiple file using a periodic run or even better a recursive definition, sort of Hoopsnake workflow for dynamo, I think the current script will give us a lot of comfort but if you know any post or package, I’ll love to develop this script further.
If you want to rename the pdf files in the same graph you need to add a “passthrough” node or type {passthrough,waitfor}[0]; between “Print PDF” and “Rename Files”.
(You can’t rename the pdf files before they are produced.)
The node “Print PDF from document” works with several Revit Documents.
Just set his lacing on longest.
I don’t understand the need for a recursive definition, the lacing is probably sufficient.
The node will process on the documents one by one.
You can select several documents like this (if they are in the same folder) :
That exactly the type of periodic run I was looking for, thank you.
Unfortunately I didn’t manage to uses the pass true node and the print PDF only seam to work when the lists are all flatten.
Moreover, All my drawing set are suppose to have the same names and number of sheet, so I do not understand how the rename node will rename each views except if the process happen " list by list" .
Please update the package Genius Loci. I made some changes in the Print PDF from document node and there is no more need to rename the pdf files.
Use the FilenameToFilePaths node to input the correct names.
With several documents, you must set the lacing on longest on the Print PDF from document node.
Please start a new topic if you have other questions because you’re hijacking the original subject.