Greetings Community.
Wondering if anyone has ever created an ArcGIS Pro Arcade attribute rule that get the vertices of the digitizing polyline and use that vertices to intersect another feature to return attributes to fields on the digitized feature.
I have a feature class called Old_Data (F1) it has two fields START_FIELD and END_FIELD.
I have another feature class called New_Data (F2) with the same fields names. I would like when digitizing F1 the first vertex of FI intersects the F2 returns the F1.START_FIELD and the last vertex F2 intersects the F1 returns the F1.END_FIELD where it intersects.
The START_FIELD and END_FIELD of the Old_Data may be different features in the Old_Data.
The use case is to see where a feature starts and ends.
I've played around with code and I can get a first vertices but not get data from the intersect. I'm not sure how to get the last vertices. Or get the intersect to work. My starting code below.
var startField = "START_FIELD";
var endField = "END_FIELD";
var geom = Geometry($feature);
var firstPoint = null;
var vertices = []
for (var part in geom.paths) {
var segment = geom.paths[part];
// Loop through the points in the segment
for (var i in segment) {
if (IsEmpty(firstPoint)) {
firstPoint = segment[i];
continue;
}
Push(vertices, segment[i]);
}
}
var intersectingLine = Intersects(FeatureSetByName($datastore, "Old_Line",[startField, endField], true), firstPoint);
return Text(firstPoint) //just to see output
Any community help would be helpful.
Solved! Go to Solution.
@HusseinNasser2 is this something you are able to replicate.