0
aprx = arcpy.mp.ArcGISProject( path_in + name_in)
aprx.listStyleItems()

returns:

AttributeError: 'ArcGISProject' object has no attribute 'listStyleItems'

While all other functions work (https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm). Even if objects are empty, they return: []

I work with ArcGIS Pro 3.1.4; Python Notebook.

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Jun 10, 2024 at 19:23

1 Answer 1

3

I would assume the listStyleItems method was added to ArcGIS Pro 3.2 and does not exist in 3.1.

If you use the drop down at the top of the page you reference (https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/arcgisproject-class.htm), you can select 3.1, 3.2 and 3.3. The function is documented in 3.2 and 3.3, but not in 3.1

answered Jun 10, 2024 at 19:33

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.