Rewrite the family type of the selected element with the type described in excel using the element ID

I would like to rewrite the family type of a selected element with the type described in Excel file using the element ID as a key.

I am wondering if it is possible to obtain the element ID in advance, write the element ID and the name of the type to be rewritten in an Excel file, read the Excel file, check it against the element ID of the selected element, and rewrite the name of the type. I couldn’t figure out how to rewrite the type name by matching it with the element ID of the selected element.

Please let me know if you have a solution.
attaching the Dynamo graph and Excel file

@marukawa.tomoki ,

check out this, maybe you can adaped something here… … i think you can find a lot to this topic

@Draxl_Andreas
Thank you for your help!Sorry for not checking the previous topic enough.
I will try the topic you taught me and share again if I can solve the problem.

@Draxl_Andreas
I was able to find a solution and will share it . However, it is searching by parameter, not by element ID. Thank you for your advice.

sample.xlsx (9.7 KB)
sample.dyn (36.4 KB)

1 Like