NewXYZ Method (Double, Double, Double)


Creates a XYZ object representing coordinates in 3-space with supplied values.

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

Syntax

C#
public XYZ NewXYZ(
	double x,
	double y,
	double z
)
Visual Basic
Public Function NewXYZ ( _
	x As Double, _
	y As Double, _
	z As Double _
) As XYZ
Visual C++
public:
XYZ^ NewXYZ(
	double x, 
	double y, 
	double z
)

Parameters

x
Type: SystemDouble
The first coordinate.
y
Type: SystemDouble
The second coordinate.
z
Type: SystemDouble
The third coordinate.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException Thrown when setting an infinite number to the X, Y or Z property.

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 →