POST
|
I just noticed that there is a feature request https://community.esri.com/ideas/6533 from 2012 with 9 votes...
... View more
07-31-2020
05:18 PM
|
0
|
0
|
2856
|
POST
|
Thank you for your reply Dan. I was able to create a new label class using this: # Create a new label class new_label_class = arcpy.cim.CreateCIMObjectFromClassName('CIMLabelClass','V2') new_label_class.name = 'Class 2' cim_industry.labelClasses.append(new_label_class) However... whenever I try to use the layer that I created the new label class on it crashes ArcPro so something gets corrupted... which they do wanrn about here, Python CIM access—ArcGIS Pro | Documentation
... View more
07-31-2020
04:43 PM
|
2
|
3
|
2856
|
POST
|
I am using ArcPro 2.6 and I can modify existing label classes no problem. But what I want to do is to create a new label class using arcpy- I just cannot figure it out, what am I missing? All example’s I come across starts with listLabelClasses which assumes the class already exists. Thanks.
... View more
07-30-2020
06:01 PM
|
1
|
7
|
2928
|
POST
|
Mark, That should work (I'm using 1.7.1) and only the title is required. Can it be something with the data you are trying to publish?
... View more
02-05-2020
11:52 AM
|
0
|
1
|
1173
|
POST
|
Thank you Matthias! I cannot believe I haven't seen this before.
... View more
12-04-2019
01:40 PM
|
0
|
0
|
2486
|
POST
|
Hi Anne, Are you looking for something like this? Did you check out the group guide in the documentation?
... View more
11-17-2019
05:18 PM
|
0
|
0
|
347
|
POST
|
Jesse, Show us the code you have so far and where you are stuck. Thanks.
... View more
11-17-2019
03:52 PM
|
0
|
0
|
511
|
POST
|
Randy, If this is what you want to update: then use the licenseInfo tag... After:
... View more
11-02-2019
04:14 PM
|
4
|
1
|
1235
|
POST
|
Scott, I think you are looking for rstrip() and lstrip(). ArcGIS Pro field calculator: Python example:
... View more
10-31-2019
08:26 AM
|
1
|
2
|
1116
|
POST
|
Laurin, I agree with you, the gis.content.search() using a sort_field (sort_order desc or asc) does not work as expected. On the API example page (scroll down to the "Searching for content in ArcGIS Online" section), it doesn’t even order it correctly. I made a simple workaround that will order your result by the number of views as you can see in the screenshots below. The standard search doesn't order the results: After the workaround, the result is sorted by the number of views:
... View more
10-30-2019
10:05 AM
|
0
|
0
|
935
|
POST
|
Use gis.admin.usage_reports.users(). See the sample @ https://community.esri.com/thread/241589-user-credit-usage?start=0&tstart=0
... View more
10-11-2019
12:16 PM
|
1
|
1
|
2686
|
POST
|
Michael, You can query individual users credit consumption using gis.admin.usage_reports.users(). I have attached a simple sample.
... View more
10-11-2019
12:12 PM
|
3
|
1
|
2022
|
POST
|
Lynn, Just for testing- can you simplify your script? Can the issue be with your query layer? The arcpy.CopyFeatures_management() command to a memory feature works just fine for me. I am using ArcGIS Pro 2.4.2 by the way.
... View more
10-11-2019
09:56 AM
|
0
|
0
|
4953
|
POST
|
Forest, I modified what is here and this code worked for me: Our Portal is 10.7 and I'm using the 1.6.2 API version. The one thing I'd check is the new user id- I had to add the domain (new_user@domain) for it to work.
... View more
09-13-2019
02:38 PM
|
0
|
0
|
881
|
POST
|
You cannot pass any parameters to the numViews so if you want to use date ranges you have to continue to use .usage.
... View more
09-11-2019
09:57 AM
|
2
|
0
|
1289
|
Title | Kudos | Posted |
---|---|---|
1 | 10-11-2019 12:16 PM | |
2 | 09-11-2019 09:57 AM | |
1 | 10-30-2018 12:03 PM | |
2 | 09-10-2019 09:11 AM | |
1 | 10-31-2018 08:59 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|