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?
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.
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.
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.