2022 Method
Changes 2
M

PathOfTravel.FindEndsOfShortestPaths

Description:
For a floor plan view, calculates the paths from each start point to its closest destination and return the path end points.
Remarks:
The calculation is done in a floor plan with one or more destinationPoints and one or more startPoints. The shortest path is calculated from each start point to its corresponding closest destination.
public static IList<XYZ> FindEndsOfShortestPaths(
	View DBView,
	IList<XYZ> destinationPoints,
	IList<XYZ> startPoints
)
  • 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.
  • IList<XYZ>
    startPoints
    Start points for which shortest path end points are calculated.
Return Value IList<XYZ> End points of paths calculated from each start point to its corresponding closest destination. If a path cannot be calculated the corresponsing end point is set to the corresponding start point.