<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.esri.com/Info/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ArcGIS Explorer Blog : SDK</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/SDK/default.aspx</link><description>Tags: SDK</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Debug Build: 61120.2)</generator><item><title>Tip for add-in developers: How to bundle files in an EAZ file</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2009/09/17/tip-for-add-in-developers-how-to-bundle-files-in-an-eaz-file.aspx</link><pubDate>Thu, 17 Sep 2009 20:45:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:5886</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/5886.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=5886</wfw:commentRss><description>&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; I am working on an add-in that will include several images that will be displayed as image overlays when the user views certain layers. What is the best way to include these images with my .eaz file so they can be accessed at runtime?&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Answer:&lt;/STRONG&gt; The correct way to bundle images, XML files, or whatever you need in your add-in is to include them in your Visual Studio add-in project using the Build Action of "Content." At runtime ArcGIS Explorer unzips the .eaz file into a temporary cache folder. In your code you can simply reference the images (or other files) as follows:&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';"&gt;string executingAssemblyFqPath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN:0in 0in 0pt;"&gt;&lt;SPAN style="FONT-SIZE:10pt;FONT-FAMILY:'Courier New';"&gt;Image resource = Image.FromFile(Path.Combine(executingAssemblyFqPath,”aImage.jpg”));&lt;/SPAN&gt;&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=5886" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/SDK/default.aspx">SDK</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/add-ins/default.aspx">add-ins</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/EAZ/default.aspx">EAZ</category></item><item><title>ArcGIS Explorer code snippets</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2009/09/10/arcgis-explorer-code-snippets.aspx</link><pubDate>Thu, 10 Sep 2009 23:15:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:5759</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/5759.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=5759</wfw:commentRss><description>&lt;P&gt;Code snippets are a very useful feature of Visual Studio. We've added some key snippets to the ArcGIS Explorer SDK – the kinds of things that are simple but that you end up writing frequently, or that you&amp;nbsp;might forget. Even some of the team members forget this stuff and have been pleased to be reminded of the snippets, so we know that you'll find these very useful.&lt;/P&gt;
&lt;P&gt;For example, it’s easy to forget how to get hold of the application objects when coding from scratch, so we added a code snippet for every one of the static members that allow you to drill in to the ArcGIS Explorer object model. It’s also easy to forget that including the SuspendDrawing method call in a Using statement will ensure the drawing is resumed correctly; so we added a code snippet for this. These snippets are available in both Visual Basic and Visual C#, and you may have accessed them by right-clicking in the code window and choosing Insert Code Snippet, then Explorer:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5766/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;BUT there is an even easier way to do this. To get a reference to the currently active View, just type “active” in the code window; you’ll see the&amp;nbsp; intellisense in Visual Studio listing the activeMapDisplay keyboard shortcut to the ‘Get ActiveMapDisplay from Application’ snippet. Just hit Tab and the snippet is inserted.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5767/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;If you forget what snippets are available, or want to look up a keyboard shortcut, you can use the Visual Studio Code Snippet Manager to browse the Explorer snippets including their keyboard shortcuts. &lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5768/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;A class="" title="Code snippet table" href="http://blogs.esri.com/Info/photos/e3/images/5760/original.aspx" target=_blank&gt;Here's&amp;nbsp;a table&lt;/A&gt; of Visual Basic and Visual C# code snippets currently in the SDK for your convenience.&lt;/P&gt;
&lt;P&gt;&lt;A class="" href="http://blogs.esri.com/Info/photos/e3/images/5760/original.aspx" target=_blank&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5761/original.aspx" border=0&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;/A&gt;Code snippets are not just for VB and C# code though, they are also useful when you’re working declaratively with application conditions. These are pre-defined application states that can be used to determine when Buttons, DockWindows, and Galleries are enabled or disabled. For&amp;nbsp;more information see the&amp;nbsp;&lt;A class="" href="http://resources.esri.com/help/900/arcgisexplorer/sdk/doc/5b51bc5c-8303-42a6-a329-5e07a11d4dda.htm" target=_blank&gt;ArcGIS Explorer application conditions&lt;/A&gt; SDK Help topic. &lt;/P&gt;
&lt;P&gt;&lt;BR&gt;You can set an application condition for a new customization when you create it using the New Item wizards which are part of the ArcGIS Explorer Tools for Visual Studio. For more information see the &lt;A class="" href="http://resources.esri.com/help/900/arcgisexplorer/sdk/doc/8f30d1ff-54b0-4f91-86b9-b63322695426.htm" target=_blank&gt;Visual Studio tools for ArcGIS Explorer&lt;/A&gt; SDK Help topic.&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5769/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Open the Addins.xml file in your add-in project and for the XML element describing the add-in class. You will see an attribute named &lt;EM&gt;condition&lt;/EM&gt; with a text string indicating the application condition you picked (note that if you chose the Always option in response to When should the Button be enabled, there will be no condition attribute at all in your XML).&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5770/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Changing an application condition is easy to do by making use of the XML code snippets. Right click in the XML file and choose Insert Code Snippet, then Explorer. You will see a list of all the application conditions you can apply; choosing a condition snippet will add the correct text string to the XML file.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5771/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR&gt;Note that the application conditions XML code snippets do not have intellisense and keyboard shortcuts - that’s something we’re working on for a future release. Let us know what you think of the snippets, and what kind of snippets you’d like to see in the&amp;nbsp;future.&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=5759" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/SDK/default.aspx">SDK</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Visual+Studio/default.aspx">Visual Studio</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Snippets/default.aspx">Snippets</category></item><item><title>Getting started with the ArcGIS Explorer SDK: your first button</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2009/08/20/getting-started-with-the-arcgis-explorer-sdk-your-first-button.aspx</link><pubDate>Thu, 20 Aug 2009 18:50:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:5496</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/5496.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=5496</wfw:commentRss><description>&lt;P&gt;If you want to customize ArcGIS Explorer there's a lot you can do without any programming. &lt;A class="" title="Application configurations Help topic" href="http://webhelp.esri.com/arcgisexplorer/900//en/hh_goto.htm#appconfigs.htm" target=_blank&gt;Application configurations&lt;/A&gt; provide an easy way to&amp;nbsp;customize everything from the startup splash screen, functions which are available to users, and what&amp;nbsp;tabs and controls are displayed. But invariably you may want to extend ArcGIS Explorer's capabilities, perhaps by tapping into an ArcGIS, or other, service.&amp;nbsp;To do that you'll need to program with the SDK. &lt;/P&gt;
&lt;P&gt;Here's a quick start to creating your first button control, which can be easily packaged, shared, and delivered as an add-in. (*.eaz file). Using templates provided with the SDK this is easy to do. Add-ins can also be part of an application configuration, and we'll cover more on that in future posts. But let's get started...&lt;/P&gt;
&lt;P&gt;First, you need to &lt;A class="" title="ArcGIS Explorer download page" href="http://resources.esri.com/arcgisexplorer/900/index.cfm?fa=download" target=_blank&gt;download the ArcGIS Explorer SDK&lt;/A&gt;, a separate download from the core application. Begin by starting Visual Studio and create a new project.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5499/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Within the SDK you have both project and item templates. In this case we are going to make use of the project template for a new button add-in. From the new project window in Visual Studio browse the template options in the language of your choice (either VB.Net or C#) and look under ArcGIS Explorer for the project templates. Choose the ArcGIS Explorer button option form the list on the right, then fill in the information about what to call the project and what folder to place it in. Here we've called the new project "myFirstButton."&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5500/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;After specifying the project name (or taking the default) and setting the folder, click the OK button.&amp;nbsp;There are various additional parameters you can set for your project and the button you’re about to create.&amp;nbsp;The templates include a wizard to guide you through this process.&amp;nbsp;On the first page of the wizard are all the settings for the project including a description and the name of the group to place the button in.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5501/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;When&amp;nbsp;you've completed your project settings (or&amp;nbsp;accepted the default), click on the Next button to move on to the button settings.&amp;nbsp;On the button settings page you are setting the parameters specific to the button we are going to create.&amp;nbsp; Projects can have one then one Add-In within them, so you need to set parameters for each individual Add-In (button in this case).&amp;nbsp; The button settings include the Caption that will be displayed in ArcGIS Explorer, the Image to use with it, and the Availability setting.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are going to leave the Availability at the default setting of Always, but this is a key setting as it allows you to specify what conditions are necessary for your button to be active.&amp;nbsp;For instance, you may write a button to perform a custom operation on a Feature Layer and therefore would only want the button to be available when a Feature Layer was selected in the Contents window.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5502/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;After completing your button settings, select the Finish button and the project will be created.&amp;nbsp; As well as creating the project with a new class for your button and the&amp;nbsp;supporting images specified, the template will lay down the references to the required ArcGIS Explorer libraries and create an XML file containing all the parameters to be used by the application for group names, etc. (i.e., everything you specified in the project and button settings).&amp;nbsp;The template will also set a debug path to the install directory for ArcGIS Explorer, so you can test your add-in right away.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5503/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Now that we have a project with our button class, all we need to do is write a little code.&amp;nbsp;Double click on the AddGraphic.cs class in the Solution Explorer to open it.&amp;nbsp;You’ll notice that all the API namespaces have been referenced by the button template, so we can begin coding.&amp;nbsp;For a button, all we need to do is put some code in the OnClick event, so add the following:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Using C#:&lt;/STRONG&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;MapDisplay mapDisp = Application.ActiveMapDisplay;&lt;BR&gt;Graphic newGraphic = new Graphic(mapDisp.Target);&lt;BR&gt;newGraphic.Symbol = Symbol.Marker.Sphere.Red;&lt;BR&gt;newGraphic.Symbol.Size = 500;&lt;BR&gt;mapDisp.Graphics.Add(newGraphic);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Using VB:&lt;/STRONG&gt;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Dim mapDisp As MapDisplay = Application.ActiveMapDisplay&lt;BR&gt;Dim newGraphic As Graphic = New Graphic(mapDisp.Target)&lt;BR&gt;newGraphic.Symbol = Symbol.Marker.Sphere.Red&lt;BR&gt;newGraphic.Symbol.Size = 500;&lt;BR&gt;mapDisp.Graphics.Add(newGraphic)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The code will get the active map display, create a new graphic based on the target location for our view in 3D, add a symbol to that graphic (a red sphere), exaggerate the size of the symbol so we can see it at a global scale, then add the graphic to the collection for the display.&amp;nbsp;There’s no need to explicitly call a refresh or anything else to repaint the display.&lt;/P&gt;
&lt;P&gt;That's all there is to it, and we're ready to go. Just&amp;nbsp;click on the Debug button in Visual Studio to start the application.&amp;nbsp;As mentioned earlier, the path to the ArcGIS Explorer application (based on the install directory) is set by the project template, so it&amp;nbsp;will start when you begin debugging.&lt;/P&gt;
&lt;P&gt;When&amp;nbsp;you create an&amp;nbsp;add-in, by default they will&amp;nbsp;appear on a new tab in ArcGIS Explorer called "Add-Ins." When you deploy add-ins to your end users you would normally want to place the customizations in a more appropriate place using application configurations (look for more info on this in a later blog).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Our add-in is on the Add-Ins tab in the SDK test group, based on what was specified in&amp;nbsp;our project settings.&amp;nbsp; When we click on it a red sphere is added to the middle (target) of our globe.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5504/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;So that's your first button, stay tuned for more...&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=5496" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/SDK/default.aspx">SDK</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/add-ins/default.aspx">add-ins</category></item><item><title>Custom Task Lifecycles</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/01/27/design-patterns-for-custom-tasks.aspx</link><pubDate>Sun, 27 Jan 2008 17:06:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:879</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/879.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=879</wfw:commentRss><description>&lt;P&gt;&lt;EM&gt;(by Rob Dunfey, ArcGIS Explorer SDK Development Team)&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Custom tasks have many different functions, but for all their differences they have much in common. For example, all custom tasks have a task lifecycle, and as a custom task developer it is important you are aware of what this means, and what it means to your task users.&lt;/P&gt;
&lt;P&gt;As a task moves through its lifecycle, its status changes. At any given time a custom task has a status equal to one of six values, as listed in the esriE2TaskStatus enumeration illustrated below.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/880/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;The current status of a task is displayed in the ArcGIS Explorer results panel when a custom task is pending execution, executing, or has been stopped. A custom task has default messages associated with each status value in the esriE2TaskStatus enumeration. &lt;/P&gt;
&lt;P&gt;As a custom task developer you have full control over&amp;nbsp;these messages,&amp;nbsp;and are encouraged to set the message associated with a task status to give appropriate user feedback. For example, the default status message when a task is executing is 'MyCustomTaskName - executing' as illustrated below:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/881/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Using TaskContext.SetStatusMessage we can change the message associated with the Task executing status:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/882/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Having set the status message with the above code, the following is displayed when the task executes:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/883/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;This message provides more feedback to the user, and is another facet of creating a well-implemented task. &lt;/P&gt;
&lt;P&gt;For a comprehensive introduction to the lifecycle of a custom task, view the &lt;A class="" title="Open TaskContext lifecycle diagram (PDF)" href="http://edndoc.esri.com/arcobjects/9.2/explorer/E2APITaskLifecycle.pdf" target=_blank&gt;ArcGIS Explorer TaskContext Lifecycle Diagram&lt;/A&gt;&amp;nbsp;which can be found&amp;nbsp;at the &lt;A class="" title="ESRI Developer Network" href="http://edn.esri.com/" target=_blank&gt;ESRI Developer Network (EDN)&lt;/A&gt; site as well as in the Explorer SDK Help when you install it.&lt;/P&gt;
&lt;P&gt;This is just one of several design patterns you can adopt when developing custom tasks to give your task a familiar look and feel.&amp;nbsp; More tips and tricks can be found in the new&amp;nbsp;&lt;A class="" title="Custom task style guide" href="http://edndoc.esri.com/arcobjects/9.2/explorer/StyleGuide.html" target=_blank&gt;ArcGIS Explorer Custom Task Style Guide&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/884/original.aspx" border=0&gt;&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=879" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/SDK/default.aspx">SDK</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Tasks/default.aspx">Tasks</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Custom+Task/default.aspx">Custom Task</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Task+Lifecycle/default.aspx">Task Lifecycle</category></item><item><title>Explorer and OpenGL in Action</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2007/08/23/explorer-and-opengl-in-action.aspx</link><pubDate>Thu, 23 Aug 2007 19:12:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:320</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/320.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=320</wfw:commentRss><description>&lt;P&gt;In an &lt;A class="" title="Blog Post" href="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2007/08/20/new-explorer-sdk-enhancements-build-410.aspx" target=_blank&gt;earlier post&lt;/A&gt; we talked about some of the new SDK features in the latest release (Build 410). In that post we mentioned the addition of&amp;nbsp;OpenGL support and included a screenshot showing wind vectors implemented using OpenGL in Explorer. Here's a link to a &lt;A class="" title="Open YouTube movie" href="http://www.youtube.com/watch?v=KjcDWG8nV1g&amp;amp;eurl=http%3A%2F%2Fgisconsultancy%2Ecom%2Fblog%2F%3Fp%3D15%26preview%3Dtrue" target=_blank&gt;YouTube movie&lt;/A&gt; showing that in action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=320" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/YouTube/default.aspx">YouTube</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Build+410/default.aspx">Build 410</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/OpenGL/default.aspx">OpenGL</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/SDK/default.aspx">SDK</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Developer/default.aspx">Developer</category></item><item><title>New Explorer SDK Enhancements (Build 410)</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2007/08/20/new-explorer-sdk-enhancements-build-410.aspx</link><pubDate>Tue, 21 Aug 2007 01:32:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:306</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/306.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=306</wfw:commentRss><description>&lt;P&gt;(submitted by Rob Dunfey, ArcGIS Explorer SDK Development Team)&lt;/P&gt;
&lt;P&gt;The latest release of ArcGIS Explorer includes a host of enhancements to the API, creating new opportunities for custom task developers.&amp;nbsp; The custom task framework genuinely differentiates ArcGIS Explorer from other virtual globes, allowing users to plug in custom functionality directly into the main application.&lt;/P&gt;
&lt;P&gt;The most notable of the API enhancements are changes to the &lt;A class="" title="View3D Class Help" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.View3D.html" target=_blank&gt;View3D class&lt;/A&gt;. This class controls the main viewing window in ArcGIS Explorer (the window which displays the globe).&amp;nbsp; New methods and events on the View3D class now allow developers to render OpenGL graphics on top of the view. In the example below, we've drawn wind vectors using OpenGL.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/313/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;If you step back and think about this, it really is a quite powerful feature. What&amp;nbsp;you choose to draw to the globe is now only limited by your imagination. A &lt;A class="" title="Custom Drawing Sample" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/CustomDrawingSample.html" target=_blank&gt;new developer sample&lt;/A&gt; in the SDK illustrates how you can use these new methods and events to draw grid lines and symbols on top of the globe, but perhaps you will choose to render a Second Life avatar?&amp;nbsp; More usefully, you may want to display a unique watermark on top of the globe when viewing a particular layer, or incorporate the output from other specialist modelling software.&lt;/P&gt;
&lt;P&gt;Other changes to the View3D class include a new property that enables your custom task to alter the vertical exaggeration of the globe surface, and a &lt;A class="" title="FlyPolyine Method Help" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.View3D~FlyPolyline.html" target=_blank&gt;FlyPolyline method&lt;/A&gt; that will allow you to fly along a polyline. This is similar to the functionality available in the application when you right-click a result from the Get Driving Directions task.&lt;/P&gt;
&lt;P&gt;We’ve also added methods and properties to the &lt;A class="" title="View Class Help" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.View.html" target=_blank&gt;View&lt;/A&gt; and &lt;A class="" title="Layer Class Help" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.Layer.html" target=_blank&gt;Layer&lt;/A&gt; classes to give developers greater control over the caching of layers.&amp;nbsp; Now when you add layers to ArcGIS Explorer with a custom task, you can use the new &lt;A class="" title="CacheType Property Help" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.Layer~CacheType.html" target=_blank&gt;CacheType&lt;/A&gt; layer property to determine how ArcGIS Explorer caches the layer, just&amp;nbsp;like&amp;nbsp;when you add layers via the ArcGIS Explorer user interface.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;In addition, the new &lt;A class="" title="RemoveLayerCache Method Help" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.View~RemoveLayerCache.html" target=_blank&gt;RemoveLayerCache&lt;/A&gt; method on the View class allows your custom task to delete a layer cache.&amp;nbsp; Using these new members in combination as a developer, you have far greater control of layer caching, and can ensure layers representing dynamic data sources remain current.&lt;/P&gt;
&lt;P&gt;New methods and properties have also been added to the API to help developers work with results.&amp;nbsp; For example, the new &lt;A class="" title="AutoZoom Property Help" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.TaskContext~AutoZoom.html" target=_blank&gt;AutoZoom property&lt;/A&gt; on the &lt;A class="" title="Task Context Class Help" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.TaskContext.html" target=_blank&gt;TaskContext&lt;/A&gt; will automatically zoom the observer to the location of any new results that are passed to the task context.&amp;nbsp;Using this, and adding just a&amp;nbsp;single line of code should make for more user friendly custom tasks.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;The new &lt;A class="" title="SetZoomPerspective Method Help" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.Result~SetZoomPerspective.html" target=_blank&gt;SetZoomPerspective&lt;/A&gt; on the&amp;nbsp;&lt;A class="" title="Result Class members" href="http://edndoc.esri.com/arcobjects/9.2/Explorer/ESRI.ArcGIS.E2API~ESRI.ArcGIS.E2API.Result_members.html" target=_blank&gt;Result class&lt;/A&gt; lets the custom task developer define the location from which a particular result should be viewed when zoomed to in the application. Again,&amp;nbsp;this should make for more user friendly custom tasks.&lt;/P&gt;
&lt;P&gt;We’ve also fixed a bug with the LocalLayer class so that it can be used to represent kml files stored on a web server. Previously it didn’t recognize the http prefix which meant this wasn’t possible.&amp;nbsp; Perhaps you want to build a custom task that searches the web for&amp;nbsp;KML files and displays the&amp;nbsp;KML files it finds in ArcGIS Explorer?&amp;nbsp; With this fix, now you can.&lt;/P&gt;
&lt;P&gt;And finally, a&amp;nbsp;number of constructor overloads have been added to the API which should make for less lines of code. &lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=306" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/OpenGL/default.aspx">OpenGL</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/SDK/default.aspx">SDK</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/API/default.aspx">API</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Developer/default.aspx">Developer</category></item></channel></rss>