+ Reply to Thread
Results 1 to 5 of 5

Thread: How to auto populate x y coordinates into an ArcPAd form

  1. #1

    Join Date
    Aug 2011
    Posts
    1
    Points
    0
    Answers Provided
    0


    0

    Default How to auto populate x y coordinates into an ArcPAd form

    Does anyone know how to auto populate x y coordinates into an ArcPad form? I have no expireience in VB scripting, however I have made several basic ArcPad forms. I would like to learn if this capability is possible and how to execute it.

  2. #2
    Brooks Lastinger
    Join Date
    Apr 2010
    Posts
    14
    Points
    2
    Answers Provided
    0


    0

    Default Re: How to auto populate x y coordinates into an ArcPAd form

    Your value is going to be the following:

    Application.GPS.X
    Application.GPS.Y

    As in: msgbox ("My X Coordinate for the GPS is: " & Application.GPS.X)

    The coordinates should return in whatever your coordinate system is for the map doc you're in.



    If you want to load this, write a simple subroutine into your VBScript file:

    'Sets the editboxes named 'txtXCoordinate' and 'txtYCoordinate to their X and Y Coordinates respectively

    Sub OnOpenForm

    txtXCoordinate = Application.GPS.X
    txtYCoordinate = Application.GPS.Y

    End Sub

    Now, all you have to do is Set your Form's "OnLoad" object to "OnOpenForm," and Presto,

    COORDINATES!

  3. #3
    stuart cassin
    Join Date
    Apr 2010
    Posts
    23
    Points
    0
    Answers Provided
    0


    0

    Default Re: How to auto populate x y coordinates into an ArcPAd form

    This looks exactly like the thing I need to execute the same function. Like Geogeek, my VB skills are extremely limited so I'm not sure how to get this into a .apl. I've had few trys at it and it's not coming together (ran it in ArcPad a few times with no result) so I'm obviously missing a step or two.

    Can anyone give me a step by step, talk to me like I'm a 5 yr old, method of writing this script into a form please??

  4. #4
    Denise King

    Join Date
    Oct 2009
    Posts
    433
    Points
    41
    Answers Provided
    8


    0

    Default Re: How to auto populate x y coordinates into an ArcPAd form

    One of the easiest methods I have used is the 'Add XYZ to Table' applet found on Esri ArcScripts site,
    http://arcscripts.esri.com/details.asp?dbid=16785. This Applet automatically adds GPS information to the attribute table when a feature is created or modified, if the table contains specific fields.

    Cheers,
    Denise
    Denise King
    Apps/Mobile Development Technical Lead
    User Advocacy Group, Esri Support Services

  5. #5
    stuart cassin
    Join Date
    Apr 2010
    Posts
    23
    Points
    0
    Answers Provided
    0


    0

    Default Re: How to auto populate x y coordinates into an ArcPAd form

    Cheers Denise,

    It looks like a good option but I need to populate the form as it opens so the field staff can visully confirm the location has been captured and potentially compare the captured XY coordinates with previous coordinate readings.

    So I need to auto populate the X and Y fields with the readings from the GPS device. If anyone can step-by-step detail how I go about achieving this, I'll be enternally grateful.

+ 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