<?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 Update snap tips with ISnappingEnvironment in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/update-snap-tips-with-isnappingenvironment/m-p/516730#M13932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I added a snapping to a custom tool and trying to change a snap tip with ISnappingEnvironment.SnapTipSymbol Property&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;public&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;override&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; OnMouseMove(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; Button, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; Shift, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; X, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; Y)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;snapResult = m_Snapper.Snap(m_CurrentMouseCoords);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas;"&gt;//Update the snapping feedback.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; (snapResult != &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; (m_SnappingEnv.SnapTipSymbol &lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas;"&gt;IFormattedTextSymbol&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;).Text = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas;"&gt;"Changed"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; m_SnappingFeedback.Update(snapResult, 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;public&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;override&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; Refresh(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; hDC)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; (m_SnappingFeedback != &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; m_SnappingFeedback.Refresh(hDC);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not update the actual tip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the help ESRI says that&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #000000;"&gt;"You have a number of options to customize the tip symbol, including advanced text capabilities provided by IFormattedTextSymbol to provide options for backgrounds, offsets, or right-to-left text capabilities. "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #000000;"&gt;Any help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jul 2015 01:48:20 GMT</pubDate>
    <dc:creator>MarkMindlin</dc:creator>
    <dc:date>2015-07-27T01:48:20Z</dc:date>
    <item>
      <title>Update snap tips with ISnappingEnvironment</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/update-snap-tips-with-isnappingenvironment/m-p/516730#M13932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I added a snapping to a custom tool and trying to change a snap tip with ISnappingEnvironment.SnapTipSymbol Property&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;like &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;public&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;override&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; OnMouseMove(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; Button, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; Shift, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; X, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; Y)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;snapResult = m_Snapper.Snap(m_CurrentMouseCoords);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000; font-family: Consolas;"&gt;//Update the snapping feedback.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; (snapResult != &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; (m_SnappingEnv.SnapTipSymbol &lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-family: Consolas;"&gt;IFormattedTextSymbol&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;).Text = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas;"&gt;"Changed"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; m_SnappingFeedback.Update(snapResult, 0);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;public&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;override&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;void&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; Refresh(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;int&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; hDC)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt; (m_SnappingFeedback != &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas;"&gt;null&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; m_SnappingFeedback.Refresh(hDC);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not update the actual tip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the help ESRI says that&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #000000;"&gt;"You have a number of options to customize the tip symbol, including advanced text capabilities provided by IFormattedTextSymbol to provide options for backgrounds, offsets, or right-to-left text capabilities. "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; text-indent: 0px; color: #000000;"&gt;Any help will be appreciated.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 01:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/update-snap-tips-with-isnappingenvironment/m-p/516730#M13932</guid>
      <dc:creator>MarkMindlin</dc:creator>
      <dc:date>2015-07-27T01:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Update snap tips with ISnappingEnvironment</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/update-snap-tips-with-isnappingenvironment/m-p/516731#M13933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code you posted, the text you are changing is the IFormattedTextSymbol.Text property.&lt;/P&gt;&lt;P&gt;This isn't the string being used by the snapping feedback. As far as I know, this property is just used internally by the ISymbol to apply formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, there's no straightforward way to replace the tip with a custom text. The only way I know is writing an interface which inherits ISnappingFeedback and dealing manually with the Update and Refresh to draw your custom text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way, the string used in the feedback is the one at &lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Description_Property/001600000321000000/" title="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Description_Property/001600000321000000/"&gt;ISnappingResult.Description.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck on your customization.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2015 10:47:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/update-snap-tips-with-isnappingenvironment/m-p/516731#M13933</guid>
      <dc:creator>JavierArtero</dc:creator>
      <dc:date>2015-07-27T10:47:37Z</dc:date>
    </item>
  </channel>
</rss>

