All Questions
Tagged with arcgis-pro arcade
73
questions
0
votes
1
answer
45
views
Restricting numeric fields to specific ranges using ArcGIS Pro Attribute Rules (Arcade)
Working in ArcGIS Pro 3.1.2 and trying to use Attribute Rules to restrict the values in a couple numeric fields. The ESRI documentation does not specify how this might be answered, despite my best ...
0
votes
0
answers
36
views
ArcGIS Pro 3.2.1 Attribute Rule error: Return type is not compatible with field type
I have a point layer and a standalone table within a relationship class that both have date fields. I have an Arcade script that is supposed to update the date field within the point layer using the ...
1
vote
1
answer
102
views
Arcade script to return color-coded value from attribute field
I am working in ArcGIS Pro pop-ups Expressions and I have parsed together an Arcade script to search an attribute field in ArcGIS Pro for some words, and then return the words color-coded into the pop-...
0
votes
1
answer
87
views
Removing line or row if value is empty or null in Arcade [duplicate]
I am trying to remove lines in a pop-up which have blank values or .
Example below:
var fieldz = { Category: DomainName($feature, "Category"), Project: $feature.ProjectName, Stat: $feature....
0
votes
0
answers
54
views
Combining two Arcade expressions to calculate field and update parent class
I currently have two Arcade expressions as attribute rules that I need to combine into one because they evaluate in the wrong order, but I can't figure out how to combine them. I need GPM calculated ...
0
votes
0
answers
46
views
Troubleshoot Attribute Rule to Update Parent Table
I am using ArcGIS Pro 3.2.1 and working with an Arcade expression to update a parent layer when new inspections are performed in the related table.
I have tried a 1:M relationship class with GlobalIDs,...
0
votes
1
answer
144
views
Calculate date difference between current date and previous date using Arcade with ArcGIS Pro
I can't find the error in my code. I am trying to calculate the difference between the current date and a previous inspection date. I want the difference to be calculated in days. I am using ArcGIS ...
1
vote
1
answer
80
views
Attribute Rules for ArcGIS Pro to transfer attribute from Line to Point
I want to use attribute rules to transfer an attribute from lines to points based on which end of the line a point intersects.
I have a set of Flow Meter Points that intersect Pipe Lines.
They are ...
1
vote
0
answers
40
views
My ArcGIS Pro attribute rule to update facilityids sequentially is not working
I have a featureclass with the field "FACILITYID". There are values in it that go up to P-72340. I am trying to create an attribute rule so that each time a feature is inserted, the ...
0
votes
0
answers
25
views
Rebuilding labeling from ArcGIS Pro to ArcGIS Online
I have multiple layers in an ArcGIS Pro project with vbs scripted labeling. I have created a Web Map on ArcGIS Online that uses these feature classes. I wish to rebuild the labeling in ArcGIS Online ...
0
votes
1
answer
61
views
Attribute Rules for M:N Relationship Class and Updating Relationship Class Intermediary Table
Working on an attribute rule that populates a M:N relationship table between two polygon layers in cases where they intersect.
In this case the intermediary relationship table is RelationshipTable_AB ...
2
votes
1
answer
196
views
Create label expression that sums an attribute for features in a group?
I have pipes that have been assigned to a group (1, 2, 3, 4, etc).
Each pipe also has a "Length" attribute.
I am working in Pro 3.2.0
For each pipe group, I want to have a single label that ...
0
votes
3
answers
45
views
ArcGIS Arcade code not giving desired outcome
I have the following code below. I'm trying to search for a text inside a string from a date field and populate it with the associated month with ArcGIS Arcade. So far I just keep getting the default ...
0
votes
0
answers
49
views
Attribute rule to union buffers
I've successfully created an attribute rule to add a new buffer to a polygon feature class (FC) when a new point is added to a point FC. However, now I need to dissolve all buffers in the polygon FC (...
1
vote
0
answers
68
views
Using ArcGIS Pro arcade labeling profile, how to check existence of a field
I am trying to consolidate dozens of arcade label expressions into a single expression that is sophisticated enough to handle two different possible data sources (These expressions are being written ...
0
votes
0
answers
50
views
Summarize Two Overlapping Layers Within a Third Layer
My project has 3 relevant layers, 2 with data I wish to extract and a 3rd representing the geography I need a summary of. Landuse, Field "Use" (values x y z), Soils, Field "Soil Type&...
0
votes
1
answer
62
views
Manual classes symbol ArcGis Pro
I am trying to create 2 classes of symbol based on attributes.
I refer to this doc:
https://pro.arcgis.com/fr/pro-app/latest/help/mapping/layer-properties/set-custom-expressions-for-symbology.htm
...
0
votes
2
answers
35
views
Categorise by week number of each year in ArcGIS Pro
I am new to ArcGIS Pro, and I would like to have a categorised symbology based on the year and week number of the year in question.
For ex:
2022: Week 1
2022: Week 2
2022: Week 3
...
2023: Week 1
...
...
1
vote
3
answers
514
views
ArcGIS Pro Arcade Expression for various characters in the Asset Id field
I'm looking for an arcade expression for arcgis pro symbology. Involves the Asset ID field to symbolise based on text within an asset ID.
Say if the asset ID contains C2 then blue (for instance), or ...
1
vote
0
answers
263
views
Getting count of intersect in Arcade attribute rule in enterprise geodatabase
Having two feature classes in an enterprise geodatabase like
- EGDB.North.Parcels
- EGDB.North.ProjectsInvest
I am trying to get the total count of Intersection between EGDB.North.Projects in ...
0
votes
1
answer
612
views
Dynamically display total length of polyline feature class in miles using Arcade expression?
I am using ArcGIS Pro 3.0. I would like to use Insert Table Attribute on a layout to display the total length (in miles) of a polyline feature class. I want this to be dynamic -- not a field calculate ...
1
vote
1
answer
522
views
Arcade expression to calculate field in point dataset based on whether its features lie within specified polygon dataset using ArcGIS Pro ModelBuilder
Can anyone help with an Arcade expression to calculate a new field in a point dataset based on whether or not each point feature is within a polygon dataset in ArcGIS Pro ModelBuilder?
I have a point ...
1
vote
1
answer
447
views
Arcade expression that selects the nth element in a dynamic table attribute based on map series rows
I have a map series layout that displays all the photo attachments associated with each feature in a line feature class, housed in a file geodatabase. This line feature class is the index layer of the ...
0
votes
1
answer
195
views
Get Associations using Attribute Rules
i am trying to get all content features and put their GlobalID inside new array and use this array later to filter the table or the feature class containing this features.
var contentRows = ...
0
votes
1
answer
104
views
Superscript ordinals for street labels in ArcGIS Pro
I'm using ArcGIS Pro 3.0. I have a Streets feature class that includes the ordinal for numeric streets in the street name field. For example, for "13th Street", the name field is "13th&...
1
vote
1
answer
523
views
Using arcade in an attribute rule: error "array type expected" (ArcGIS Pro)
I want to do the following attribute rule in ArcGIS Pro:
Query the excavation ID attribute according to xxx.xxx.x / x.xx.x / xxx.xx.x / xx.xx.x (e.g. Bhg.018.1 / B.33.2 / Lhb.28.3 etc). , i.e. the 2- ...
1
vote
0
answers
319
views
ArcGIS Pro Pop-ups: How do I show all attributes in rows of a single table?
I have a pop-up configured to display a set of results for a selected location. Using Arcade expressions and HTML, I get a pop-up that looks like this:
I need to show all of the rows for each Z range ...
0
votes
1
answer
113
views
ArcGIS Pro Arcade If-And Statement
I have an Expression that I am trying to create for symbology that essentially filters on three categories. The Two are very simple, the last one has a lot of criteria that work for it. For example, ...
1
vote
2
answers
629
views
ArcGIS Arcade Labeling When Text Includes HTML Reserved Characters
I am using the following expression in an ArcGIS feature label:
"(CH<SUB>4</SUB> " + $feature.Methane + " ppm)"
This works (e.g., CH4 15 ppm) unless the $feature....
0
votes
1
answer
564
views
Arcade Intersects returns geometries with same areas
I am writing an Arcade expression for a pop-up that will intersect the selected geometry with an underlying layer that has 6 different types of values (C, S, R, O, OC, EMO). I want the expression to ...
1
vote
1
answer
682
views
Using Arcade to label polylines with X coordinates of last vertices in ArcGIS Pro
I am using ArcGIS Pro 3.0.0 and a File Geodatabase.
I have a requirement to use Arcade for configuring some Attribute Rules related to the geometry of the features involved which has led me to realize ...
0
votes
1
answer
470
views
Auto-calculating Geodetic Length using Geographic Coordinate System other than WGS 1984
At How to show geodatabase calculated area and length in meters from WGS84 FC? (from 2018) it was said that "a little further ahead it will be possible to use Arcade expression (in Pro, not ...
1
vote
1
answer
1k
views
Using Attribute Rules to Pull in Attribution from Another Feature Class
I could use some assistance creating a calculation that just simply pulls attribution from a field in one feature class, and populates the edited result into another feature class's table. For ...
0
votes
1
answer
102
views
Vary symbol rotation to point towards the next point in a sequence using Arcade and ArcGIS Pro
I have created a 3D map in ArcGIS Pro that shows the flight path of a drone. I want to use arrows for the symbology that point in the direction of the flight path. Each observation includes elapsed ...
1
vote
1
answer
1k
views
Round and truncate numeric label in ArcGIS Pro
I have a numeric field that I'd like to use as a label in ArcGIS Pro, but would only like to show the first two digits of that field. For example, The value in the table is "7,903,043" but I ...
1
vote
1
answer
1k
views
ArcGIS Pro Attribute Rule to pass a value from child to parent
I have an ArcGIS geodatabase with a parent feature class related to a child stand alone table containing the various inspections made on each parent feature. Primary key is GlobalID and foreign key is ...
2
votes
1
answer
121
views
Attribute rule works in Pro 2.9.2, but not in Pro 2.6.8 [closed]
I have a calculation attribute rule that works in Pro 2.9.2 (in a 2.9.2 FGDB). It updates the M-values of the polyline’s geometry:
function pythagoras(x1, y1, x2, y2) {
return sqrt(pow(x2 - x1, 2) ...
3
votes
1
answer
2k
views
What is the arcade equivalent to "If value in list" in the Visualizations profile
What is the arcade equivalent to Python evaluating the conditional statement "If value in list":
fueltype = 'JP5'
fueltype_list = ['F24', 'JP10', 'JP4', 'JP5']
if fueltype in fueltype_list:
...
2
votes
2
answers
639
views
How to test if a field exists in a feature?
Is possible to test if a field exists for a feature in the visualisation profile ArcGIS Pro? In the Arcade Playground (https://developers.arcgis.com/arcade/playground/) I've been testing various ...
1
vote
1
answer
842
views
Return values to multiple fields — using an Arcade calculation attribute rule in ArcGIS Pro
ArcGIS Pro 2.9:
Is there a way to return values to multiple fields using an Arcade calculation attribute rule?
For example, return values to the following fields, all within a single expression/rule:
...
2
votes
1
answer
468
views
Converting array to polyline using Arcade with ArcGIS Pro
Arcade/ArcGIS Pro 2.9:
I have an array of polyline vertices:
[[[670634.3148,4862051.3579,null],[670719.3321,4862051.0072,null],[670721.44381227,4862055.2956567,null],
[670724.26721751,4862059.1529319,...
0
votes
1
answer
227
views
Automate adding symbol size expression for all layers ArcGIS Pro
I have many layers on a map. I need to write an Arcade expression in the symbol size expression box, but I need to do it in all the layers. I do not want to do that one by one.
I wanted to create a ...
0
votes
1
answer
710
views
Generating UUIDs using attribute rules
Trying to automatically generate a uuid (preferably not a GlobalID) when a record is added to a dataset. It seems like the only Esri suggested workflow is to generate unique IDs is to use Arcade's ...
1
vote
0
answers
763
views
ArcGIS Pro attribute rule fails when collecting from an online map in Field Maps
I am using ArcGIS Field Maps to collect building inspection records to a standalone table by tapping on a feature in a related building layer. (See Inspect—Add a related report.) The inspection table ...
0
votes
1
answer
553
views
Calculate length and width of polygons using Arcade in Expression Builder in the attribute table in ArcGIS Pro [closed]
I am using attribute rules to automatically update cells in an attribute table. I need to auto-calculate the length and width of polygons as the user creates them.
Is there a way to do this using math/...
1
vote
1
answer
909
views
ArcGIS Pro add attribute rule (Arcade expression)
I am trying to create an Arcade expression in add attribute rule which will auto populate the attribute field (DPA_GROUP) in my points layer (as I create new point features) from the underlying ...
1
vote
1
answer
843
views
Showing label if greater than percentage using Arcade with ArcGIS Pro
I have a text field called PerVax1 that has percentages.
I want to create an expression that labels the features when the field has a percentage greater than 30%. Here's some things I've tried so far:...
2
votes
3
answers
5k
views
ArcGIS Pro arcade if else statements
I am tasked with sorting Zoning codes numbering over 100 to just 5 (Residential, Office, Commercial, Industrial and Misc).
For whatever reason I cannot get Arcade to recognize a text attribute other ...
3
votes
1
answer
1k
views
Arcade Expression for Label Halo Color
I am trying to label Census Block Groups and Tract ID for the block group feature layer. I would like to label them using different color halos. Is there an arcade expression that will allow me to ...
2
votes
1
answer
180
views
Decoding Shape using Arcade in ArcGIS Pro
I have Shape column in ArcGIS Pro.
How do I get x,y from it with Arcade?