RebarHostData Class

Interface to rebar-specific data stored in each valid rebar host element.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DB.StructureRebarHostData

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class RebarHostData : IDisposable

The RebarHostData type exposes the following members.

Properties
 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the RebarHostData
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetAreaReinforcementsInHost Returns all AreaReinforcement elements hosted by the referenced element.
Public methodGetCommonCoverType If all exposed faces of the host have the same associated CoverType, return that CoverType; otherwise, return .
Public methodGetCoverType Gets the CoverType associated with a face of the element.
Public methodGetExposedFaces Returns all the exposed faces, that is, those that have an associated CoverType.
Public methodGetFabricAreasInHost Returns all FabricArea elements hosted by the referenced element.
Public methodGetFabricSheetsInHost Returns all FabricSheet elements hosted by the referenced element.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetPathReinforcementsInHost Returns all PathReinforcement elements hosted by the referenced element.
Public methodGetRebarContainersInHost Returns all RebarContainer elements hosted by the referenced element.
Public methodStatic memberGetRebarHostData Gets a RebarHostData object referring to the specified rebar host element.
Public methodStatic memberGetRebarHostDirectNeighbors Returns a set of ElementIds for Elements joined to the provided host element.
Public methodGetRebarsInHost Returns all Rebar elements hosted by the referenced element.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIsFaceExposed Checks whether the specified face is considered exposed, and therefore has an associated CoverType.
Public methodStatic memberIsReferenceContainedByAValidHost Identifies whether an element that contains the given reference can host reinforcement.
Public methodIsValidHost Reports whether the element is a valid rebar host.
Public methodStatic memberIsValidHost(Element) Identifies whether a given element can host reinforcement.
Public methodSetCommonCoverType Associate a single CoverType with all exposed faces of the host element.
Public methodSetCoverType Associates the specified CoverType with the specified face of the element.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Remarks

Rebar host elements keep track of the "exposed faces," those that are not completely concealed by another rebar host. Faces may be concealed by joins; for instance, the top face of a beam that supports a slab is concealed. Faces can also be concealed by adjacency; for instance, the bottom face of a column that is supported by a foundation. Each exposed face of a rebar host must have a valid CoverType associated with it.

Rebar hosts also have cover parameters, providing a limited interface to the GetCoverType and SetCoverType methods. Each parameter simply gets or sets the cover setting associated with one or more particular faces of the host.

  • CLEAR_COVER_EXTERIOR (walls only)
  • CLEAR_COVER_INTERIOR (walls only)
  • CLEAR_COVER_OTHER (all hosts except in-place families and stairs)
  • CLEAR_COVER (in-place families and stairs)
  • CLEAR_COVER_TOP (all hosts except walls, in-place families, and stairs)
  • CLEAR_COVER_BOTTOM (all hosts except walls, in-place families, and stairs)
See Also