GetDefaultFamilyTypeId Method


Document Get Default Family Type Id Method

Gets the default family type id with the given family category id.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public ElementId GetDefaultFamilyTypeId(
	ElementId familyCategoryId
)

Parameters

familyCategoryId ElementId
The family category id.

Return Value

ElementId
The default family type id.
Exceptions
Exception Condition
ArgumentException familyCategoryId is not a built in category or parameter Element ID.
ArgumentNullException A non-optional argument was null
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →