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: 23.0.0.0 (23.1.0.0)
Since:
2020.2
Syntax
C# |
---|
public static IList<XYZ> FindStartsOfLongestPathsFromRooms(
View DBView,
IList<XYZ> destinationPoints
) |
Visual Basic |
---|
Public Shared Function FindStartsOfLongestPathsFromRooms ( _
DBView As View, _
destinationPoints As IList(Of XYZ) _
) As IList(Of XYZ) |
Visual C++ |
---|
public:
static IList<XYZ^>^ FindStartsOfLongestPathsFromRooms(
View^ DBView,
IList<XYZ^>^ destinationPoints
) |
Parameters
- DBView
- Type: Autodesk.Revit.DB..::..View
The floor plan view to use when computing the points.
- destinationPoints
- Type: System.Collections.Generic..::..IList<(Of <(<'XYZ>)>)>
Destination points. The input Z coordinates are ignored and set to the view's level elevation.
Return Value
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.
Remarks
Exceptions
See Also