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: 18.0.0.0 (18.2.0.0)
Since: 2018.1
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- point
- Type: Autodesk.Revit.DB XYZ
The point to project.
- uv
- Type: Autodesk.Revit.DB UV %
The surface coordinates of the projected point.
- distance
- Type: System Double %
Holds the distance from input point to its projection.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.Exceptions ArgumentNullException | A non-optional argument was NULL |
| Autodesk.Revit.Exceptions InvalidOperationException | The projection failed. |