<?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 ArcGIS Explorer SDK GalleryWalkThrough Sample in ArcGIS Explorer Desktop Questions</title>
    <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416711#M2602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, you have the sample as it's installed, I posted code where I had added additional lines so you can try and see if something is failing, as you have Express and not professional Visual Studio so debugging is not supported out of the box. So try my code instead and see if any of the message boxes give you a clue as to what's going wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Apr 2010 07:23:58 GMT</pubDate>
    <dc:creator>ShellyGill2</dc:creator>
    <dc:date>2010-04-22T07:23:58Z</dc:date>
    <item>
      <title>ArcGIS Explorer SDK GalleryWalkThrough Sample</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416707#M2598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm playing around with the ArcGIS Explorer SDK samples and can't get the GalleryWalkthrough Sample code to work (VisualBasic).&amp;nbsp; As I understand it the sample code is supposed to create an Add-In that will place a graphic of my choosing on the map after a mouse click.&amp;nbsp; I can see the Add-In in AGX but when I click on the map no graphic is displayed.&amp;nbsp; Is it possible that theres something in the sample code that doesn't work well with the new 1200 build?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Currently I'm using AGX 1200, ArcGIS Explorer SDK, and Visual Studio Express 2008.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Obviously I'm new to developing so any advice would be much appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Washington, D.C.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 18:53:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416707#M2598</guid>
      <dc:creator>NickJacob</dc:creator>
      <dc:date>2010-04-20T18:53:27Z</dc:date>
    </item>
    <item>
      <title>Helpful Link</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416708#M2599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Replying to my own thread here...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still can't fix the sample code mentioned previously, however I did find a helpful link to share for anyone who is interested.&amp;nbsp; It includes a little more sample code related to the Gallery I'm trying to build.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.esri.com/help/900/arcgisexplorer/sdk/html/97a4466c-60d2-bae0-d47a-ecb073399c5f.htm"&gt;http://resources.esri.com/help/900/arcgisexplorer/sdk/html/97a4466c-60d2-bae0-d47a-ecb073399c5f.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;--------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GIS Analyst&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Washington, D.C.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 19:56:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416708#M2599</guid>
      <dc:creator>NickJacob</dc:creator>
      <dc:date>2010-04-20T19:56:04Z</dc:date>
    </item>
    <item>
      <title>ArcGIS Explorer SDK GalleryWalkThrough Sample</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416709#M2600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using this Gallery Walkthrough and find its working fine for me in 2D and 3D views, in Visual Studio Express 2008. Clicking the drop-down list in the gallery, choose the Gallery item with the Information symbol, and you will see the mouse cursor changes to a cross-hair when you hover over the map. Then click on the map somewhere, and you should see a 'ray' display effect indicating where you clicked, and the information symbol is added to the map. If you show the gallery, but dont select a gallery item, then when you click on the map you will not see any 'ray' feedback highlighting where you just clicked, and the mouse cursor remains as a hand, indicating the map is just navigating. Could this possibly be what happened?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, then ideally next you would debug the add-in - Visual Studio Express however does not offer out of the box functionality to debug DLLs within other EXEs, like you have with add-in projects. You can do the kind of 'debugging' where you show a lot of message boxes so you can see each line of code working - this would be worth a try - I have added some suggested things to check in the code below, taken from the Gallery class - recompile the add-in and give it another go.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Class Gallery
&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits ESRI.ArcGISExplorer.Application.Gallery

&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Use the ArcGIS_E3SDK environment variable here. It points to the install 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'location of the ArcGIS Explorer developer kit, i.e. C:\Program Files\Explorer\DeveloperKit.
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim _strImage As String = Environment.GetEnvironmentVariable("ArcGIS_E3SDK") + "\\..\\Styles\\SymbolImages\\Points of Interest\\Information.png"

 Public Sub New()
&amp;nbsp; Dim envVar As String = Environment.GetEnvironmentVariable("ArcGIS_E3SDK")
&amp;nbsp; System.Windows.Forms.MessageBox.Show(String.Format("Check Environment Variable points to DeveloperKit location on disk: {0}", envVar))

&amp;nbsp; Dim btnImage As Image = Image.FromFile(_strImage)
&amp;nbsp; If (btnImage Is Nothing) Then
&amp;nbsp;&amp;nbsp; System.Windows.Forms.MessageBox.Show("btnImage is Nothing")
&amp;nbsp; End If
&amp;nbsp; Dim myGalleryItem As GalleryItem = New GalleryItem("MyGalleryItem", btnImage, "Click on the map to add graphic")
&amp;nbsp; Me.Items.Add(myGalleryItem)
&amp;nbsp; If (Not Me.Items.Count = 1) Then
&amp;nbsp;&amp;nbsp; System.Windows.Forms.MessageBox.Show("Did not find 1 GalleryItem")
&amp;nbsp; End If

 End Sub


 Public Overrides Sub OnClick(ByVal item As GalleryItem)

