OwnerFamily Property


Get the Family of this Family Document.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)

Syntax

C#
public Family OwnerFamily { get; }
Visual Basic
Public ReadOnly Property OwnerFamily As Family
	Get
Visual C++
public:
property Family^ OwnerFamily {
	Family^ get ();
}

Remarks

Only available if the current document is family document.

Examples

Copy C#
string categoryName = familyDoc.OwnerFamily.FamilyCategory.Name;
Copy VB.NET
Dim categoryName As String = familyDoc.OwnerFamily.FamilyCategory.Name

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 →