Curve.Intersect(Curve, IntersectionResultArray) Method

Note: This API is now obsolete.

Calculates the intersection of this curve with the specified curve and returns the intersection results.


Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)

Syntax

C#

[ObsoleteAttribute("This method is deprecated in Revit 2026 and may be removed in a later version of Revit. Use the new Curve.Intersect method with CurveIntersectResultOption.Detailed. Note also that the updated method has improved handling of certain edge cases.")]
public SetComparisonResult Intersect(
	Curve curve,
	out IntersectionResultArray resultArray
)

Parameters

curve  Curve
The specified curve to intersect with this curve.
resultArray  IntersectionResultArray%
Provides more information about the intersection.

Return Value

SetComparisonResult

Exceptions

ExceptionCondition
ArgumentNullException Thrown when the specified curve is null.
InvalidOperationException Thrown when failed to calculate the intersection.

Remarks

The array of the intersection results contains one entry for each point where curves intersect. The following is the meaning of IntersectionResult members:

See Also

Reference

Curve Class
Intersect Overload
Autodesk.Revit.DB Namespace