Revit 2026 API
Rebar |
Gets a RebarHostData object referring to the specified
rebar host element.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.0.4.0 (26.0.4.0)
Syntax
public static RebarHostData GetRebarHostData( Element host )
Public Shared Function GetRebarHostData ( host As Element ) As RebarHostData
public: static RebarHostData^ GetRebarHostData( Element^ host )
static member GetRebarHostData : host : Element -> RebarHostData
Parameters
- host Element
- An element to host rebar.
Return Value
RebarHostDataA RebarHostData object, or .

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |

Returns for elements that cannot ever be rebar hosts,
such as levels.
See Also