Multifiles script

Hi, I am wondering if there is any way to run a dynamo routine in multiple files like we do on revit.

I haven’t found nodes to open files, save and close and no nodes for “document.bypath” or something similar.

Is that possible?

Deivid,

I am unsure if this is possible in dynamo at the moment as i am relatively new. But one option would be to write a script using the pyautogui and os libraries in python. You could use the os.startfile() function and pass it a variable that loops through all the files in a folder that meet the condition you want. Then use pyautogui and pass snipped images of the save and close buttons, dynamo run button, ect to pyautogui.click(‘imagefilepath’, confidence=0.9) the confidence interval will require you to pip install opencv. If anyone has a better method I would love to know.

2 Likes