Set parameters in background documents

Hi everyone,
I have a lot of Revit models (.rvt) in which I need to populate an instance parameter with a given value. This operation has to be done without manually opening each Revit model, so I’ve set Dynamo to open them in the background. To set the parameter value of a background opened model, I’m using the “SetParameterByName in Document” node from Genius Loci. I don’t have any warnings during execution; however, the parameter value is not changing. I can’t understand what may be wrong. Now, I’m performing this operation on a single file; in the future, I will implement this for each file in a file list.
Can anyone help me?

Thanks, Mau

Hi @Mau not sure at all, but remember load it back before close

ps and maybe you need convert revit application document to autodest.db.document, rhythm have great nodes for that…if that the case, i can tell if you show what application open node give …

Hi @sovitek

what should I have to load back before close?

the family you have edit in background, but not sure that case, then i have see all outputs :wink:

Open node gives “Revit.Application.Document”; probably do I need “autodest.db.document” instead?

yes

but really I’m editing a revit model.rvt in background and not a family, so I don’t need to load back anything

How can I convert Revit.Application.Document into Autodesk.db.document?

Rhythm should have some easy nodes for that as well :slight_smile:

PS a better way maybe could be Birdtool multiplayer, and then just use OOTB nodes..

Thanks for the suggestion. I’ve just used this tool and I’ve successed in setting parameter values of several revit models in once.

great yes much better IMO :wink: