Identify if feature set is coincident with network features for trace in script tool

Discussion created by ckel490 on Jun 5, 2013
Latest reply on Jun 6, 2013 by csny490
I have a script tool that uses the Trace Geometric Network tool with a feature set as flags to allow user defined flags.  I use the Snap_edit to make the flags coincident with the network features.

I want to be able to tell the user in a message through validation if their flag is not coincident with the network, instead of the tool failing while the trace is performed and gives  a " ERROR 001191: No flag found from the flag junction feature class".

What's the best way to identify if the feature set is coincident with network features within the tool validation?  How can you tell if the SNAP_EDIT actually snapped to anything?

In an ideal world, the flag would not be allowed if it wasn't coincident (like the add-in tool).

Thanks in advance.