RebarSpliceUtils.CanRebarBeSpliced
Description:
Verifies if the rebar can be spliced with the provided line.
Verifies if the rebar can be spliced with the provided line.
Remarks:
This method uses the view normal in case of a 2D view and the current workplane normal in case of a 3D view.
If the view normal 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.
Overloads (3):
CanRebarBeSpliced(Rebar,RebarSpliceOptions,Line,ElementId)
public static RebarSpliceError CanRebarBeSpliced(
Rebar rebar,
RebarSpliceOptions spliceOptions,
Line line,
ElementId viewId
)
-
rebarThe rebar to be spliced.
-
spliceOptionsThe RebarSpliceOptions.
-
lineThe line to splice the rebar with.
-
viewIdBased on the view it will be determined the plane of the line.
Return Value
RebarSpliceError
Will return RebarSpliceError.Success if it's possible to splice with line or other enum value corresponding to the error that occurred.
-
A non-optional argument was null