SpatialNeighbors question

Y

Yevgeny Barkovsky

Hello everybody!

I have many polylines in the my Visio documement.
What I want: for each of polylines, I want to have other polylines what join
to each.
More precisely: One polyline with several segments (call it obj1st), and
other line (consists only from one segment) what touching first polyline
(call it obj2nd).
This call

visio.Selection objSelection = obj1st.get_SpatialNeighbors( 0, TOLERANCE, 0,
null );



don't return obj2nd in the objSelection shapes. All polylines have same
parent, TOLERANCE here enough big (0.5).

Also, here is DistanceFrom results:

obj1st.DistanceFrom(obj2nd) = 0,198

obj2nd.DistanceFrom(obj1st) = 0

Why?

But more important for me is to have obj2nd in the result of
SpatialNeighbors for obj1st. How can I reach this?
 
Top