Item Property


Indexed access to coordinates.

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

Syntax

C#
public double this[
	int idx
] { get; }
Visual Basic
Public ReadOnly Default Property Item ( _
	idx As Integer _
) As Double
	Get
Visual C++
public:
property double default[int idx] {
	double get (int idx);
}

Parameters

idx
Type: SystemInt32
Use 0 for X, 1 for Y and 2 for Z.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentOutOfRangeException Thrown when an attempt is made to access the coordinate with an index that is larger than 2.

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 →