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

386
9
Jump to solution
09-28-2021 09:30 PM
caleb-thomas-smith
New Contributor II

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 image 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!!

0 Kudos
1 Solution

Accepted Solutions
DanielStephen
Esri Contributor

Hi Caleb,

This can be accomplished with an add-in for ArcGIS Pro developed with the ArcGIS Pro SDK for .NET. I've uploaded a simple add-in on ArcGIS Online that might work for you in this case:

https://www.arcgis.com/home/item.html?id=c25ab2da6ae343af9acc632120c7cf01

Instructions for how to install and use the add-in are included on that page. It took about 5 minutes to import around 1300 svg files when I tested it. Let me know if you have questions! 

If you're not familiar with the ArcGIS Pro SDK, here's a good tutorial to get started. 

 

View solution in original post

9 Replies
caleb-thomas-smith
New Contributor II

@ShanaBritt @AubriKinghorn, is there anyone at Esri that might be able to help? Or should I just contact support directly?

0 Kudos
DanielStephen
Esri Contributor

Hi Caleb,

This can be accomplished with an add-in for ArcGIS Pro developed with the ArcGIS Pro SDK for .NET. I've uploaded a simple add-in on ArcGIS Online that might work for you in this case:

https://www.arcgis.com/home/item.html?id=c25ab2da6ae343af9acc632120c7cf01

Instructions for how to install and use the add-in are included on that page. It took about 5 minutes to import around 1300 svg files when I tested it. Let me know if you have questions! 

If you're not familiar with the ArcGIS Pro SDK, here's a good tutorial to get started. 

 

View solution in original post

caleb-thomas-smith
New Contributor II

Hey Daniel,

This is amazing, thank you SO much! I'll let you know if I have any questions, but it seems pretty self explanatory. 

Thanks again!!

0 Kudos
caleb-thomas-smith
New Contributor II

Hey Daniel,

One quick question - I installed the add-in, and I'm now getting this error message:

addin issue.PNG

Is there a way to roll it back to 2.8?

0 Kudos
DanielStephen
Esri Contributor

Oops! Yep, I'll fix that and update the add-in.

0 Kudos
caleb-thomas-smith
New Contributor II

Awesome, thanks so much!

0 Kudos
DanielStephen
Esri Contributor

Ok, it's updated and should work in 2.8 now. Sorry about that! You'll have to delete the old one from your computer and download/install it from the same link again. 

caleb-thomas-smith
New Contributor II

That did the trick - thank you SO much again!

0 Kudos
Stefan_Thorn
New Contributor III

Nice Add-in. 

I also have found this Add-In on GitHUB and it also works perfect but needs some more efforts! 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.

0 Kudos