Hello,
I'm working with Vision, importing a large SVG that represents a plant layout.
The SVG is created in Inkscape, and I've taken care of naming all the element IDs according to the names of the elements of the plant.
But however, when I'm importing the SVG into a Vision window, it seems that some of the IDs are auto-generated by Ignition (ex: "101_01" becomes simply "Path1" in a group).
Is there a way to maintain the IDs of the elements, importing them into Vision windows?
I've tried to look through the forum, but with no luck.
Thanks.
1 Like
Sounds like a good candidate for the ideas portal:
You'll probably just have to copy the Inkscape label to the ids or names
I use this extension for Inkscape I asked Claude to write. It copies the inkscape:label to the label at the moment but should be simple to copy to name field as well if you find you need it
Inkscape Extension - Copy Inkscape Label to ID.zip (1.2 KB)
Just unzip it to your Inkscape plugins directory and restart Inkscape, then it'll be under Extensions -> xml tools
Thanks for the plugin info.
I was matching ids and labels by hand in the “object properties” window of Inkscape.
However I think that the problem is more on the Ignition side, when importing the SVG.
It seems that the name is based on the ID attribute, but it is kept only for groups.
Layers, paths, objects and texts do not keep it and get simply renamed.
I’ve tried also with Name attribute but with no luck.
1 Like