M

RebarSpliceUtils.SpliceRebar

Description:
Splice a rebar with a line.
Remarks:

If the provided linePlaneNormal is parallel with the bar plane normal the bounded line will be used to calculate the splice geometries where the bar will be splice.

Otherwise, the line will be extended to exceed the bounding box of the bar.

public static IList<ElementId> SpliceRebar(
	Document document,
	ElementId rebarIdToSplice,
	RebarSpliceOptions spliceOptions,
	Line line,
	XYZ linePlaneNormal
)
  • document
    The document
  • rebarIdToSplice
    Rebar id to splice.
  • spliceOptions
    The rebar splice options.
  • line
    The line used for splice.
  • linePlaneNormal
    The normal of the plane of the line.
Return Value IList<ElementId> Returns the ids of the rebars that are considered to be spliced.
  • Free Form Rebars other than Morphed, or Shape Driven Rebars that are Multiplanar or have a shape whose definition is RebarShapeDefinitionByArc can't be spliced. Also, if the Rebar is member of a Group it cannot be spliced. -or- The rebar cannot be spliced with the provided line.
  • A non-optional argument was null