GetCouplerId Method


Rebar Get Coupler Id Method

Get the id of the Rebar Coupler that is applied to the rebar at the specified end.

Namespace: Autodesk.Revit.DB.Structure
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public ElementId GetCouplerId(
	int end
)

Parameters

end Int32
0 for the start Rebar Coupler, 1 for the end Rebar Coupler.

Return Value

ElementId
The id of a Rebar Coupler, or invalidElementId if the rebar has no Rebar Coupler at the specified end.
Exceptions
Exception Condition
ArgumentOutOfRangeException end must be 0 or 1.
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 →