The Autodesk.Revit.DB.FamilyTypeSetIterator
class represents a set of FamilyType
objects, which can be iterated over in a specific order.
Current
: Gets the current FamilyType
object in the set.IsDone
: Gets a boolean value that indicates if there are more items in the set that can be iterated over.Dispose()
: Releases all resources used by the FamilyTypeSetIterator
object.MoveNext()
: Advances the iterator to the next item in the set.// Get a set of FamilyType objects
FamilySymbolSet familySymbols = someFamily.GetFamilySymbolIds();
// Create a FamilyTypeSetIterator object
FamilyTypeSetIterator familyTypes = familySymbols.ForwardIterator();
// Iterate over the set and do something with each FamilyType object
while (familyTypes.MoveNext())
{
FamilyType familyType = familyTypes.Current;
// Do something with the familyType object
}
The FamilyTypeSetIterator
class is used to iterate over a set of FamilyType
objects, such as those returned by the FamilySymbolSet
property of a Family
object. The order in which the FamilyType
objects are returned is determined by the ForwardIterator
method, which returns a FamilyTypeSetIterator
object that can be used to iterate over the set.
It is important to call the Dispose
method when you are done using a FamilyTypeSetIterator
object, in order to release any resources it is holding. If you do not call Dispose
, you may experience unexpected behavior or memory leaks in your application.