Print at Dec 16, 2025, 8:26:44 PM

Posted by bellskar at Apr 30, 2010, 3:19:01 PM
Re: How to import furniture in Applet
The first thing I would do is to simply import the ZIP files you created in the offline version of Sweet Home 3D after changing their extension from zip to sh3f, and check if the models listed in them appear in Sweet Home 3D catalog.
If this succeeds, you should check if http://my_url/online/furnitureCatalog.zip is accessible. As you kept a slash in front of "/online/furnitureCatalog.zip", online directory should be at root. If you remove the first slash from "/online/furnitureCatalog.zip", online will be relative to applet "codebase" attribute.

Great!!! it was the slash. I actually was using a specific folder named SH3D as the application on the root. but didn't remove the "/". after your post I just got that and removed the "/" before "online" to use it as relative to "codebase" which in my case was "http://my_url/SH3D/"

lastly, is there any way to download all the models from sweethome3d.eu in an archive rather than downloading them each individually. Ofcourse if it's authorised by sweethome3d.eu.
The two things that forbids me to do this is time and bandwidth.
Time is a concern since I would have to update this archive each time I add models in additionalFurnitureCatalog.zip, and this would be one more task I shouldn't forget.
Bandwidth is my main concern since this archive weights 32 MB at this time, and I'm always frightened by the idea of hosting such a big file (Sweet Home 3D installers are big files too but they are hosted on SourceForge.net servers).

I got that. it's understandable.

If you feel comfortable with regular expressions, you can transform the lines containing ".zip" and ".png" in PluginFurnitureCatalog.properties into wget commands, taking care of subdirectories.

Won't it be the other part from downloading the catalogs from sweethome3d server. the hell is actually to download each zip file :P
any ways. the use of regular expressions in "*.properties" is also a good for me but ofcourse I would have to download the zip files separately each.

If not, the only solution I see at this time is to create that file on demand and publish it temporarily.
If you don't have a better idea, send me a private message or an email.

I'll contact you via email. That would be great and so kind of you.
Thanks a lot.