Select to view content in your preferred language

ArcGIS Explorer SDK - cannot craete project in VS 2008

559
3
04-26-2010 04:59 PM
GroundHogg
Emerging Contributor
hello,

I'm trying to create an add-in for ArcGIS explorer.  I have the service pack for VS2008, and the sp for .net 2.0 installed.

I get the options for Desktop and Explorer to use a template.  If I choose a template, the wizard begins and I can enter titles, tool tips etc., then VS starts churning away to make the project.

What I get is a project with no forms or code, and no ability to add a form to add code to.

I was trying to follow the example walk through online on creating a simple add-in, but despite numerous re-installs of the SDK patch checks, rebooting, I never get to add any code as I never get a form or module to put it in.

If I close it out, I do get asked to discard changes or not and the title is displayed, yet no other actions are allowed, everything is grayed out.

Creating any other type of VS project goes as expected.
0 Kudos
3 Replies
AnthonyCatalano
Emerging Contributor
Thats bizarre. So yuo installed the sdk for explorer and restarted your pc (you don't have to do this but I always do for any sdk) and opened up VS08 and selected arcgis. What are you doing a button??? Select what type of project you are doing (ill do a button) a project settings page should come up and you can rename the project. The project will be created and you can go into the button.vb page and put your code in. It's look like this


Imports System
Imports System.Collections.Generic
Imports System.ComponentModel
Imports System.Data
Imports System.Drawing
Imports System.Text

Imports ESRI.ArcGISExplorer
Imports ESRI.ArcGISExplorer.Application
Imports ESRI.ArcGISExplorer.Geometry
Imports ESRI.ArcGISExplorer.Mapping
Imports ESRI.ArcGISExplorer.Data
Imports ESRI.ArcGISExplorer.Threading

Public Class Button
  Inherits ESRI.ArcGISExplorer.Application.Button

  Public Overrides Sub OnClick()

    'Your code Here

  End Sub

End Class


Why are you messing around with 2.0 when you can use the 3.5 framework??? Can you run the samples in the SDK at least? If you can't run the samples your install of VS is screwed up
0 Kudos
ShellyGill2
Regular Contributor
Hi,

Can you open one of the samples that's installed with the SDK (under your install directory, e.g.:
\Program Files\Explorer\DeveloperKit\Samples\ApplicationConditions), and build a sample, and check if that shows up as expected in the Ribbon?

(Anthony - the Explorer 1200 SDK supports .NET 2.0 SP1, not 3.5, hence the templates in the SDK target 2.0, regardless of the Framework option in the VS new project dialog - we're adding support for 3.5 in a future version of the SDK. Our reasoning is we dont force all Explorer users to the very latest version of the Framework, as that creates too high a bar for many large organisations who have tightly controlled desktop configurations. However you can target and use 3.5 if you know desktops your addin will run on will have that Framework installed).

Shelly
0 Kudos
GroundHogg
Emerging Contributor
hello again,

I was able to get it to work:

I migrated to a new computer, and in the process I had to re-install all my software.  Whatever was wrong, that fixed it.

I think what had happened was my VS2008 was not properly installed, it was an upgrade version from 2005.

Its workign now as expected, it was bizzare though, seeing as other projects were workign just fine and I even used the previous install to finish a class I was taking in VB.net 2008.

thanks
0 Kudos