Elements to remain selected in Revit

I have a bunch of uniqueid’s which I import from excel. When I run the code shown below, the elements in the model get selected and deselected one by one. I want all the elements to remain selected in revit. Please help

Hi @dnk2

Use flatten node after ElementSelector.ByUnique(id).

1 Like

I have a bunch of uniqueid’s which I export from excel. When I run the code shown below, the elements in the model get selected and deselected one by one. I want all the elements to remain selected in revit. Please help

Hmm, right off hand I’ve used selection sets for this. Clockwork has a node that does it.

@dnk2 Why are you copy pasting same reply twice?

Did you try what I have suggested?

Try to add Flatten node after code block. Please follow my image below:

1 Like

Thanks. It worked

@dnk2 Please mark the post as solved. You’re welcome!