GetNormal Method


Returns a normal unit vector at the given index.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2021

Syntax

C#
public XYZ GetNormal(
	int idx
)
Visual Basic
Public Function GetNormal ( _
	idx As Integer _
) As XYZ
Visual C++
public:
XYZ^ GetNormal(
	int idx
)

Parameters

idx
Type: System Int32
A zero-based index. It must be consistent with the DistributionOfNormals.

Return Value

XYZ value representing a normal unit vector.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions ArgumentException The given value is not a valid index of a normal of the mesh. A valid value is not negative and is smaller than the number of normals in the mesh.

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 →