

I'm working on something to export DWG and IFC files from a project without manually opening it. We're about to start a project which will have 10 different .rvt files and I'm trying to speed up the export process. Everything works except when I realised I also have to change the view template for some of the views being exported to DWG. I get an error which I think means I'm not allowed to do that without making it the active document (opening it). But I wanted to ask first if this is the case before I abandon this.
Warning:
"Warning: Element.SetParameterByName operation failed. Attempt to modify the model outside of transaction."
Dynamo:
It's a bit messy but everything works except the view template part which is at the bottom.
You can use RevitBatchProcessor to run a dynamo script on multiple files: https://github.com/bvn-architecture/RevitBatchProcessor
It will open all models one by one, run the script and close it.
To answer your direct question, yes Dynamo can do this. You would have to run Dynamo Sandbox compared to Dynamo Revit. This allows Dynamo to sit outside of Revit, open the Revit application, open the Revit document, do some action, and then close the document, then rinse and repeat.
While it is possible, I do agree that RBP is a much cleaner solution. And I believe you can select a .DYN file to use as the action on the document.