|
POST
|
Hi Denis, I reckon you need to take a look on tihis sample to manage your queries: https://developers.arcgis.com/javascript/3/jssamples/query_deferred_list.html BR, Adam
... View more
03-17-2021
01:33 AM
|
0
|
0
|
2177
|
|
POST
|
Hi, Indeed there was a bug. This snippet works for me: import arcpy
import os
filesDirectory = r"C:\_temp" #Dirctory in which you store the lyrx files
fileExt = r".lyrx" #do not change it
files = [os.path.join(filesDirectory, f) for f in os.listdir(filesDirectory) if f.endswith(fileExt)] #do not change it
for file in files:
lyrFile = arcpy.mp.LayerFile(file)
lyrFile.updateConnectionProperties(r"C:\_temp\test1.gdb", r"C:\_temp\test1_1.gdb") #path to old database and path to new database (.sde file in your case)
lyrFile.saveACopy(file.split(".")[0]+ "New.lyrx") Comments are after # sign. Amend the paths and try it. BR, Adam
... View more
03-17-2021
01:25 AM
|
0
|
2
|
6070
|
|
POST
|
Dear Chris, Thank you for the answer. Just to leave a reference and hints to others. Before developing add-in, it is better to read Master Agreement first. Especially, Article B.1—General Use Restrictions. BR, Adam EDIT: To be completely transparent: developers are not allowed to incorporate features/services that might compete with Esri Offerings. In my case, it was geocoding and routing capabilities based on Open Route Service. If I was to publish it, the add-in would be open to all community and unfortunately, breach the Master Agreement. Hope this is useful for other devs.
... View more
03-17-2021
01:03 AM
|
0
|
0
|
1822
|
|
POST
|
Hi Mark, As far as I know, you can not do it. You can try to create a 'proxy account' on your portal. Share the content with that user. Finally, hardcode/hash/upload from extrenal ressource its credentials in arcpy using: https://desktop.arcgis.com/en/arcmap/10.7/tools/server-toolbox/sign-in-to-portal.htm BR, Adam
... View more
03-16-2021
02:02 PM
|
0
|
1
|
1455
|
|
POST
|
Hi, here is a good sample code on how to achieve it using Python API: https://developers.arcgis.com/python/sample-notebooks/updating-features-in-a-feature-layer/ BR, Adam
... View more
03-16-2021
01:57 PM
|
0
|
1
|
933
|
|
POST
|
Hi Derek, you can try the following python code in ArcGIS Pro Python window. Adjust the paths. import arcpy
import os
filesDirectory = r"C:\Projects\YosemiteNP"
fileExt = r".lyrx"
files = [os.path.join(filesDirectory, f) for f in os.listdir(filesDirectory) if f.endswith(fileExt)]
for file in files:
lyrFile = arcpy.mp.LayerFile(r"C:\Projects\YosemiteNP\Yosemite.lyrx")
lyrFile.updateConnectionProperties(r"C:\Projects\YosemiteNP\Vector_Data\Yosemite.gdb", r"C:\Projects\YosemiteNP\DBConnections\Server.sde")
lyrFile.saveACopy(file.split(".")[0]+ "New.lyrx") Hope this helps, Adam
... View more
03-16-2021
01:36 PM
|
1
|
7
|
6103
|
|
POST
|
Hi, thy to add your graphics layer and ser its index to 0. https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html#addMany webmap.addMany([ graphicsLayer], 0); Does it help? BR, Adam
... View more
03-16-2021
01:07 PM
|
0
|
2
|
1901
|
|
POST
|
Hi Denis, You can use the 'visible' property of a layer https://developers.arcgis.com/javascript/3/jsapi/layer-amd.html#visible if (fc_0.visible){
fc_0.queryFeatures(queryParams, getStats, errback);
}; BR, Adam
... View more
03-16-2021
12:54 PM
|
0
|
3
|
2183
|
|
POST
|
Hi, here is a description using ArcGIS.com and CSV File. No coding required. https://support.esri.com/en/technical-article/000021263 Hope this helps, Adam BR, Adam
... View more
03-16-2021
12:46 PM
|
0
|
0
|
1013
|
|
POST
|
Hi, you need to compare geometries of input points with the source polygon features/graphics using GemetryEngine (Contains function) https://developers.arcgis.com/javascript/3/jsapi/esri.geometry.geometryengine-amd.html#contains Hope this helps!, Adam
... View more
03-16-2021
12:38 PM
|
0
|
0
|
546
|
|
POST
|
Dear Chris, Thank you very much for a quick reply. I will send you an email shortly. BR, Adam
... View more
03-16-2021
12:09 PM
|
0
|
1
|
1833
|
|
POST
|
Dear Esri staff, I have a question related to ArcGIS Pro Addin licensing for end-users. Can you please share with me the email address to contact person who is dealing with such matters? Thank you, Adam
... View more
03-16-2021
12:46 AM
|
0
|
3
|
1913
|
|
POST
|
Thank you @Wolf and @GKmieliauskas for the guidance. It works ok now.
... View more
02-16-2021
11:20 AM
|
0
|
0
|
3108
|
|
POST
|
Hi Gintautas, Thank you for the answer. I believe that the link you mentioned is useful only to activate arcgis pro built-in MapTools. Is it correct? Thanks! Adam
... View more
02-15-2021
11:01 PM
|
0
|
3
|
3119
|
|
POST
|
Hi, I am struggling with activating a new MapTool item (point sketching on amap) from a button located in a custom Dockpane. Can you please direct me to some code samples or resources on how to do that? Thanks! adam
... View more
02-15-2021
12:37 PM
|
0
|
5
|
3189
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-19-2024 12:19 PM | |
| 1 | 05-11-2016 06:36 AM | |
| 1 | 09-28-2023 08:17 AM | |
| 2 | 03-17-2021 12:09 PM | |
| 1 | 05-11-2016 10:40 PM |
| Online Status |
Offline
|
| Date Last Visited |
03-22-2024
10:35 PM
|