//refresh snap window UID extUid = new UIDClass(); extUid.Value = "esriEditor.SnappingWindow"; ISnappingWindow snapWindow = _editor.FindExtension(extUid) as ISnappingWindow; snapWindow.RefreshContents();
Be careful when using .ClearSnapAgents as it will delete them all which might not be what you want.The other way to get the featuresnapagent for a layer is to loop through all agents (ISnapEnvironment.SnapAgentCount) then find the one you want by name.Dont forget to refresh the snapping window after you have changed the snapagent properties.//refresh snap window UID extUid = new UIDClass(); extUid.Value = "esriEditor.SnappingWindow"; ISnappingWindow snapWindow = _editor.FindExtension(extUid) as ISnappingWindow; snapWindow.RefreshContents();
Use IFeatureSnapAgent2.HitType.
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.