ConvertRebarInSystemToRebars Method


Converts all RebarInSystem elements owned by the input AreaReinforcement to equivalent Rebar elements.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2022

Syntax

C#
public static IList<ElementId> ConvertRebarInSystemToRebars(
	Document doc,
	AreaReinforcement system
)
Visual Basic
Public Shared Function ConvertRebarInSystemToRebars ( _
	doc As Document, _
	system As AreaReinforcement _
) As IList(Of ElementId)
Visual C++
public:
static IList<ElementId^>^ ConvertRebarInSystemToRebars(
	Document^ doc, 
	AreaReinforcement^ system
)

Parameters

doc
Type: Autodesk.Revit.DBDocument
The document.
system
Type: Autodesk.Revit.DB.StructureAreaReinforcement
An AreaReinforcement element in the document.

Return Value

The ids of the newly created Rebar elements.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The element system was not found in the given document. -or- system does not host Rebar.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →