SVG Export with ID field in <path>

This topic has been viewed 2735 times and has 2 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
Cazeu64
Posts: 1
Joined: Fri Dec 08, 2017 10:44 pm
Country: France

SVG Export with ID field in <path>

Post by Cazeu64 »

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 :

Code: Select all

<path d="bla bla bla">
I would like to have :

Code: Select all

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

Code: Select all

<path class="class1" d="bla bla bla">
If someone knows something about this, I really would appreciate it :).

Thanks in advance,

Cazeu64.
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: SVG Export with ID field in

Post by Puybaret »

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
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: SVG Export with ID field in <path>

Post by okh »

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
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest