<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic SNAP_ON for selected feature in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/snap-on-for-selected-feature/m-p/384507#M10184</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a code in VBA that is written to activate snap agent (SNAP ON), when a feature is selected from a map(with many Feature layers). Can any one help in resolving the following issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Each time a feature is selected, a new snap agent gets added to the snapwindow. how to restrict &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a new snapagent being added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pSnapEnvironment.AddSnapAgent pFeatureSnapagent&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. My shape files data is added from d:\temp, so the following code is used.What is the line of code, to set workspace of &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;selected feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pfworkspace = pwsfactory.OpenFromFile("D:\TEMP", 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pEditor.StartEditing pfworkspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. What line of code to add to check if specific snap agent already exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pFeatureSnapagent.HitType = esriGeometryPartVertex&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;above given lines that are used in my code are for your reference. any sort of help is highly appreciated.Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Aug 2010 04:13:50 GMT</pubDate>
    <dc:creator>shivagugila</dc:creator>
    <dc:date>2010-08-11T04:13:50Z</dc:date>
    <item>
      <title>SNAP_ON for selected feature</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/snap-on-for-selected-feature/m-p/384507#M10184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a code in VBA that is written to activate snap agent (SNAP ON), when a feature is selected from a map(with many Feature layers). Can any one help in resolving the following issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Each time a feature is selected, a new snap agent gets added to the snapwindow. how to restrict &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a new snapagent being added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pSnapEnvironment.AddSnapAgent pFeatureSnapagent&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. My shape files data is added from d:\temp, so the following code is used.What is the line of code, to set workspace of &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;selected feature.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Set pfworkspace = pwsfactory.OpenFromFile("D:\TEMP", 0)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pEditor.StartEditing pfworkspace&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. What line of code to add to check if specific snap agent already exist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pFeatureSnapagent.HitType = esriGeometryPartVertex&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;above given lines that are used in my code are for your reference. any sort of help is highly appreciated.Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Aug 2010 04:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/snap-on-for-selected-feature/m-p/384507#M10184</guid>
      <dc:creator>shivagugila</dc:creator>
      <dc:date>2010-08-11T04:13:50Z</dc:date>
    </item>
  </channel>
</rss>

