This method calculates the distance to a Line L The parameter Lam1 can be taken to calculate the point, which have the smallest distance to the other Line L . Nearest1 = Value(Lam1). The parameter Lam2 can be taken to calculate the point of L , which have the smallest distance to the Linetype this. Nearest2 = L.Value(Lam2).