I want to use 'FindShortestNetworkPath'.
It works when I 'll try with conditions that are connected, that there is a solution.
But when the user give a structure that is not possible to connect to each other, I can't catch this error.
I get this message "Value does not fall within the expected range."
But not as an error that it goes to the catch.
Somebody experience with this?
Try
PathColl = Network.FindShortestNetworkPath(structure_start, structure_end, lengt)
Catch ex As Exception
Exit Sub
End Try
Regards
Pieter
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
Can't find what you're looking for? Ask the community or share your knowledge.