AngleOnPlaneTo Method


XYZ Angle On Plane To Method

Returns the angle between this vector and the specified vector projected to the specified plane.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public double AngleOnPlaneTo(
	XYZ right,
	XYZ normal
)

Parameters

right XYZ
The specified vector.
normal XYZ
The normal vector that defines the plane.

Return Value

Double
The real number between 0 and 2*PI equal to the projected angle between the two vectors.
Exceptions
Exception Condition
ArgumentNullException Thrown when right or normal is .
Remarks
The angle is projected onto the plane orthogonal to the specified normal vector, counterclockwise with the normal pointing upwards.
See Also
ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →