Visual Basic |
---|
Public Function MeasureRoute( _ ByVal x1 As Double, _ ByVal y1 As Double, _ ByVal z1 As Double, _ ByVal x2 As Double, _ ByVal y2 As Double, _ ByVal z2 As Double, _ ByVal propertyName As String, _ ByVal filter As String, _ ByVal locusNoGo As String, _ ByVal bCreateLine As Integer _ ) As Double |
True
|
Create a LineString item which follows the route found. |
False
|
Do not create a LineString item. |
The total of the expression results for each link in the route, e.g. with _length#/Speed#, the return value is the total time. If the default expression is used the return value is the length of the route found.
The named Spatial Filter used will normally have its testing mode set to exclude any items which cross it, using a call similar to the following:
CreateLocusFromItem("SpatialFilter",SIS_GT_INTERSECT,SIS_GM_GEOMETRY)
Available: GEO MM ME MD OM OD OV SISpy
Group:
Distance = sis.MeasureRoute (100, 150, 0, 500, 300, 0, "_length#", "A Roads only", "NoGo", True)
It would be possible to use GetPosEx to generate a snap position.
Send comments on this topic.
Click to return to www.cadcorp.com
© Copyright 2000-2017 Computer Aided Development Corporation Limited (Cadcorp).