Creates a FamilyInstance of Adaptive Component Family.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static FamilyInstance CreateAdaptiveComponentInstance( Document doc, FamilySymbol famSymb )
Parameters
- doc Document
- The Document
- famSymb FamilySymbol
- The FamilySymbol
Return Value
FamilyInstanceThe Family Instance
Exceptions
Exception | Condition |
---|---|
ArgumentException | The element famSymb was not found in the given document. -or- The Symbol famSymb is not an Adaptive Family Symbol. |
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | Unable to create adaptive component instance. |