RebarSpliceUtils.SpliceRebar(Document, ElementId, RebarSpliceOptions, IList<RebarSpliceGeometry>)
Method
Description:
Splice a rebar with a list of RebarSpliceGeometry.
Splice a rebar with a list of RebarSpliceGeometry.
Syntax
public static IList<ElementId> SpliceRebar(
Document document,
ElementId rebarIdToSplit,
RebarSpliceOptions spliceOptions,
IList<RebarSpliceGeometry> spliceGeometries
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| document | Document | The document |
| rebarIdToSplit | ElementId | Rebar id to split. |
| spliceOptions | RebarSpliceOptions | The rebar splice options. |
| spliceGeometries | IList | A list of RebarSpliceGeometry that indicates where the rebar will be spliced. |
Return Value
| Type | Description |
|---|---|
| IList | Returns the ids of the rebars that are considered to be spliced. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | Free Form Rebars, or Shape Driven Rebars that are Multiplanar or have a shape that whose definition is RebarShapeDefinitionByArc can't be spliced. Also, if the Rebar is member of a Group it cannot be spliced. |
| ArgumentNullException | A non-optional argument was null |