Script to share: MapUnit Symbology Colors to DMU RGB #125
Replies: 2 comments 3 replies
-
It looks like Evan expanded this out into a Jupyter Notebook too! If you have some knowledge of Python/Jupyter notebooks, this offers a bit more flexibility in how you assign colors. |
Beta Was this translation helpful? Give feedback.
-
I am getting this error when trying to run the tool. Can you provide any assistance? I'm attempting to use CMUMapUnitPolys which are in CMYK with no label split character.
|
Beta Was this translation helpful? Give feedback.
-
If you're tired of manually filling in RGB codes in your DMU tables, this script is for you.
This script reads layer color symbology for geology polygons and adds RGB codes to the AreaFillRGB field in the description of map units table. If the layer symbology is not in RGB, it will convert the color codes to RGB based on input color mode. It works with RGB, HSV, HSL, and CMYK. It will NOT change the color mode of the layer symbology, but it will insert the corresponding RGB codes into the DMU.
The original code structure was put together by Evan, I just expanded it out. The zip file includes the python script and an .atbx file with the script tool configurations and metadata. To use, unzip the folder, add the .atbx file to your ArcGIS Pro project, and verify in the script properties that the path to the .py file is correct. Tool metadata has been set up, so you should be able to hover over the red asterisk/"i" icon to view parameter information.
Let me know if you have any problems with it. I'm self-taught in Python so I'm always open to feedback.
MapUnitSymbologyColors_to_DMU_RGB.zip
Beta Was this translation helpful? Give feedback.
All reactions