Arcpy class for importing styles

696
2
01-04-2022 09:13 AM
Status: In Product Plan
Labels (1)
David_Colombini
New Contributor II

I was looking over the ArcGISProject class in the ESRI developer docs and was wondering if it's possible to use this class to import a style (or stylx) and set it as a default?  If not, I think this would be very helpful because my company uses custom styles all the time and it is a pain to have to manually import the same style into every project.

Tags (2)
2 Comments
JohannesLindner

You can add styles to your project favorites. That way, they are available in all projects.

JohannesLindner_1-1641368586836.png

 

 

JeffBarrette
Status changed to: In Product Plan

At Pro 3.2 we've added the ability to reference existing styles via the ArcGISProject.listStyleItems() method.  Post 3.2, and hopefully Pro 3.3, we plan to add the capability to add styles to a project like we did with folder connections and databases.

Jeff - Layout and arcpy.mp teams