Share

HostObjectUtils.GetTopFaces Method

Returns the top faces for this host object.


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

Syntax

C#

public static IList<Reference> GetTopFaces(
	HostObject hostObject
)

Parameters

hostObject  HostObject
The host object.

Return Value

IList<Reference>
An array of references to the faces which are at the top of this element.

Exceptions

ExceptionCondition
ArgumentException This host object does not support access to top or bottom faces.
ArgumentNullException A non-optional argument was null

Remarks

This utility supports host objects whose top faces represent one of the boundaries of CompoundStructure (such as roofs, floors or ceilings).

See Also

Reference

Was this information helpful?