+ Reply to Thread
Results 1 to 9 of 9

Thread: Hyperlinks in ArcGIS 10

  1. #1
    Gregory Allspaw
    Join Date
    Apr 2010
    Posts
    3
    Points
    0
    Answers Provided
    0


    This post was helpful. Click to vote up
    0
    This post was not helpful. Click to vote down

    Default Hyperlinks in ArcGIS 10

    Prior to installing ArcGIS 10, I had perfectly good VBA scripting in place to use hyperlinks to add raster datasets to ArcMap and place them in a particular group layer. With version 10, I am apparently blocked from using VBA with hyperlinks, other than using the small, crappy script editor on the Hyperlink Script dialog. I am not having any luck inserting and/or adapting my existing VBA scripts for this editor.

    The following code is a slight modification of the default VBScript code for the Hyperlink Script dialog. I have inserted the correct field that contains my paths that are needed for hyperlink.

    Function OpenLink ( [URL] )
    Dim path
    Dim objShell
    path = [URL]
    Set objShell = CreateObject("Shell.Application")
    objShell.ShellExecute path, "", "", "open", 1
    End Function

    This code works without error, but it does not do what I need. It opens my raster image in Windows Photo Viewer. What I actually need to do is add the raster image to the map and place it as the top item in a group layer named "FIRM".

    Can someone please help me write the correct code?

    Thanks.

    Greg Allspaw

  2. #2
    Patrick Gross
    Join Date
    Jun 2010
    Posts
    18
    Points
    0
    Answers Provided
    0


    This post was helpful. Click to vote up
    0
    This post was not helpful. Click to vote down

    Default Re: Hyperlinks in ArcGIS 10

    Bump!

    I'm having the same problem.

  3. #3
    Patrick Gross
    Join Date
    Jun 2010
    Posts
    18
    Points
    0
    Answers Provided
    0


    This post was helpful. Click to vote up
    0
    This post was not helpful. Click to vote down

    Default Re: Hyperlinks in ArcGIS 10

    Bump! I'm still working on this.

  4. #4
    Ross Wiseman
    Join Date
    Aug 2010
    Posts
    1
    Points
    0
    Answers Provided
    0


    This post was helpful. Click to vote up
    0
    This post was not helpful. Click to vote down

    Default Re: Hyperlinks in ArcGIS 10

    Same problem here. All I need is the script to add the image to my map document instead of opening in a new window.

  5. #5
    Dawn Johnson
    Join Date
    Apr 2010
    Posts
    1
    Points
    0
    Answers Provided
    0


    This post was helpful. Click to vote up
    0
    This post was not helpful. Click to vote down

    Default Re: Hyperlinks in ArcGIS 10

    I use nearly the same vbs and it works fine in ArcMap, but does not carry over into ArcReader, by design...not sure why it's not working in ArcMap.

  6. #6
    A Hay
    Join Date
    Apr 2010
    Posts
    31
    Points
    1
    Answers Provided
    1


    This post was helpful. Click to vote up
    0
    This post was not helpful. Click to vote down

    Default Re: Hyperlinks in ArcGIS 10

    Same problem anyone fix this
    VERY annoyingworked fine in 9.3.1
    i am same as Rwiseman i need it to add the raster data to the current map, i used it to add lidar tiles
    i can open the file but it opens in new window in a text editor !!!!

    Would be good if ESRI responded to this as they caused the issue

  7. #7
    Miles Loretta
    Join Date
    May 2011
    Posts
    3
    Points
    0
    Answers Provided
    0


    This post was helpful. Click to vote up
    0
    This post was not helpful. Click to vote down

    Default Re: Hyperlinks in ArcGIS 10

    Bump.

    ESRI has been no help at all. Even when they said they would.

  8. #8
    Darren Wiens

    Join Date
    Apr 2011
    Posts
    678
    Points
    141
    Answers Provided
    19


    This post was helpful. Click to vote up
    0
    This post was not helpful. Click to vote down

    Default Re: Hyperlinks in ArcGIS 10

    Rather than bumping this thread in a forum where not everyone knows VBA, why not try posting this in the ArcObjects forum. This sounds like something easily accomplished in ArcObjects.

  9. #9
    Raphael Foscarini
    Join Date
    Jun 2011
    Posts
    6
    Points
    0
    Answers Provided
    0


    This post was helpful. Click to vote up
    0
    This post was not helpful. Click to vote down

    Default Re: Hyperlinks in ArcGIS 10

    i want this script too...
    it'll work like in mapinfo..

+ 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