NewXYZ Method (Double, Double, Double)


Application New XYZ(Double, Double, Double) Method

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

Namespace: Autodesk.Revit.Creation
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public XYZ NewXYZ(
	double x,
	double y,
	double z
)

Parameters

x Double
The first coordinate.
y Double
The second coordinate.
z Double
The third coordinate.

Return Value

XYZ
Exceptions
Exception Condition
ArgumentException 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 →