Hi everyone,
I’m facing a weird issue with dynamo scripting. I have to create many door types in the same script. The types are defined by the length of the doors that I read from an excel file so I have to create automatically doors with different lengths and may be widths. I created the script attached to this message. I already did this for the creation of walls with different widths (with walls.duplicate node) and it worked fine.
The problem for the doors (with familytype.dupicate) is that it creates only one type and it changes its length all over the process of reading the excel file so at the end of the script execution, I obtain one family type with the last length read from excel file.
Can someone help me with this so I can create multiple types and not only one ??
Yes. but you’re not enterint the correct cells in the FamilyType.Duplicate node.
You 've also length of 0.05 m in your excel file. Revit doesn’t make the door type.
No, your script didn’t work. The bug is not here.
As you can see in the first sreenshot, all the values of the length column are read correctly. I can see in is the watch node. Then I want to create a type whose name is “the conversion of the length to string”. I want to understand why the only created type is 0,74 which corresponds to the first line in the excel file. It seems like we cannot create several types in the same script with the node (family duplicate).