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.3.0.0 (25.3.0.0)
Syntax
C#
public static IList<XYZ> FindStartsOfLongestPathsFromRooms( View DBView, IList<XYZ> destinationPoints )
Parameters
- DBView View
- The floor plan view to use when computing the points.
- destinationPoints IList<XYZ>
- Destination points. The input Z coordinates are ignored and set to the view's level elevation.
Return Value
IList<XYZ>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
Exception | Condition |
---|---|
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. |