RebarSpliceUtils.UnifyRebarsIntoOne
Method
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.
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.
Syntax
public static ElementId UnifyRebarsIntoOne(
Document document,
ElementId firstRebarId,
ElementId secondRebarId
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| document | Document | The document. |
| firstRebarId | ElementId | First Rebar id. |
| secondRebarId | ElementId | Second Rebar id. |
Return Value
| Type | Description |
|---|---|
| ElementId | Returns the id of the new rebar. In case that unify operation fails, it will return invalidElementId |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Rebar elements must have a splice connection between them in order to be unified. |
| ArgumentNullException | A non-optional argument was null |