applause export SVG

This topic has been viewed 340 times and has 3 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
gloubiboulgars
Newbie
Posts: 3
Joined: Fri Nov 13, 2026 10:57 am
Country: France

export SVG

Post by gloubiboulgars »

Hello everyone,

I (with claude code) created a script that exports plans to SVG from Sweet Home 3D. It generates a much lighter version: walls are exported as lines, arcs, etc., and the line thickness corresponds to the wall thickness.

Anyway, feel free to try the plugin. It creates the SVG files in the same folder as the SH3D file. I haven’t had any issues with very large buildings. The menu is available under Tools.

Feel free to like it or hate it.

I tested the plugin with the portable version 7.5.
Attachments
ExportMursSVG.sh3p
(26 KiB) Downloaded 57 times
gloubiboulgars
Newbie
Posts: 3
Joined: Fri Nov 13, 2026 10:57 am
Country: France

Re: export SVG

Post by gloubiboulgars »

Title: Lightweight SVG export plugin with layers, scale and 8 languages

Hello everyone,

I would like to share an SVG export plugin improve that I developed to produce base maps for evacuation plans from Sweet Home 3D plans (tested with version 7.5 portable, on Windows 10). I built it with the help of Claude; I tested all the functions myself.

Lightening: the standard SVG export of a large building produces a huge file, because the wall pattern is saved as a single PNG image the size of the plan (99 MB for a building about 72 m long, and nearly a gigabyte with all levels). The plugin replaces this image with a vector fill of the same area: the file drops to about 230 KB, with the same drawing.

Simplified exports: a second set of menus writes the SVG directly from the plan data. Walls are drawn as strokes whose width is the wall thickness (circular arcs for curved walls); furniture and doors are polygons; rooms, dimensions, texts and lines are included. Each type of element has its own Inkscape layer, and furniture groups stay grouped. The export is done per level (one file per level, or one file per elevation for levels at the same elevation), at original size, fitted to a page from A4 to A0, or at a scale from 1:10 to 1:500.

Languages: all the texts (menus, dialogs, messages, layer names) are in messages_xx.properties files read as UTF-8: French, English, Spanish, Portuguese, Italian, German, Russian and Simplified Chinese. The language is the one selected in the Sweet Home 3D preferences, and a language without a file falls back to English. The translations were written with Claude and have not been reviewed by native speakers. If you speak one of these languages (or another one) and would like to correct a translation or add a new one, please feel free to contact me by private message.

I can provide the .sh3p file and the sources if anyone is interested.

Best regards,
Gloubiboulgars
Attachments
ExportMursSVG.sh3p
(42.41 KiB) Downloaded 19 times
pswar62
Newbie
Posts: 7
Joined: Thu Nov 26, 2026 10:10 am

Re: export SVG

Post by pswar62 »

gloubiboulgars wrote:If you speak one of these languages (or another one) and would like to correct a translation or add a new one, please feel free to contact me by private message.
yeah the built in export is bloody hopeless once the plan gets big, ours took ages to save and the svg was daft heavy before I even got it into Inkscape innit. gave yours a go on our house plan, gloubiboulgars, and being able to hide everything but the walls and print at 1:50 is exactly what I needed for sorting out the train room. checked it against a tape measure too and its spot on, definately keeping this one :)
gloubiboulgars
Newbie
Posts: 3
Joined: Fri Nov 13, 2026 10:57 am
Country: France

Re: export SVG

Post by gloubiboulgars »

Hi pswar62,
Cheers for trying it out, glad it did the trick for the train room! Good to hear the 1:50 print matched the tape measure too.

If you get a chance: what language is your Sweet Home 3D in, and did you try it with curved walls or several levels? Always keen to hear if anything looks off.
Post Reply New Topic