Revit 2025.3 API
Area |
Converts all RebarInSystem elements owned by the input AreaReinforcement to equivalent Rebar elements.
Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public static IList<ElementId> ConvertRebarInSystemToRebars( Document doc, AreaReinforcement system )
Public Shared Function ConvertRebarInSystemToRebars ( doc As Document, system As AreaReinforcement ) As IList(Of ElementId)
public: static IList<ElementId^>^ ConvertRebarInSystemToRebars( Document^ doc, AreaReinforcement^ system )
static member ConvertRebarInSystemToRebars : doc : Document * system : AreaReinforcement -> IList<ElementId>
Parameters
- doc Document
- The document.
- system AreaReinforcement
- An AreaReinforcement element in the document.
Return Value
IListElementIdThe ids of the newly created Rebar elements.
| Exception | Condition |
|---|---|
| ArgumentException | The element system was not found in the given document. -or- system does not host Rebar. |
| ArgumentNullException | A non-optional argument was null |
See Also