|
POST
|
why not set defult value to zero ? can you post the attribute rule code ?
... View more
06-24-2024
04:33 AM
|
0
|
0
|
549
|
|
POST
|
there is chance they work offline and someone didnt update his local Database or conection problem and the data sent layer ?
... View more
04-13-2024
11:55 PM
|
0
|
1
|
2920
|
|
POST
|
replaced the panToExtent with : extent = mf.camera.setExtent(mf.getLayerExtent(Origin, False, True)) df.extent = extent
... View more
03-09-2024
09:07 PM
|
0
|
0
|
691
|
|
POST
|
cant make it work with script it run fine in pro 3.1.1 but failed when run with pyton script. after successful run in pro i copyd the python command and try to run it with the script still get the ERROR 100014
... View more
08-10-2023
03:51 AM
|
0
|
0
|
6605
|
|
POST
|
toady found out it happens when copy paste attributes from layer with attribute rules to layer with no rules not just with appand
... View more
04-03-2023
10:11 PM
|
0
|
0
|
1328
|
|
POST
|
im working with list of list becuse i dont know how many layer the user works with this woks with the list of list a = list("abcdefg")
b = list("bcdfghij")
d = [a,b]
set(d[0]).intersection(*d)
{'b', 'c', 'd', 'f', 'g'} or with list of set its that way: set.intersection(*d)
... View more
03-22-2023
11:43 PM
|
0
|
0
|
1251
|
|
POST
|
*all_layer_field_list its list containg the list of fields of eace layer the intesection works the problem the list of fields in the drop down dont contain the full list
... View more
03-22-2023
08:55 AM
|
0
|
0
|
1275
|
|
POST
|
i have python tool box with definition query tool, the tool activate definition query on multiple layers In running into hard wall when trying to display only the fields that mutual to the different layers When try to display the list of the fields the dialog shows only few fields and not all I'm testing it on 2 similar layers with 90 fields. Turned off 3 in one layer and the dialog show only 4 instead of 87 With no filter i get all the fields in the first layer how to let the user see only the mutual list of fileds? def updateParameters(self, parameters):
"""Modify the values and properties of parameters before internal
validation is performed. This method is called whenever a parameter
has been changed."""
if parameters[0].values:
all_layers_field_list = []
for layer in parameters[0].values:
field_names = [f.name for f in arcpy.da.Describe(layer.name)["fields"]]
all_layers_field_list.append(field_names)
list_fields = list(set(all_layers_field_list[0]).intersection(*all_layers_field_list[1:]))
parameters[1].filter.list = list_fields
if parameters[1].value:
field_values =list(set([row[0] for row in arcpy.da.SearchCursor(parameters[0].values[0], [parameters[1].valueAsText],f"{parameters[1].valueAsText} IS NOT NULL")]))
parameters[2].filter.list = field_values
return
... View more
03-22-2023
07:12 AM
|
0
|
4
|
1298
|
|
POST
|
the fields exectly the same except that the source have attribute rules t with the "editable" checkbox unticked if i delete the rule it work fine
... View more
03-15-2023
07:03 AM
|
0
|
0
|
1451
|
|
POST
|
when appending from layer with aattribute rules to new one all the fields with editebal chackbox tiked off arent mapped with the rest of the fileds When appending data from a layer with attribute rules to a new layer, any fields with the "editable" checkbox unticked not recognized with the "use the field map to reconcile schema differences option " the attachments shows how it was in 3.03 and what heppen in 3.1
... View more
03-15-2023
03:42 AM
|
0
|
3
|
1506
|
|
POST
|
i have Stand alon Script that save html reports that include location map the pan to the selected point dont wotk in older versoins befor the 3.0 i was able to do it now i can't, this function works if i run it inside notebook with arcpy.mp.ArcGISProject(aprx_path) set to current its not working with aprx file path def export_location_map(aprx_path,GlobalID,ws):
aprx = arcpy.mp.ArcGISProject(aprx_path)
m = aprx.listMaps('ReportsMap')[0]
lyt = aprx.listLayouts("Layout*")[0]
point_layer = m.listLayers()[0]
GlobalID = '5130b789-9065-46e7-90b4-2cdc9cbebdc9'
point_layer.definitionQuery = None
point_layer.definitionQuery = f"GlobalID = '{{{GlobalID}}}'"
selected_point,count= arcpy.SelectLayerByAttribute_management(point_layer, 'NEW_SELECTION',f"GlobalID = '{{{GlobalID}}}'")
mf = lyt.listElements("mapframe_element", "Map Frame")[0]
mf.panToExtent(mf.getLayerExtent(selected_point, True, False))
mf.camera.setExtent(mf.getLayerExtent(selected_point, True, False))
arcpy.SelectLayerByAttribute_management(point_layer, 'CLEAR_SELECTION',f"GlobalID = '{{{GlobalID}}}'")
aprx.save()
jpg = os.path.join(ws, 'test.jpg')
lyt.exportToJPEG (jpg,clip_to_elements=True)
... View more
03-11-2023
11:25 PM
|
0
|
2
|
947
|
|
POST
|
try using ListFeatureClasses example from the page it works for me evry time
... View more
02-16-2023
06:12 AM
|
0
|
1
|
2037
|
|
POST
|
trying to update hosted feature on ArcGIS Enterprise 10.8.1+ from local GDB this is the Exception Exception: 'appendUploadFormat' must be one of the following: shapefile, geojson, csv, featureCollection, excel. in the API working with fgdb is option , this is the function i use for the update what am i missing ? def append_and_update(agriplots,gdb, url,username,password):
gis = GIS(url = url, username=username, password=password)
layer_for_update = FeatureLayer(agriplots,gis)
print("Uploading File Geodatabase")
fgd_properties={'title':"Temp GDB deleted at the end", 'tags':'temp file geodatabase', 'type':'File Geodatabase'}
gdb_item = gis.content.add(item_properties=fgd_properties, data=gdb + ".zip")
print("updating... ")
result = layer_for_update.append(item_id=gdb_item.id, upload_format="filegdb",source_table_name='AP_WGS84',return_messages=True)
print(result)
delete_result = gdb_item.delete()
print(delete_result)
... View more
02-15-2023
06:23 AM
|
0
|
10
|
3033
|
|
POST
|
since the move to arcPro 3 its not working as expected
... View more
09-14-2022
09:31 PM
|
0
|
0
|
5750
|
|
POST
|
what worked for me 1. run ArcGIS pro (3.0) 2. open vs code with the script open 3. in vs code run and Debug , then select attach using process ID and select the ArcGIS pro processed run the gp tool in ArcGIS pro
... View more
07-23-2022
10:55 PM
|
0
|
3
|
5832
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-26-2022 01:54 AM | |
| 1 | 07-13-2022 10:57 PM | |
| 2 | 12-28-2020 04:16 AM | |
| 2 | 03-25-2018 12:22 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-04-2024
12:37 PM
|