&amp;nbsp; Dim md As MapDisplay = Application.ActiveMapDisplay
&amp;nbsp; 
&amp;nbsp; 'Track the point on the map of the mouse click
&amp;nbsp; Dim trackPoint As ESRI.ArcGISExplorer.Geometry.Point = md.TrackPoint()
&amp;nbsp; If (trackPoint Is Nothing) Then
&amp;nbsp;&amp;nbsp; System.Windows.Forms.MessageBox.Show("Tracked Point is nothing")
&amp;nbsp; ElseIf (trackPoint.IsEmpty) Then
&amp;nbsp;&amp;nbsp; System.Windows.Forms.MessageBox.Show("Tracked Point has no geometry")
&amp;nbsp; End If

&amp;nbsp; 'Turn the Point in to a Graphic
&amp;nbsp; Dim pointGraphic As Graphic = New Graphic(trackPoint)
&amp;nbsp; If (md Is Nothing) Then
&amp;nbsp;&amp;nbsp; System.Windows.Forms.MessageBox.Show("New Graphic is nothing")
&amp;nbsp; End If

&amp;nbsp; 'Set the Graphic's symbol to the same as the Gallery Image (Access the Symbol through Marker)
&amp;nbsp; pointGraphic.Symbol = Symbol.Marker.PointsOfInterest.Information
&amp;nbsp; If (pointGraphic.Symbol Is Nothing) Then
&amp;nbsp;&amp;nbsp; System.Windows.Forms.MessageBox.Show("Graphic Symbol is nothing")
&amp;nbsp; End If

&amp;nbsp; 'Add the graphic to the map
&amp;nbsp; md.Graphics.Add(pointGraphic)
&amp;nbsp; System.Windows.Forms.MessageBox.Show(String.Format("Number of graphics in map = {0}", md.Graphics.Count))

 End Sub


End Class&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416709#M2600</guid>
      <dc:creator>ShellyGill2</dc:creator>
      <dc:date>2021-12-11T18:51:35Z</dc:date>
    </item>
    <item>
      <title>Gallery Walkthrough Sample Code</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416710#M2601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Shelly!&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code provided was a big help.&amp;nbsp; Obviuosly I'm new to the developer side of things so providing code for me to look at goes a long ways.&amp;nbsp; I am a little curious as to why our code is so different.&amp;nbsp; Are the samples provided with a standard AGX SDK installation supposed to work right out of the box?&amp;nbsp; I'm copying in the code I'm working with from the &lt;/SPAN&gt;&lt;STRONG&gt;GallyeryWalkthroughVB.sln&lt;/STRONG&gt;&lt;SPAN&gt; file and it contains fewer lines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Public Class Gallery
&amp;nbsp;&amp;nbsp;&amp;nbsp; Inherits ESRI.ArcGISExplorer.Application.Gallery

&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Use the ArcGIS_E3SDK environment variable here. It points to the install 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 'location of the ArcGIS Explorer developer kit, i.e. C:\Program Files\Explorer\DeveloperKit.
&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim _strImage As String = Environment.GetEnvironmentVariable("ArcGIS_E3SDK") + "\\...\\Styles\\SymbolImages\\Points of Interest\\Information.png"



&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Sub New()

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim btnImage As Image = Image.FromFile(_strImage)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim myGalleryItem As GalleryItem = New GalleryItem("MyGalleryItem", btnImage, "Click on the map to add graphic")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Me.Items.Add(myGalleryItem)

&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub


&amp;nbsp;&amp;nbsp;&amp;nbsp; Public Overrides Sub OnClick(ByVal item As GalleryItem)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim md As MapDisplay = Application.ActiveMapDisplay
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Track the point on the map of the mouse click
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim trackPoint As ESRI.ArcGISExplorer.Geometry.Point = md.TrackPoint()
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Turn the Point in to a Graphic
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim pointGraphic As Graphic = New Graphic(trackPoint)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Set the Graphic's symbol to the same as the Gallery Image (Access the Symbol through Marker)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pointGraphic.Symbol = Symbol.Marker.PointsOfInterest.Information
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Add the graphic to the map
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; md.Graphics.Add(pointGraphic)

&amp;nbsp;&amp;nbsp;&amp;nbsp; End Sub


End Class&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Washington, D.C.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:51:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416710#M2601</guid>
      <dc:creator>NickJacob</dc:creator>
      <dc:date>2021-12-11T18:51:38Z</dc:date>
    </item>
    <item>
      <title>ArcGIS Explorer SDK GalleryWalkThrough Sample</title>
      <link>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416711#M2602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep, you have the sample as it's installed, I posted code where I had added additional lines so you can try and see if something is failing, as you have Express and not professional Visual Studio so debugging is not supported out of the box. So try my code instead and see if any of the message boxes give you a clue as to what's going wrong.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 07:23:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-explorer-desktop-questions/arcgis-explorer-sdk-gallerywalkthrough-sample/m-p/416711#M2602</guid>
      <dc:creator>ShellyGill2</dc:creator>
      <dc:date>2010-04-22T07:23:58Z</dc:date>
    </item>
  </channel>
</rss>

