|
POST
|
Trigger an update on them. Depending on how you do your rule, that will trigger the update event on the rule and generate an ID if the field is null.
... View more
01-18-2024
08:20 AM
|
0
|
2
|
3835
|
|
POST
|
When you create a database sequence, you can specify the starting value. https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-database-sequence.htm You could write a script that looped over those assets and got the max value. Store that into an csv or excel and then script creating the seq with that value. The sequences and attribute rule to leverage it is supported in a version environment, but if you use a seq in a version and delete that version, you do not get that value back, it is burnt. We are looking into tools to assist Attribute Assistant customers create Attribute Rules easier, like the Generate ID, we are still in early development, but if you are interested in testing out the code as we build it, let us know.
... View more
01-18-2024
03:31 AM
|
1
|
4
|
3867
|
|
POST
|
Dont call Count(), this causes an unnecessary query. Just loop over the results. try this var BigArea = FeatureSetByName($map,"BigArea");
var buf = Buffer($feature, 2000000, "meter");
var fs_filtered = Intersects(BigArea, buf);
var min_dist = Infinity;
var closest_feat = null;
for (var f in fs_filtered) {
var dist = Distance($feature, f);
if (dist < min_dist) {
closest_feat = f;
min_dist = dist;
}
}
if (IsEmpty(closest_feat)){
return "There are no housing projects withing 2000000 meters"
}
return `${closest_feat.HOUSING PROJECT NAME} is ${round(min_dist, 3)} meters away.`;
... View more
01-18-2024
03:18 AM
|
0
|
0
|
3769
|
|
POST
|
If you are referring to my post, line 4 intersects the hydrant with the lateral lines. As the OP said they want this to run on the hydrant. Is every hydrant connected to only one line? I have no idea, I do not have access to his data, so without that knowledge, the only safe way to code it is loop over all results and find the valves that are connected to each lateral line. Now in reality, hydrants connect to one line, so I could have called First() on the result, but that info was not provided.
... View more
01-18-2024
02:52 AM
|
0
|
4
|
3894
|
|
POST
|
Sample data is included in the UtilityNetwork GDB, not the Asset Package for electric due to size limitation of a solution
... View more
01-18-2024
02:25 AM
|
1
|
0
|
925
|
|
POST
|
I did not format the dictionary correctly on line 11, will fix it tomorrow when back on my PC. Needs a { in front of global I'd and one more } on 14 after the other one.
... View more
01-17-2024
03:21 PM
|
0
|
0
|
1661
|
|
POST
|
Hopefully this gets you closer var valves = FeatureSetByName($datastore, "dwSystemValve");
var fireLines = FeatureSetByName($datastore, "dwLateralLine");
var intersecting_lines = Intersects(fireLines, $feature);
valves_to_update = [];
for (var lat_line in intersecting_lines)
{
var intersecting_valves = Intersects(valves, lat_line);
for(var valve in intersecting_valves){
push(valves_to_update, {'globalID':valve.globalid,
'attributes': {
'num': lat_line.num
}})
}
}
return {
'edit': [{
'className': 'valve',
'updates': valves_to_update
}]
}
... View more
01-17-2024
12:38 PM
|
1
|
9
|
3945
|
|
POST
|
Bigger question, what and when do you want this rule to fire? Is this something you want run on the entire database? Do you want it to run each time you edit a hydrant, or valve, etc?
... View more
01-17-2024
09:46 AM
|
1
|
1
|
4068
|
|
POST
|
Vavles is a featureset, sort like the path to the class on disk. You cannot intersect a featureSet with a featureSet. You need to loop over the features, such as for (var feat in valves)
... View more
01-17-2024
09:43 AM
|
0
|
0
|
4072
|
|
POST
|
Cant make a rule, but could use the system junctions to build some kind of report.
... View more
01-17-2024
08:13 AM
|
0
|
0
|
848
|
|
POST
|
I re-read your description and this will not work. You need to assign the rule on the point layer, so that when point layer field is changed, it searches for related polygons and then issues a return edit statement to update the polygon. Changing a value on the point will not trigger the AR on the polygon. https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-keywords.htm#ESRI_SECTION2_8FAC67C808DA4E8096373F40047BA08F
... View more
01-17-2024
04:55 AM
|
1
|
1
|
2209
|
|
POST
|
I would suggest logging an enhancement to provide a context menu or button that would select the source feature/row.
... View more
01-17-2024
03:33 AM
|
0
|
1
|
1070
|
|
POST
|
No, but we have discussed it. Saw you logged the idea, adding link here for future ref - https://community.esri.com/t5/arcgis-pro-ideas/global-arcade-functions/idi-p/1352892
... View more
01-17-2024
02:58 AM
|
1
|
0
|
1085
|
|
POST
|
We have released a tool that will transfer the data from an Asset Package to a UN(and a version). It will only add data, it does not delete/update data. https://esri.github.io/Utility-Data-Management-Support-Tools/docs/3.1/TransferUtilityNetworkData.html
... View more
01-17-2024
02:55 AM
|
0
|
0
|
935
|
|
POST
|
Also, can you just select that line with the open switch. Is that all one big line?
... View more
01-16-2024
01:25 PM
|
0
|
0
|
3565
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago | |
| 1 | 3 weeks ago | |
| 2 | 07-07-2026 06:45 AM | |
| 1 | 06-26-2026 09:15 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|