Project Method

Projects the specified point on the face.

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; if projection fails or the nearest point is outside of this face, returns a null reference ( Nothing in Visual Basic) .


The following is the meaning of IntersectionResult's members:
  • XYZPoint is the nearest point to the projected point on the face.
  • UVPoint is the UV coordinates of the nearest point on the face.
  • Distance is the distance from the point to the face.
  • EdgeObject is the edge if projected point is near an edge.
  • EdgeParameter is the parameter of the nearest point on the edge.

See Also