Ok thanks for that, this code is working fine.
I just found the mistake after I catch the Family list.
collector = new FilteredElementCollector(doc).OfClass(typeof(Family));
Ok thanks for that, this code is working fine.
I just found the mistake after I catch the Family list.
collector = new FilteredElementCollector(doc).OfClass(typeof(Family));