Create Rooms/Set Parameter by Name for List of Parameter Names + Values

Hi there,

I’m having problems with the “Element.SetParameterByName” node. When I load in a list of Room elements, a list of Parameter Names, and a list of their values I keep getting thrown nulls and have no idea why. I’ve tried Adjusting Lacing from Shortest to Longest to Cross Product but thats not the right approach
anyone have any insight on this. I have attached the Excel file I’m working from as well as the Revit file with the loaded parameters. Any help would be greatly appreciated. Thank you!

RoomParameters.xlsx (13.9 KB)
Excel_readRoomData_listTest.dyn (20.8 KB)
Rooms.rvt (1.5 MB)

Hi @Brian_Hopkins1 ,

In my opinion, you either have to make your lists match (with list.ofrepeateditem for example) or use replication guides :

The " Rooms - Finish Ceiling" parameter won’t get filled though… I havent really investigated why but maybe it’s because it’s a type parameter

EDIT :slight_smile:
Actually I did investigate and it’s because there a whitespaces at the end of some of your paraeter names on the Excel file, you might want to check that

1 Like

Thank you Mostafa, that worked beautifully.

Hi Dude
image
This correct or not correct

Please Tell me

instead of using { use [
see here and scroll down to chapter 7