Revit 2025.3 API
SurfaceProject Method |
Project a 3D point orthogonally onto a surface (to find the nearest point).
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 Project( XYZ point, out UV uv, out double distance )
Public Sub Project ( point As XYZ, <OutAttribute> ByRef uv As UV, <OutAttribute> ByRef distance As Double )
public: void Project( XYZ^ point, [OutAttribute] UV^% uv, [OutAttribute] double% distance )
member Project : point : XYZ * uv : UV byref * distance : float byref -> unit
Parameters

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