M

RebarCoupler.Create

Description:
Creates a new instance of a Rebar Coupler element within the project.
public static RebarCoupler Create(
	Document doc,
	ElementId typeId,
	ReinforcementData pFirstData,
	ReinforcementData pSecondData,
	out RebarCouplerError error
)
  • doc
    A document.
  • typeId
    type id for coupler
  • pFirstData
    information about the first reinforcement to be coupled
  • pSecondData
    information about the second reinforcement to be coupled; if a nullptr is passed in the coupler is placed on one reinforcement
  • error
    will be ValidationSuccesfully(0) if ok, otherwise the failure reason
Return Value RebarCoupler The newly created Rebar Coupler instance, or if the operation fails.