SetWaypoint Method


Updates the specified waypoint.

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

Syntax

C#
public void SetWaypoint(
	XYZ waypoint,
	int index
)
Visual Basic
Public Sub SetWaypoint ( _
	waypoint As XYZ, _
	index As Integer _
)
Visual C++
public:
void SetWaypoint(
	XYZ^ waypoint, 
	int index
)

Parameters

waypoint
Type: Autodesk.Revit.DBXYZ
The new point for the waypoint.
index
Type: SystemInt32
The index of the waypoint to update.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentNullException A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException Index refers to a non-existent waypoint. -or- This functionality is not available in Revit LT. -or- Cannot perform this operation for a path of travel in a group.

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 →