Search
RoutingOptions.LengthCost Property
See Also
 



Gets or sets a value added to the total cost of a route for each piece of the routing grid occupied by the route.

 Syntax

VB6  Copy Code

Public Property Get LengthCost() As Byte
Public Property Let LengthCost( _
    ByVal value As Byte _
)

C++  Copy Code

public:
unsigned char get_LengthCost ()
void put_LengthCost (
    unsigned char value
)

 Property Value

A byte value. The default is 2.

 Remarks

This is a penalty value added to the total cost of an evaluated arrow route for each piece of the routing grid it occupies. The routing algorithm aims to find paths that have a minimal cost, so assigning a greater value to LengthCost leads to generating shorter paths.

 See Also