PathOfTravel.UpdateMultiple(Document, IList<ElementId>, IList<PathOfTravelCalculationStatus>)
Method
Description:
Updates the specified paths of travel by recalculating each path using their original start and end points and provides creation result statuses.
Updates the specified paths of travel by recalculating each path using their original start and end points and provides creation result statuses.
Remarks:
For unsuccessfully updated elements, Revit will post warnings.
For unsuccessfully updated elements, Revit will post warnings.
Syntax
public static int UpdateMultiple(
Document adoc,
IList<ElementId> elementsToUpdate,
out IList<PathOfTravelCalculationStatus> resultStatus
)
Parameters
Parameter | Type | Description |
---|---|---|
adoc | Document | Document of elements to be updated. |
elementsToUpdate | IList | The list of <a href="44f3f7b1-3229-3404-93c9-dc5e70337dd6.htm">ElementId</a>of the paths to update. |
resultStatus | IList | 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
Type | Description |
---|---|
Int32 | number of successfully updated elements |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
InvalidOperationException | This functionality is not available in Revit LT. |