ArcObjects Library Reference (Controls)  

IEngineFeatureSnapAgent.FeatureCache Property

The FeatureCache associated with the engine feature snap agent.

[Visual Basic .NET]
Public ReadOnly Property FeatureCache As IFeatureCache
[C#]
public IFeatureCache FeatureCache {get;}
[C++]
HRESULT get_FeatureCache(
  IFeatureCache** cache
);
[C++]

Parameters

cache [out, retval]

  cache is a parameter of type IFeatureCache

Product Availability

Available with ArcGIS Engine.

Remarks

This property has no significance when creating a new engine feature snap agent. Instead, it is used, albeit rarely, inside a sketch tool to perform custom operations on features held in the snapping environments feature cache. For example, the engine editor's SketchTool can issue an angular constraint and still honor the current snapping environment. If this case, a new point would be on the specified angle no matter what but its distance away may change depending on whether or not the point falls within the snap tolerance of a feature. To implement this, the Sketch Tool issues the angular constraint and then reuses the snapping environments feature caches to check if the new point is within snap tolerance of a feature belonging to one of the feature snap agents. You could create your own caches to do this, one for each feature snap agent, but since they already exist, it is much easier to use them.

See Also

IEngineFeatureSnapAgent Interface