2020 Class
Changes 6
C

RebarHostData

Description:
Interface to rebar-specific data stored in each valid rebar host element.
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)
Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.Structure.RebarHostData
public class RebarHostData : IDisposable
Name Return Type Description
M Dispose() None Releases all resources used by the
M GetAreaReinforcementsInHost() IList<AreaReinforcement> Returns all AreaReinforcement elements hosted by the referenced element.
M GetCommonCoverType() nullNothingnullptr If all exposed faces of the host have the same associated CoverType, return that CoverType; otherwise, return .
M GetCoverType(Reference) nullNothingnullptr Gets the CoverType associated with a face of the element.
M GetExposedFaces() IList<Reference> Returns all the exposed faces, that is, those that have an associated CoverType.
M GetFabricAreasInHost() IList<FabricArea> Returns all FabricArea elements hosted by the referenced element.
M GetFabricSheetsInHost() IList<FabricSheet> Returns all FabricSheet elements hosted by the referenced element.
M GetPathReinforcementsInHost() IList<PathReinforcement> Returns all PathReinforcement elements hosted by the referenced element.
M GetRebarContainersInHost() IList<RebarContainer> Returns all RebarContainer elements hosted by the referenced element.
M GetRebarHostData(Element) nullNothingnullptr Gets a RebarHostData object referring to the specified rebar host element.
M GetRebarsInHost() IList<Rebar> Returns all Rebar elements hosted by the referenced element.
M IsFaceExposed(Reference) bool Checks whether the specified face is considered exposed, and therefore has an associated CoverType.
M IsValidHost() bool Reports whether the element is a valid rebar host.
M IsValidHost(Element) bool Identifies whether a given element can host reinforcement.
M SetCommonCoverType(RebarCoverType) None Associate a single CoverType with all exposed faces of the host element.
M SetCoverType(Reference, RebarCoverType) None Associates the specified CoverType with the specified face of the element.
Name Return Type Description
P IsValidObject bool Specifies whether the .NET object represents a valid Revit entity.