SVG Export Setup (pixel width, height)

This topic has been viewed 12587 times and has 5 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
Ferraro
Posts: 22
Joined: Wed Apr 16, 2014 6:25 pm

SVG Export Setup (pixel width, height)

Post by Ferraro »

I am working with 4.2 source, and I need a way to set the pixel width and height to a static size, like 500px by 500px when my SVG is exported. I have been opening the SVG manually and changing (width="500px" height="500px") but it is becoming impossibly time consuming with a large batch. It would be much simpler if I could just set the pixel dimensions into the export operation.
If any developers could help with a location, and possible method to achieve this, it would be greatly appreciated. Spent an hour or so digging through the thousands of lines of code, realizing without a point in the right direction I could lose days at this.
Thanks in advance.
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: SVG Export Setup (pixel width, height)

Post by okh »

I agree that it could be useful to adjust scaling and other parameters in the SVG export. If someone is looking into this, please note me for a wish for an option to export without the embedded images (smaller files, easier to embed in html).

ok

PS I guess an editor that can search-replace through many files would not really solve your problem?
Ferraro
Posts: 22
Joined: Wed Apr 16, 2014 6:25 pm

Re: SVG Export Setup (pixel width, height)

Post by Ferraro »

I guess what I am really looking for overall is output control by any means necessary. A png export feature for the plan view would be nice, and so would being able to set pixel dimensions on SVG output. If I have to make a couple of builds of SweetHome with the common output settings I use, that would not be a problem. I realize there are other programs to convert files as needed, and I use them, but I really don't want to. I would rather just stay right in SweetHome producing everything I need from it without all the extra time and hassle.

PS.. Not sure it would help too much. What are you working on?
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: SVG Export Setup (pixel width, height)

Post by okh »

Not working on anything [:)] - just using a good text editor for batch editing. But I agree it is not a perfect solution.

As for PNG export - you are aware that you can select-copy plan items and paste as image to other software? In addition to screenshot, that is why I am not too concerned with SVG export.

ok
Ferraro
Posts: 22
Joined: Wed Apr 16, 2014 6:25 pm

Re: SVG Export Setup (pixel width, height)

Post by Ferraro »

Dug this project up again. It looks like Sweethome is using freehep graphics library. If so, it seems like the easiest way to get my desired image would be if the freehep export dialog was displayed. Might not be so hard. Any thoughts on this?
okh
Posts: 1545
Joined: Sun May 12, 2013 9:43 pm

Re: SVG Export Setup (pixel width, height)

Post by okh »

Any thoughts on this?
Me, I am in the wrong forum ([:)]). But there was a mention of altering SVG export in thread 4127 - maybe someone has played with this before? ok
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 2 guests