I build a Python node for Dynamo. This node checks a project. And write the findings back to a specific family in the startingview (or update this family first). And writes the findings also to a CSV file. (Many thanks to the community. And especially package writers like Andres Diekman of the Clockworks package that did help build parts of this big script)
This all works fine and smooth, but… Can I use this Python script to run on a revit event, e.g. on startup?
I understand that you can rewrite the whole thing and build a macro.
But is this really the only options at this point.
An add-in is the only way to modify how Revit behaves inside the normal UI. It’d have to be deployed for all users and would require some good coding chops.
How badly do you need this to run every time? If it adds 15 seconds to every file open would you be ok with that? Might be better to bulk apply this to the files you want daily via Dynamo for Automation (another package by @Andreas_Dieckmann) or another bulk processing tool.
I was hoping that it was possible to add a link to the existing python script inside our project template. Or something like that… Not sure about deployment or about the mix off script language.
The option to run the script in bulk is another option, which I should consider (again).
I tried bulk opening and closing files in background already. But I had some trouble with closing (I think) I also tried to ‘reload from’ a link. And then run the script, based on the changed link. But it didn’t actually reload the link (possibly a bug - and this could be my computer)
I know the automatation solution of Andreas. But I have not tried it. Perhaps I should.
Thanks again Jacob.
And if anyone else have an idea your welcome.