Change(Replace) Family Types by Hosts

Hello,

I’m replacing family types of lintels(beams) on walls by wall thickness.
I have created all family types of lintels by wall thickness. (e.g. family type named “lintel_800” should be on the wall type named “W2_800”) I couldn’t find out how I can replace lintels by host(wall) thickness. Could anyone help me with this?

Thank you.

Hi @ys.cheongM3WMR , Could you please share your script here? We can review it together and work on any issues. It would also be helpful if you could provide a sample Revit file for testing.

1 Like

Hello @_Vijay , thank you for help. Here’s my script, but it’s still in progress. I have my sample file, but it can’t be uploaded because it’s over 8mb. I would be very appreciate it if you could help this out. Please let me know if you need further information.

I’m sorry that I can’t share my Revit file, but here’s screenshots.



Could share the sample Revit file so that i can try as-well.

Slim the revit file down to a portion of your problem and purge it of everything not required. Thay should bring it within filesize limits

1 Like

opening+lintel_test.rvt (3 MB)

It’s Revit 2025, I hope it doesn’t bother you.

Thank you, it worked.

its solved? or anything needed?

It’s not solved yet :smiling_face_with_tear:

Here’s what I have done till now.

Categories is set as door, I’m sorry that some information is not in English

Not sure why you need a Type parameter for the lintel thickness…
If not, I would just make 1 lintel, set the thickness as a Instance parameter and let Dynamo set the Parameter of all lintels copied over from the Wall Host.

But if you specifically need a type parameter and have premade all the types:

I think you need the Index.Of node here.
Since you said you made the names according to the thickness, you can just get all lintels and their host. Then through the host thickness, get the proper type name of the lintel and through Index.Of and setfamilytype byname through that.

Does that help you?