Create Method


Creates a new instance of RebarReinforcementData, or a null reference ( Nothing in Visual Basic) if the operation fails.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.484.0)
Since: 2017

Syntax

C#
public static RebarReinforcementData Create(
	ElementId rebarId,
	int iEnd
)
Visual Basic
Public Shared Function Create ( _
	rebarId As ElementId, _
	iEnd As Integer _
) As RebarReinforcementData
Visual C++
public:
static RebarReinforcementData^ Create(
	ElementId^ rebarId, 
	int iEnd
)

Parameters

rebarId
Type: Autodesk.Revit.DB ElementId
the Id of the rebar
iEnd
Type: System Int32
The end of rebar where the coupler stays. This should be 0 or 1

Return Value

Creates a new instance of RebarReinforcementData

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentNullException A non-optional argument was NULL

See Also