+ Reply to Thread
Results 1 to 3 of 3

Thread: Running a script at the beginning of polyline entry

  1. #1
    André Desrochers
    Join Date
    Jun 2010
    Posts
    3
    Points
    0
    Answers Provided
    0


    0

    Default Running a script at the beginning of polyline entry

    Hello,
    I am recording data along polylines (transects) with Arcpad 10 running on my GPS. I would like to have beginning and end times for each feature (transect). So I would like to run a simple script at the beginning of capture of polyline, specifically to get GPS time. "Onfeatureadded" event fires only when the capture of vertices is completed and thus can only give GPS time of the end of polyline capture. Is there an event specific to the beginning of polyline capture?
    Thanks

  2. #2
    Ivan Kautter
    Join Date
    Sep 2010
    Posts
    45
    Points
    5
    Answers Provided
    0


    0

    Default Re: Running a script at the beginning of polyline entry

    I don't have the exact code for you but you might try something like this if you are using GPS position averaging for vertices.

    Use the OnAverageStart event of the GPS object to run a code that will get and hold the GPS time in a variable that is accessible out of scope. Since this code will run with each new positioning averaging event, you will need some code to restrict the time capture to the first averaging event. Then perhaps at the OnFeatureAdded event, you can capture the end time, write the start and end times to appropriate fields or what have you and clear out the global variable that holds the beginning time.

  3. #3
    André Desrochers
    Join Date
    Jun 2010
    Posts
    3
    Points
    0
    Answers Provided
    0


    0

    Default Re: Running a script at the beginning of polyline entry

    Thanks Ivan for the advice, I will check how to turn on vertex position averaging and do as you suggest, which should not be too complicated. If and when I get working code, I will post it.
    Cheers.

+ 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