Mobile app version of vmapp.org
Login or Join
Sims5801359

: How to export list of objects in Inkscape? I have an .svg file that has a map of the United States with each county being a different object. I want a list of all these objects along with

@Sims5801359

Posted in: #Inkscape

I have an .svg file that has a map of the United States with each county being a different object. I want a list of all these objects along with their ID. When I right click an object and select "object properties" I can see the ID and the Label of the object, but is there any way to export a list of these?

Picture is what I'm working with

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sims5801359

1 Comments

Sorted by latest first Latest Oldest Best

 

@Murphy569

I didn't have an SVG file of the USA with each county being a different object, but found a map of the USA with each state being a different object.

When I opened that file in a text editor, I was able to see the individual path IDs that are part of the file.



Unfortunately, I'm not a script wizard, but I suspect that someone with reasonably simple scripting skills would be able to parse the path IDs for your document.

If it was a one-off project, you could manually edit the file by deleting everything else, although every county in every state in the USA would be rather excessive.

I have a macro program that I would use, creating a simple "manual" editing script, turning a tedious process into a brute force process instead.

I suspect that if one were skilled in Python, the process would be even simpler.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme