<?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 Curious behaviour creating a Note in Desktop Explorer in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/curious-behaviour-creating-a-note-in-desktop/m-p/658483#M4135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have simulations we run and we show the results in Desktop Explorer.&amp;nbsp; We use Notes and Folders to present of what the user is looking at.&amp;nbsp; We save one Note as the one we want to move focus to which contains the largest plume in the collection of plumes that we are displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do a straight analysis everything works without issues.&amp;nbsp; No problems at all.&lt;/P&gt;&lt;P&gt;If we run an analysis as a scenario we crash.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The only difference between the two is we save the scenario results to Access and we do not save it for the straight analysis.&lt;/P&gt;&lt;P&gt;The issue this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I set the Note to be focused as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Note notefocus = currentNote;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Later we do this:&lt;/P&gt;&lt;P&gt; if (noteFocus != null)&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGISExplorer.Geometry.Envelope env =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ESRI.ArcGISExplorer.Geometry.Envelope)GeometryOperations.Scale(noteFocus.Graphic.Geometry.GetEnvelope(), 1.2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noteFocus.Popup.Activate();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Extension.ZoomTo( env );&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The call to Extension.Zoom is our own library of ESRI utility functions.&amp;nbsp; We die trying to access noteFocus.Graphic as this is set to null.&lt;/P&gt;&lt;P&gt;This null even if I manually define it from the original Note.Graphic as well as just setting the instance.&amp;nbsp; In spite of this being null, the original object still has a graphic object defined and accessible.&amp;nbsp; Then it gets weirder.&amp;nbsp; On one out of 3 machines it works without a problem.&amp;nbsp; The only difference between this simulation and all of the other working simulations (so far as I know) is that the plume is the largest and deadliest we have every built.&amp;nbsp; It is also a circle that we created manually (since ESRI doesn't know how to create a circle in software) by copying each point on the circle to a new polygon then smoothing it.&amp;nbsp; If we don't do this then esri returns a "circle" made up of 2 points.&amp;nbsp; Sql Server Geometry needs a minimum of 3 points to convert their polygon to an SQL polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ever experienced this and if so what is the workaround you found to stop the Graphic from becoming nulled???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Nov 2015 05:35:55 GMT</pubDate>
    <dc:creator>MichaelEber</dc:creator>
    <dc:date>2015-11-10T05:35:55Z</dc:date>
    <item>
      <title>Curious behaviour creating a Note in Desktop Explorer</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/curious-behaviour-creating-a-note-in-desktop/m-p/658483#M4135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have simulations we run and we show the results in Desktop Explorer.&amp;nbsp; We use Notes and Folders to present of what the user is looking at.&amp;nbsp; We save one Note as the one we want to move focus to which contains the largest plume in the collection of plumes that we are displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do a straight analysis everything works without issues.&amp;nbsp; No problems at all.&lt;/P&gt;&lt;P&gt;If we run an analysis as a scenario we crash.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The only difference between the two is we save the scenario results to Access and we do not save it for the straight analysis.&lt;/P&gt;&lt;P&gt;The issue this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I set the Note to be focused as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Note notefocus = currentNote;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Later we do this:&lt;/P&gt;&lt;P&gt; if (noteFocus != null)&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ESRI.ArcGISExplorer.Geometry.Envelope env =&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (ESRI.ArcGISExplorer.Geometry.Envelope)GeometryOperations.Scale(noteFocus.Graphic.Geometry.GetEnvelope(), 1.2);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; noteFocus.Popup.Activate();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Extension.ZoomTo( env );&lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The call to Extension.Zoom is our own library of ESRI utility functions.&amp;nbsp; We die trying to access noteFocus.Graphic as this is set to null.&lt;/P&gt;&lt;P&gt;This null even if I manually define it from the original Note.Graphic as well as just setting the instance.&amp;nbsp; In spite of this being null, the original object still has a graphic object defined and accessible.&amp;nbsp; Then it gets weirder.&amp;nbsp; On one out of 3 machines it works without a problem.&amp;nbsp; The only difference between this simulation and all of the other working simulations (so far as I know) is that the plume is the largest and deadliest we have every built.&amp;nbsp; It is also a circle that we created manually (since ESRI doesn't know how to create a circle in software) by copying each point on the circle to a new polygon then smoothing it.&amp;nbsp; If we don't do this then esri returns a "circle" made up of 2 points.&amp;nbsp; Sql Server Geometry needs a minimum of 3 points to convert their polygon to an SQL polygon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone ever experienced this and if so what is the workaround you found to stop the Graphic from becoming nulled???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2015 05:35:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/curious-behaviour-creating-a-note-in-desktop/m-p/658483#M4135</guid>
      <dc:creator>MichaelEber</dc:creator>
      <dc:date>2015-11-10T05:35:55Z</dc:date>
    </item>
  </channel>
</rss>

