Select to view content in your preferred language

Ways to add a entry to an attribute table when intersecting a line

154
1
Jump to solution
05-27-2025 07:06 AM
rsnider43
Emerging Contributor

Hello, I am trying to create an attribute rule to input the number 100 in a column for every new point added in to the map when it intersects a polyline, here is the code below, but I have only gotten it to put in the number 0 when it is tested, have any solutions?

 

var fibercable = FeaturesetByName($datastore, "attributeruletest.sde.fibercable");
var midspan = intersects($feature, fibercable);
if(midspan == true)
{
return $feature.loop_length == 100;
} else {
return false;
}

0 Kudos
1 Solution

Accepted Solutions
MikeMillerGIS
Esri Frequent Contributor


return $feature.loop_length == 100; evaluates to 0, it is a boolean operation.  Just return 100

View solution in original post

0 Kudos
1 Reply
MikeMillerGIS
Esri Frequent Contributor


return $feature.loop_length == 100; evaluates to 0, it is a boolean operation.  Just return 100

0 Kudos