2025.3 Method
Changes 5
M

RebarSpliceUtils.UnifyRebarsIntoOne

Description:
This method will unify the rebars by removing the splice between them. A new rebar will be created because of this operation. The curves of the resulted rebar will be the curves of the first rebar continued by the curves of the second rebar.
public static ElementId UnifyRebarsIntoOne(
	Document document,
	ElementId firstRebarId,
	ElementId secondRebarId
)
Return Value ElementId Returns the id of the new rebar. In case that unify operation fails, it will return invalidElementId