Revit 2025.3 API
SurfaceProject |
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: 25.3.0.0 (25.3.0.0)
Syntax
public void ProjectWithGuessPoint( XYZ point, UV guessUV, out UV uv, out double distance )
Public Sub ProjectWithGuessPoint ( point As XYZ, guessUV As UV, <OutAttribute> ByRef uv As UV, <OutAttribute> ByRef distance As Double )
public: void ProjectWithGuessPoint( XYZ^ point, UV^ guessUV, [OutAttribute] UV^% uv, [OutAttribute] double% distance )
member ProjectWithGuessPoint : point : XYZ * guessUV : UV * uv : UV byref * distance : float byref -> unit
Parameters

Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | The projection failed. |
See Also