Share

PathOfTravel.UpdateMultiple(Document, IList<ElementId>, IList<PathOfTravelCalculationStatus>) Method

Updates the specified paths of travel by recalculating each path using their original start and end points and provides creation result statuses.


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

Syntax

C#

public static int UpdateMultiple(
	Document adoc,
	IList<ElementId> elementsToUpdate,
	out IList<PathOfTravelCalculationStatus> resultStatus
)

Parameters

adoc  Document
Document of elements to be updated.
elementsToUpdate  IList<ElementId>
The list of ElementIdof the paths to update.
resultStatus  IList<PathOfTravelCalculationStatus>%
Result statuses of each path of travel creation. The order of statuses corresponds to the order of elements in the array passed to the function.

Return Value

Int32
number of successfully updated elements

Exceptions

ExceptionCondition
ArgumentNullException A non-optional argument was null
InvalidOperationException This functionality is not available in Revit LT.

Remarks

For unsuccessfully updated elements, Revit will post warnings.

See Also

Reference

Was this information helpful?