AnsweredAssumed Answered

Can you spare a code snippet to select feature?

Question asked by Tomsriv on Jul 3, 2019
Latest reply on Jul 3, 2019 by MBDriscoll

Hi All,

  I am working with traffic sign supports.  I need to make a button to select a support from the map.  I don't know how to code, but I've had good luck modifying other peoples code that is similar.  I've looked all through the site and can't figure out how to make a button that allows the user to select by either drawing an envelope or clicking the point.  Has the name changed?  It should only select one point at a time.  May I borrow some code?

 

The button needs to allow the user to drag an envelope or click on a point in a "Supports" feature class

(Does the code need to verify the feature class exists in the project?)

Find the SupportID field in that feature class

Feed that SupportID to another piece of code that will open a specific record in a form in Microsoft Access.  (I have a python code for this piece.  Will that even work?)

 

If anyone has a code snippet that does something similar I would be very grateful.    

Outcomes