furniture library import

This topic has been viewed 3516 times and has 2 replies
Thread status: Active
Features you would like to see [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
Post Reply New Topic
Sajmmon
Posts: 50
Joined: Wed Nov 10, 2010 10:15 pm
Country: Warsaw, Poland
Contact:

furniture library import

Post by Sajmmon »

Hi,

I use SweetHome3D_3.3. The feature I would like to describe is just a small improvement, nontheless, might be important in same situtations.

Let's say we have a furniture library:

library.sh3f

and from time to time we wish to release an updated version of this library to our users. Usually the old version would be overwritten with the new one during importing and that's what we intend.

However, if we place the library in a web server for download, some browsers (e.g. IE6) like to change extensions of downloaded files. And this is what happens with .sh3f, it is changed to .zip.

The .zip library can be imported to SweetHome, but the models from .sh3f library would not be overwritten.

So, basically it would be nice if SweetHome could overwrite a library no matter what is the extension .zip or .sh3f.

------
Temporary solution to the above problem is to add:

<Files *.sh3f>
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>

to .htaccess file in a web server.
------

Regards,

Szymon Chojnacki

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

Re: furniture library import

Post by Puybaret »

I'm reluctant to change implementation for an old browser, if your current solution works.

On sweethome3d.com, I added the following lines to the .htaccess file:

Code: Select all

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ".*MSIE.*"
RewriteRule ^(.+)\.(sh3f|sh3p|sh3t|sh3d|sh3l)$ - [T=application/unknown]
Emmanuel Puybaret, Sweet Home 3D creator
Sajmmon
Posts: 50
Joined: Wed Nov 10, 2010 10:15 pm
Country: Warsaw, Poland
Contact:

Re: furniture library import

Post by Sajmmon »

Thank you :-)
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest