PathOfTravelFindStartsOfLongestPathsFromRooms Method

For a floor plan view, calculates paths from points inside rooms to the closests of the destinations. Returns the start points of the longest path(s). If multiple paths have the same longest length, returns multiple start points.

Namespace: Autodesk.Revit.DB.Analysis
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public static IList<XYZ> FindStartsOfLongestPathsFromRooms(
	View DBView,
	IList<XYZ> destinationPoints
)

Parameters

DBView  View
The floor plan view to use when computing the points.
destinationPoints  IListXYZ
Destination points. The input Z coordinates are ignored and set to the view's level elevation.

Return Value

IListXYZ
Start points of the paths with longest lengths. The array is empty if there are no valid paths from any points in rooms to any of the destination points.
Exceptions
ExceptionCondition
ArgumentException View is not a floor plan view.
ArgumentNullException A non-optional argument was null
InvalidOperationException The Path of Travel calculation service is not available -or- This functionality is not available in Revit LT.
Remarks
The entire plan is divided in small tiles, and the distance to the closest destination point is calculated for each tile center point. Only tile center points that are located in rooms in the view are taken into account.
See Also