Project Method

Projects the specified point on this curve.

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


public IntersectionResult Project(
	XYZ point
Visual Basic
Public Function Project ( _
	point As XYZ _
) As IntersectionResult
Visual C++
IntersectionResult^ Project(
	XYZ^ point


Type: Autodesk.Revit.DB XYZ
The point to be projected.

Return Value

Geometric information if projection is successful.


The following is the meaning of every IntersectionResult's members:
  • XYZPoint is the nearest point on the curve;
  • Parameter is the unnormalized parameter on the curve (use ComputeNormalizedParameter to compute the normalized value)
  • Distance is the distance from the point to the curve (equivalent to Distance).


Exception Condition
Autodesk.Revit.Exceptions InvalidOperationException Thrown when the curve is an arc and either its radius is zero or the input point is the center of the arc. Thrown when the curve is an elliptical arc and the input point is one of the foci of the elliptical arc.

See Also