+ Reply to Thread
Results 1 to 10 of 10

Thread: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

  1. #1
    Jakub Sisak
    Join Date
    Apr 2010
    Posts
    466
    Points
    19
    Answers Provided
    1


    0

    Angry ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    This poses a problem for me since i would like to re-create my 9.3 VBA customizations. I cannot create a custom UI control that can be saved in the normal template.

    WHY?

    Source:
    The customizations listed below are only ever saved at the document level; you cannot elect to save these customizations in your template.

    * UI Controls added to any toolbar or menu
    * Macros added as buttons to any toolbar or menu

    Jakub Sisak, GISP
    GIS StackExchange

    JAKUB SISAK photography
    To see my photography please visit:
    facebook | fine art america | 500px | Flickr


  2. #2

    Join Date
    Sep 2010
    Posts
    1
    Points
    0
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    I was just wondering if this cusomization will ever be available again. It was nice to have some of the custom made tools just be in every mxd I open.

    Also, if the tools are in python do they have the same issue (do they need to be loaded into every seperate mxd)?

  3. #3
    marie ducharme
    Join Date
    Apr 2010
    Posts
    109
    Points
    3
    Answers Provided
    1


    0

    Default Re: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    Has anyone found a solution to this issues?

    Yes,

    I agree that this is a set-back in v10.

    I used custom UI control quite a bit.

    Perhaps ESRI will address?
    Marishka the MadMapper
    From the Great White North

  4. #4
    John Dunham
    Join Date
    Apr 2010
    Posts
    1
    Points
    0
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    I notice that no one from ESRI has posted anything on this thread. I totally agree - I have several UI controls in 9.3.1 that are very important to my work. As it stands now, I won't switch to 10 until I can figure out a way around this. Sometimes I think that ESRI updates software without any input from the people who actually use it.

  5. #5
    Jakub Sisak
    Join Date
    Apr 2010
    Posts
    466
    Points
    19
    Answers Provided
    1


    0

    Default Re: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    Quote Originally Posted by jdunham View Post
    I notice that no one from ESRI has posted anything on this thread. I totally agree - I have several UI controls in 9.3.1 that are very important to my work. As it stands now, I won't switch to 10 until I can figure out a way around this. Sometimes I think that ESRI updates software without any input from the people who actually use it.
    I have since converted nearly all customization into VB .Net Add-Ins and although there was a bit of a learning curve I have to say that that the Add-In structure completely replaced VBA customization. I use VS 2008 express (free version) and I believe that in many ways the new structure is a vast improvement over VBA.

    Jakub Sisak, GISP
    GIS StackExchange

    JAKUB SISAK photography
    To see my photography please visit:
    facebook | fine art america | 500px | Flickr


  6. #6
    Jefferson Ferreira Ferreira
    Join Date
    Nov 2011
    Posts
    78
    Points
    0
    Answers Provided
    2


    0

    Default Re: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    Hi all;

    I hope some ESRI technical staff can solve this problem and post here for us. I have this problem too when trying to implement scripts into version 10. As our colleague above, we have many custom tools which depends on our work.

  7. #7
    Alexander Gray
    Join Date
    Apr 2010
    Posts
    685
    Points
    201
    Answers Provided
    32


    1

    Default Re: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    You do realize that ArcGIS 10 is the last release of ArcGIS to support VBA? In ArcGIS 10.1,esri is phasing out support for VBA. Migrating VBA from 9.3 to 10 is pretty much a dead-end.

  8. #8
    Richard Fairhurst

    Join Date
    Apr 2010
    Posts
    2,173
    Points
    1371
    Answers Provided
    195


    0

    Default Re: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    VBA is nearly dead and there is no going back to the template loading your cusotmizations. Add-Ins are enabled at the application level. After the initial double click of your add-in to install it, it should be able to contain an extension that can be auto enabled and add tools at ArcMap startup (although the help does not show how to do that it does have the ability to listen for the ArcMap startup event).

    I have come close to that functionality, but decided my code would still use the extension dialog and customization mode at this point, since I have recently developed it and wanted the user to be able to shut it down if an undiscovered bug was in the code. Perhaps I will test the fully automated mode next week.

  9. #9
    Richard Fairhurst

    Join Date
    Apr 2010
    Posts
    2,173
    Points
    1371
    Answers Provided
    195


    0

    Default Re: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    I just tested the autoload method of an Add-In ArcMap Application Extension. That mode causes the extension to automatically fires up at ArcMap start. From there the extension code could examine the configuration of ArcMap and if needed reconfigure ArcMap to include any buttons, tools, toolbars, menus, commands, dockable windows, etc that the programmer needed for their users. Admittedly, this is not as easily done as creating and storing a template map, but it does provide at least one method for acheiving the same end result that is not document based.

  10. #10
    Mindy Wright
    Join Date
    Apr 2010
    Posts
    4
    Points
    1
    Answers Provided
    0


    0

    Default Re: ArcGIS 10 - VBA customization problem - UI Controls only local (Document level)

    Quote Originally Posted by rfairhur24 View Post
    I just tested the autoload method of an Add-In ArcMap Application Extension. That mode causes the extension to automatically fires up at ArcMap start. ... Admittedly, this is not as easily done as creating and storing a template map, but it does provide at least one method for acheiving the same end result that is not document based.
    I am struggling to keep the UI custom tools I built in my 9.3 mxds into my 10.0 mxds.
    First problem is that I had to get an ESRI auth# for the VBA extension for 10.
    Then, I notice "Application.Document" no longer gets the document, so I changed all those to ThisDocument, which allowed the .mxd to open the OpenDocument function correctly.
    Some of my tools are still working. Some do not, because other ArcObjects have changed their methods or properties.
    Where can I go for help?

    I know nothing about Add-In appl extensions. Where can I find a programmer for hire that can convert my code from 9.3 to 10?

+ Reply to 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