I have the list of room numbers (list b) with values, that is taken from the Excel file. I want to compare this list with the list of room extracted from the Revit model (list a). After then I am trying to change the color of the rooms using ‘list b’ color. Can anyone please let me know how it can be done?
would something like this work? I do not see a built in parameter for color so you might have to change whatever you want the parameter to be.
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *
import Autodesk
clr.AddReference("RevitServices")
import RevitServices
input_1 = IN[0]
input_2 = IN[1]
rooms = IN[2]
title_1 = []
col = []
roomset = []
for dex1 in input_1:
title_1.append(dex1)
for dex2 in input_2:
if dex2[0] in title_1:
for i in rooms:
if str(i.Number) == dex2[0]:
col.append(dex2[1])
roomset.append(i)
OUT = col,roomset