Share

Surface.ProjectWithGuessPoint Method

Project a 3D point orthogonally onto a surface (to find the nearest point). This method is meant to be used when a good approximate solution for the projection is available. Throws InvalidOperationException if the projection fails.


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

Syntax

C#

public void ProjectWithGuessPoint(
	XYZ point,
	UV guessUV,
	out UV uv,
	out double distance
)

Parameters

point  XYZ
The point to project.
guessUV  UV
The calculation will look for a project near the provided UV.
uv  UV%
The surface coordinates of the projected point.
distance  Double%
Holds the distance from input point to its projection.

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null
InvalidOperationException The projection failed.

See Also

Reference

Was this information helpful?