Select to view content in your preferred language

Scripting symbol size

173
5
a week ago
Labels (1)
MarcelSt-Germain
Frequent Contributor

Hi, I try with chatgpt and gemini without success.

There is a way to script the change of symbols size?  I have many symbology with size I need to change.  For now, I only can manually in format point symbol, properties size.

What I need to do, is to script it to check the size of a symbol and change for a new one.  I don't need to change the layers of my symbols, just the size like we can do manually.  By exemple, I have 60 symbols in a layer that I whant to make from 10 pt to 12pt.  

0 Kudos
5 Replies
D_Atkins
Frequent Contributor

I believe you could do this with Python via the Cartographic Information Model (CIM).

Python CIM access—ArcGIS Pro | Documentation

Example 3 from "Modify a CIM Description" in the documentation explicitly demonstrates how to access the Layer Symbology.  

MarcelSt-Germain
Frequent Contributor

I try that but, can't find the size.  I can change in python the individual layers of the symbol but not passing the size at once.

0 Kudos
JonM32
by
Frequent Contributor

@MarcelSt-Germain You can do this without any scripting.

In Pro, go to the symbology for the layer. The click the 'More' option when you first open the Primary Symbology window. Then, choose 'Format all symbols'. You can set the size of all of them at once without messing up the symbology of each point.

Thanks,

Jon
MarcelSt-Germain
Frequent Contributor

Hi thanks, useful but not if you have multiple sizes.

0 Kudos
JonM32
by
Frequent Contributor

@MarcelSt-Germain 

You can select a subset of symbols in the entire list, and then do the same thing. But this time, you'll have to right click in the list. Please see video for demo.

Thanks!

Jon
0 Kudos