Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3204 times and has 2 replies Next Thread
Sajmmon
Member



Poland
Joined: Nov 10, 2010
Post Count: 50
Status: Offline
Reply to this Post  Reply with Quote 
furniture library import

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
[Dec 22, 2011, 1:49:18 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9420
Status: Offline
Reply to this Post  Reply with Quote 
Re: furniture library import

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:

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ".*MSIE.*"
RewriteRule ^(.+)\.(sh3f|sh3p|sh3t|sh3d|sh3l)$ - [T=application/unknown]

----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
[Dec 22, 2011, 3:47:13 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Sajmmon
Member



Poland
Joined: Nov 10, 2010
Post Count: 50
Status: Offline
Reply to this Post  Reply with Quote 
Re: furniture library import

Thank you :-)
[Dec 22, 2011, 4:02:01 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved