Bulk import SVGs to Shape Markers and add to .stylx?

107
1
09-30-2021 09:13 AM
caleb-thomas-smith
New Contributor II

[cross post from the ArcGIS Pro community - apologies for any duplication!]

Hi all!

I have a symbol dictionary that I would like to import to Pro and create a shareable .stylx file. I have all 2,325 symbols (wayyy too many to do manually!) as individual SVG files, and I've been trying for hours to find a way to bulk import these, instead of doing it manually. This post seemed promising for a while, but then I realized that it required the actual symbol to be in Pro already.

Does anyone have any experience doing something like this? Or do you know of a way to do this through ArcPy or something similar? I think that part of the complicating factor is because SVGs become CIMSymbols (?), but I haven't been able to find anything about conversion.

Any help would be much appreciated. Thanks!!

1 Reply
Stefan_Thorn
New Contributor III

Hi Caleb,

I have found a Add-In on GitHUB and it works perfect! Used it in ArcGIS Pro 2.8.3

Https://github.com/Esri/military-features-data/tree/csm/%23296-update-stylx-creation-process

1. Download and unzip (keep dir name as downloaded 'military-features-data-dev' otherwise the add in does not work);

Follow the instructions. https://github.com/Esri/military-features-data/wiki/Creating-Dictionary-Renderer-Style-Files 

- I just copied my svg files and sub folders to the stated folder.

- use the the csv file that is mentioned as template to build up your own csv in excel. make sure it is comma delimited

- you can copy this csv file into the stated folder, no problem if there are more csv files because with the add in you will choose this one.

Succes!

Stefan.

P.S. I have a short holiday, so I will not read or reply before November 1

 

0 Kudos