Custom library for Arcade

307
2
08-12-2020 06:20 AM
Status: Open
Labels (1)
SylvainHotte
New Contributor II

Since Arcade is a new language, it is lacking the diversity of function other language already have.

I propose that a user/team could develop/import/export custom Arcade library function that could eventually share to the community. Those function could then be used in all Arcade code.

2 Comments
KoryKramer

Here is a repository intended for sharing and maintaining reuseable Arcade expressions across all supported profiles.

GitHub - Esri/arcade-expressions: ArcGIS Arcade expression templates for all supported profiles in t... 

Is it something like this that you're seeking, or something else?

SylvainHotte

Hello,

No, this is not what I wish. I would like the possibility to code my own Arcade function, then "compile/reference" them and then include the library in the Arcade script. For example

In C# :

using myCustomLibrary

in python:

from myCustomLibrary import *

At the moment I am coding attribute rule and I need to use the same function in many rule, so I just copy paste the function definition. A library would be very useful and will be more inline with other programming language.

Thanks

Sylvain