Is there a way with Python to do Select by Location with the Use selected feature option?
I'm trying to automate a process and am running into barriers.
I need to be able to select the 2 lines within the same feature class that intersect a point, but I need to do this 1 at a time so I can capture the field attributes for each line. The 2 lines will then be dissolved and eventually appended back into the original line feature. Basically, I'm trying to merge the lines and keep the attributes. The exact tool I need is the Merge tool in the Editor drop down, but apparently that isn't accessible with Python for some dumb reason.
There's also an Unsplit tool but of course it's only for Advanced, which I don't have.
What I'm trying to do:
From the Points feature class, get a list of the OBJECTID values and then use Select by attributes to select each point one at a time. But then I need to be able to do Select by Location on the Line using only the Selected point feature.
Then once the 2 lines are selected, I'll copy their field attributes and dissolve them and then append them back into the original line and add the values back.
I think I got it to work finally. The only thing I haven't figured out yet is how to delete the original lines that are being replaced when I append the newly dissolved lines. Because I think the only way I can use the Select by Location is when a layer file and not a feature class, so I'm not sure how to go about it yet.