FamilyManagerTypes Property |
All family types in the family.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntaxpublic FamilyTypeSet Types { get; }Public ReadOnly Property Types As FamilyTypeSet
Get
public:
property FamilyTypeSet^ Types {
FamilyTypeSet^ get ();
}member Types : FamilyTypeSet with get
Property Value
FamilyTypeSet
Examplepublic void GetFamilyTypesInFamily(Document familyDoc)
{
if (familyDoc.IsFamilyDocument)
{
FamilyManager familyManager = familyDoc.FamilyManager;
string types = "Family Types: ";
FamilyTypeSet familyTypes = familyManager.Types;
FamilyTypeSetIterator familyTypesItor = familyTypes.ForwardIterator();
familyTypesItor.Reset();
while (familyTypesItor.MoveNext())
{
FamilyType familyType = familyTypesItor.Current as FamilyType;
types += "\n" + familyType.Name;
}
TaskDialog.Show("Revit",types);
}
}
See Also