Select to view content in your preferred language

Creating a straight line between 2 points (using a button and code)

701
1
08-20-2010 05:19 AM
by Anonymous User
Not applicable
Hello,

I am about to modify an old ArcPad application I developed a number of years ago. Althought the tool will do a lot more than just this, one of the aims is to complete drainage networks when in the field. The user will essentially take point assets out into the field on a tablet pc and connect the points with straight lines.

I know this appears straight forward using the in-built digitising and snapping tools, but it ideally needs to pull attributes from the point assets into the new line. These attributes relate to the upstream and downstream ID's used to define flow direction.

Does anyone know of a tool, code or method that would essentially allow the user to press a button for 'generate new pipe' for example. They then get prompted to select upstream point (ideally the ID of that point gets stored for a field in the new pipe), next they are prompted to select the downstream point (same as before). The next step would draw the straight line between the points.

My guess from a script point of view is that the geometry coordinates of the points will need to be used to define the 2 end vertices of the new line.

Any help would be extremely appreciated.

Regards

Kyle
Tags (3)
0 Kudos
1 Reply
by Anonymous User
Not applicable
Hi all,

I'm still stuck with this, there must be someone out there who has some advise please.

Thanks

Kyle
0 Kudos