+ Reply to Thread
Results 1 to 13 of 13

Thread: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

  1. #1
    Sean Fadum
    Join Date
    Nov 2009
    Posts
    31
    Points
    1
    Answers Provided
    0


    0

    Unhappy ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Hi,

    I want to try building some new 'add-in' files for ArcGIS 10.

    I have installed Visual Basic 2008 Express. I have also installed the .NET SDK file. When installing the SDK, I ensured that the Express Integration option was checked.

    It appears that the install went well. When I start a new project I am able to create an ArcMap Add-In. I am also able to add any of the initial 'Add-In' types. This is where things go a bit strange....

    I am able to add additional components to my project from the ArcGIS Add-Ins Wizard (this includes, buttons, tools, combo boxes, multi-items, extensions, Editor Extensions and Dockable Windows). When I try to add something from the Add-in Command Bars section in the wizard the only thing I am able to add is a toolbar. If I try to add a tool pallete, menu or context menu I get an error message saying: "The following selected add-in type(s) cannot be generated due to invalid inputs and or unknown errors".

    I am fairly new to developing in .NET so I may be doing somethig wrong here which is causing the error. Has anyone else come across this issue? Is this an installation / integration issue? Is there a way to fix this? Is there a specific order things need to be installed (ie. VSE 2008 before the SDK or vice versa)?

    My other problem is that there is no ArcGIS Snippets available in my projects. When I right click to insert a snippet of code, I do not get the "ArcGIS Snippet" option in the context menu. Again is this an installation thing.

    I was thinking that maybe it could be a Visual Studio Express thing.... do I need the full version of Visual Studio to get these options running properly?

    Sorry for the long winded post.... It's been a long road to figure out how write usable code in VB Express that can be used in ArcGIS.... but the process is even more frustrating when not all the pieces are working properly.

    Thanks for your time in advance,

    Sean

  2. #2
    James Gonsoski
    Join Date
    Mar 2010
    Posts
    29
    Points
    1
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Check out this thread and see if it's pertinent to you:

    http://forums.esri.com/thread.asp?t=280441&f=1170&c=93

    Jim

  3. #3
    Eager Ip
    Join Date
    Oct 2009
    Posts
    30
    Points
    6
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Unfortunately, you hit a bug at pre-release where context menu, menu or toolpalette fail to be created using the wizard. It is fixed for final. While waiting for final to be on your machine you can add them in the xml file manually. With the help of the xml schema intellisense in Visual Studio, it should be pretty straightforward.

    The ArcGIS Snippet related commands are only available on the retail/full edition of Visual Studio only. This hasn't been changed since 9.x.

    Hope this helps.
    Last edited by sorporbear; 06-02-2010 at 02:50 PM. Reason: Suggested workaround

  4. #4
    Ciaran Doyle
    Join Date
    Jul 2010
    Posts
    7
    Points
    0
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Hi,

    I need to double-check but I am 99% sure that ArcGIS Snippets are available in VS 2008 Express/ArcGIS 9.3.1

    However, ArcGIS Snippets do not appear to be available VS 2008 Express/ArcGIS 10

    Why was this removed?

  5. #5
    Ciaran Doyle
    Join Date
    Jul 2010
    Posts
    7
    Points
    0
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    for Visual Studio Express 2008/ArcGIS 10;
    - in VS, click on Tools>Code Snippets Manager
    - Click on Add... and browse to C:\Program Files\Microsoft Visual Studio 9.0\Common 7\IDE\VBExpress\Snippets\ArcObjects
    - Click OK and OK
    - ArcObjects will now appear in the "Insert Snippet" context menu

  6. #6
    Pavlína Tichá
    Join Date
    Sep 2010
    Posts
    1
    Points
    0
    Answers Provided
    0


    0

    Post Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Quote Originally Posted by sorporbear View Post
    Unfortunately, you hit a bug at pre-release where context menu, menu or toolpalette fail to be created using the wizard. It is fixed for final. While waiting for final to be on your machine you can add them in the xml file manually. With the help of the xml schema intellisense in Visual Studio, it should be pretty straightforward.

    The ArcGIS Snippet related commands are only available on the retail/full edition of Visual Studio only. This hasn't been changed since 9.x.

    Hope this helps.
    I have installed last version of ArcObjects SDK for the Microsoft .NET Framework and Visual Studio 2010 Ultimate today, beacause I wanted to try new features in Add-in model. Everythig goes fine only I have problem to add commandbars. When I click on the link "Add-in Command Bars" in the ArcGIS Add-In Wizard, the Visual Studio generates only the dialog with the error report and than crash ...

    You descibed this bug only at pre-release version ... or is also at the laste version ?

    Thank you for the answer.

  7. #7
    Eager Ip
    Join Date
    Oct 2009
    Posts
    30
    Points
    6
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Can you provide more detail information on how to reproduce the crash? Can you reproduce this consistently with a new add-in project? It will also help if you have screenshots of the error report and the config.esriaddinx file in the project.

  8. #8
    Eric Christensen
    Join Date
    Nov 2009
    Posts
    1
    Points
    0
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Thanks, this worked for me. VS 2008 Express/ArcGIS 10

    Eric

    Quote Originally Posted by ciadoyle View Post
    for Visual Studio Express 2008/ArcGIS 10;
    - in VS, click on Tools>Code Snippets Manager
    - Click on Add... and browse to C:\Program Files\Microsoft Visual Studio 9.0\Common 7\IDE\VBExpress\Snippets\ArcObjects
    - Click OK and OK
    - ArcObjects will now appear in the "Insert Snippet" context menu

  9. #9
    Justin Preikschas
    Join Date
    Jun 2010
    Posts
    17
    Points
    0
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Quote Originally Posted by ciadoyle View Post
    for Visual Studio Express 2008/ArcGIS 10;
    - in VS, click on Tools>Code Snippets Manager
    - Click on Add... and browse to C:\Program Files\Microsoft Visual Studio 9.0\Common 7\IDE\VBExpress\Snippets\ArcObjects
    - Click OK and OK
    - ArcObjects will now appear in the "Insert Snippet" context menu
    Thanks! Funny how it's impossible to find this simple information in the ESRI help.

  10. #10
    Andrew Hayden
    Join Date
    Nov 2010
    Posts
    36
    Points
    8
    Answers Provided
    1


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Quote Originally Posted by justin.preikschas View Post
    Thanks! Funny how it's impossible to find this simple information in the ESRI help.
    100% agreed! Seriously, ESRI, put a note in "Walkthrough: Building custom UI elements using add-ins."

  11. #11
    Petter Schou
    Join Date
    Jan 2011
    Posts
    2
    Points
    0
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Quote Originally Posted by sorporbear View Post
    Can you provide more detail information on how to reproduce the crash? Can you reproduce this consistently with a new add-in project? It will also help if you have screenshots of the error report and the config.esriaddinx file in the project.

    With VS2010 -->

    From ESRI document:
    http://help.arcgis.com/en/sdk/10.0/a...00001ms000000/

    In section:
    Creating a custom toolbar
    A custom toolbar can contain tools, buttons, tool palettes, combo boxes, and menus. These toolbar items can be built-in or custom created through other add-ins or Component Object Model (COM) components.
    To create a custom toolbar that can be docked along with the built-in toolbars, perform the following steps:
    In Visual Studio, in the Project Explorer, right-click your project, select New Item, and click Add. The Add New Item dialog box opens.
    Expand the Visual Basic or Visual C# project node, expand the ArcGIS node, and select Desktop Add-ins.
    Select Add-in component from the Templates pane and click Add. The ArcGIS Add-Ins Wizard opens.
    Click Add-in Command Bars, and select Toolbar.
    Type DharmaToolbar in the Caption field.
    Click Add Item to add items to the toolbar. A toolbar can contain one or more buttons, tools, combo boxes, menus, and tool palettes. A drop-down box appears listing the custom add-in components in the project. See the following screen shot:

    When you select "Click Add-in Command Bars", you got an error.

    Is there a fix for this?

  12. #12
    Frederic Walter
    Join Date
    Apr 2010
    Posts
    5
    Points
    1
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 Pre-Release: Visual Studio Express 2008 Integration Issues

    Maybe, you can find a workaround to your Visual Studio crash by consulting the following thread: http://forums.arcgis.com/threads/301...d=1#post104723

  13. #13
    Andy Fairbairn
    Join Date
    Jun 2013
    Posts
    5
    Points
    0
    Answers Provided
    0


    0

    Default ArcGIS 10.1 and VSE 2010 snippets

    Just in case it is useful to anyone else, I've *finally* found the new location of snippets on disk after upgrading to Arc10.1 and consequently being forced to upgrade VSE from 2008 to 2010 (unfortunately my machine seems to have a few other issues, so searching on *.snippet brought no joy). Anyway, I found them here:

    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\VCSExpress\Snippets\ArcObjects

    which may help others to link to in VSE as described above or ESRIs snippet finder (not very helpful until you yourself find the snippets!).

    Andy.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts