How to extract Revit ID from schedule xls?

@Jean-Marc

i got it actually it is also a acceleration of transaction time


# 🎯 set Parameter based excel
def set_parameters(elements, parameters=PARAMETERS, data_dict = DATA_DICT):
    not_found = {}
    for element in elements:
        element_id = int(element.Id.IntegerValue)
        if element_id in data_dict:
            element_entry = data_dict.get(element_id)
            for i, parameter in enumerate(parameters[1:]):
                try:
                    element.LookupParameter(parameter).Set(element_entry[i])
                except Exception:
                    not_found.setdefault(element_id, []).append(parameter)
    return not_found

i modified the transaction it got a list of Ids which are not filled!

it think next step will be getting what did not work, and why… it is actually a big step.

Thanks for the hints.

KR

Andreas