Converts a family to be face host based.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static void ConvertFamilyToFaceHostBased( Document document, ElementId familyId )
Parameters
- document Document
- The document containing the family to be converted.
- familyId ElementId
- The family id.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The input familyId cannot be converted to face host based. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Failed to convert the family to face host based. -or- The family is already unhosted. |