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