M

PathOfTravel.Create

Description:
Creates a new path of travel between two points.
Remarks:
InvalidOperationException is thrown if PathOfTravel cannot be created for the following conditions:
  • View has crop box active and crop box is split
  • View has crop box active and start or end point lies outside of the crop
  • View model outline area is larger than the current limit (2,000,000 sq.ft.)
  • View export contains too much geometry (more than 200,000 lines)
  • Start and end points are too close
Overloads (2):
Create(View,XYZ,XYZ)
public static PathOfTravel Create(
	View DBView,
	XYZ pathStart,
	XYZ pathEnd
)
  • DBView
    The floor plan view to use when computing the shortest distance.
  • pathStart
    The start point of the path. The input Z coordinates are ignored and set to the view's level elevation.
  • pathEnd
    The end point of the path. The input Z coordinates are ignored and set to the view's level elevation.
Return Value nullNothingnullptr The newly created path of travel element, or null Nothing nullptr a null reference ( Nothing in Visual Basic) if no path between the two points is found.