Print at Dec 17, 2025, 8:16:19 PM View all posts in this thread on one page
Posted by Cazeu64 at Dec 8, 2017, 11:51:22 PM
SVG Export with ID field in <path>
Hi

Sorry about my english level, that's not my native language.

I need to figure out how to implement id field in <path> tag into SVG file.

Basically, I have :

<path d="bla bla bla">


I would like to have :

<path id="id" d="bla bla bla">


Or even

<path class="class1" d="bla bla bla">


If someone knows something about this, I really would appreciate it :).

Thanks in advance,

Cazeu64.

Posted by Puybaret at Dec 9, 2017, 10:24:23 AM
Re: SVG Export with ID field in <path>
I don't think it will be possible from Sweet Home 3D. SVG paths are automatically generated from Java AWT drawing orders with FreeHEP library.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by okh at Dec 9, 2017, 1:42:34 PM
Re: SVG Export with ID field in <path>
Inkscape will, if I remember correctly, assign id's automatically. And and using Inkscape's XML editor, it is reasonably easy to change them to something sensible. Saving as Optimized SVG is good for filtering out unwanted stuff after editing (like ungroup/regroup to remove the transform elements). End result is an .svg file that is relatively easy to edit with any editor. ok