ZSnapping works only when UseSnapZTolerance is set to TRUE

2466
1
08-19-2015 07:02 AM
ADev
by
New Contributor

Hi,

I have two machines.

On one of them I can't get ZSnapping to work.

another works as documented(most of the time).

on that problematic machine zsnapping only occurs if tolerance is enabled and set to a proper value. I retrieve feature(point) from file geodatabase(gdb), take its xy coordinates, do a bare IPoint from them(only a call to PutCoords) and then do a FullPointSnap() on it. The method returns TRUE, but Z coordinate stays NaN. Setting spatial ref system or ZAware=true doesn't help.

it doesn't even do ZSnapping in ArcMap UI after I manually start edit session and try to place a line vertex. But works ok once ZTolerance is enabled and set.

ArcGIS 10.2.2 automated through .net4

Reply
0 Kudos
1 Reply
seria
by Esri Contributor
Esri Contributor

Please post a snippet of the relevant code that shows the above scenario.

Have you had a chance to read the following documentation on snapping using z-values and the Editor Snap Environment?

Documentation on how to use ISnapEnvironment to snap using z-values:

http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/d/0001000003m3000000.h...

Working with the Editor Snap Environment

http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/d/0001000004s3000000.h...

Reply
0 Kudos