Run Dynamo Script on other Documents

Hi,

I want to batch run a dynamo script on multiple files in a certain folder.

I already found John Pierson’s Rhythm nodes application.opendocumentfile.

This opens a file and can close it.

Now i need to find a way to access the categories in those files

Logic:
Open first revit file in a folder
Run the dynamo script
Close the file
Repeat for the other files.

Any ideas?

1 Like

Easiest and by far the best solution is
https://www.birdtools-developers.com/shop.html
Look for the Dynamo Multiplayer and best of all… it’s free

3 Likes

Don’t. Background processing this way is orders of magnitude slower as EVERYTHING gets opened at once, then EVERYTHING gets a partial transaction, then EVERYTHING gets another partial transaction, and eventually EVERYTHING gets closed. Remember you can’t safely open file X if you have already loaded it as a link, and that files require 20x the document size in RAM to open (RAM that isn’t freed up until you close the documents, unless you move to scratch disc work which takes orders of magnitude more time than memory).

Instead just build the graph to work on your active document, and then leverage Dynamo Multi Player from Bird Tools. It does the job more effectively, is more stable, and easier to author as you don’t need an extra document input on every node you want to use so it’s faster build your graphs too.

https://www.birdtools-developers.com/dmu.html

1 Like

Thanks you helped met bigtime with birdtools

now let’s batch process 108 docs…

1 Like