GetCurveUV Method (Int32)


Calculate a 2D curve that represents the edge in the uv-parameter plane of one of the edge's faces. The output curve's direction will follow the parametric direction of the edge, not the topological direction of the edge on the given face.

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

Syntax

C#
public CurveUV GetCurveUV(
	int index
)
Visual Basic
Public Function GetCurveUV ( _
	index As Integer _
) As CurveUV
Visual C++
public:
CurveUV^ GetCurveUV(
	int index
)

Parameters

index
Type: SystemInt32
The index of the face (0 or 1).

Return Value

If successful, returns the calculated CurveUV, a null reference (Nothing in Visual Basic) otherwise.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException Thrown when the specified index is not 0 or 1.

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 →