PathOfTravel.FindStartsOfLongestPathsFromRooms
Method
Description:
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.
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.
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.
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.
Syntax
Parameters
Parameter | Type | Description |
---|---|---|
DBView | View | The floor plan view to use when computing the points. |
destinationPoints | IList | Destination points. The input Z coordinates are ignored and set to the view's level elevation. |
Return Value
Type | Description |
---|---|
IList | 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. |