RebarCoupler.Create
Description:
Creates a new instance of a Rebar Coupler element within the project.
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
)
-
docA document.
-
typeIdtype id for coupler
-
pFirstDatainformation about the first reinforcement to be coupled
-
pSecondDatainformation about the second reinforcement to be coupled; if a nullptr is passed in the coupler is placed on one reinforcement
-
errorwill be ValidationSuccesfully(0) if ok, otherwise the failure reason
Return Value
nullNothingnullptr
The newly created Rebar Coupler instance, or null Nothing nullptr a null reference ( Nothing in Visual Basic) if the operation fails.
-
A non-optional argument was null
-
A value passed for an enumeration argument is not a member of that enumeration