2021 Method
Changes 1
M

PathOfTravel.FindStartsOfLongestPathsFromRooms

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.
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.
public static IList<XYZ> FindStartsOfLongestPathsFromRooms(
	View DBView,
	IList<XYZ> destinationPoints
)
  • DBView
    The floor plan view to use when computing the points.
  • IList<XYZ>
    destinationPoints
    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.