SetValueAsXYZ Method


Sets the value property as a vector or point XYZ.

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

Syntax

C#
public void SetValueAsXYZ(
	XYZ xyz
)
Visual Basic
Public Sub SetValueAsXYZ ( _
	xyz As XYZ _
)
Visual C++
public:
void SetValueAsXYZ(
	XYZ^ xyz
)

Parameters

xyz
Type: Autodesk.Revit.DBXYZ
The new value.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException The input value is invalid for this AssetPropertyDoubleArray3d property.
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException The asset property is not editable.

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 →