France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Furniture Library Editor Beta released
I should deliver the default catalog as a SH3F file too.
At the moment, you can quite easily get rid of the default furniture catalog of Sweet Home 3D, by following these steps: - Ensure you installed Sweet Home 3D from its installer (not with Java Web Start). - Remove the file named Furniture.jar from Sweet Home 3D installed files. Under Windows and Linux, this file can be found in the lib subdirectory of Sweet Home 3D installation directory ; under Mac OS X, choose first Show Package Contents item in the contextual menu of Sweet Home 3D application icon, and go to the subfolders Contents > Resources > Java to remove Furniture.jar. - Relaunch Sweet Home 3D, all default furniture will be gone.
Reusing the furniture contained in the Furniture.jar file is less easy ; here are the big steps: - rename Furniture.jar as DefaultFurniture.zip, - in Furniture.zip rename the entry com/eteks/sweethome3d/io/DefaultFurnitureCatalog.properties as PluginFurnitureCatalog.properties (in root directory), - rename DefaultFurniture.zip as DefaultFurniture.sh3f, and use this file as any SH3F file.
If you can't achieve it, you'll have to wait the release of a SH3F file containing default furniture (this may happen in the coming weeks).
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
USA
Joined: Aug 13, 2010
Post Count: 4
Status:
Offline
Re: Furniture Library Editor Beta released
Ok, I got this far: under Mac OS X, choose first Show Package Contents item in the contextual menu of Sweet Home 3D application icon, and go to the subfolders Contents > Resources > Java. I see Furniture.jar, but I can't make any changes to it or even delete it. It tells me "'Java' cannot be modified."
I made a copy of the Furniture.jar file onto my desktop to try to make the sh3f file. (don't even know whether it could work this way) I tried to follow the steps and I tried to tweak a couple, but when I opened the end-result sh3 file in the Furniture Library program there is no furniture.
Of course, I don't *really* know what I'm doing. Other people may be able to get it to work. I've had my Mac for a few years now, but I am still learning its intricacies. Plus, I'm not a programmer, so I'm really not much help.
I do have one concern about this default furniture catalog thing. I've used several pieces of its furniture in my home model. Would they just disappear? It wouldn't be the end of the world or anything, I'm just wondering if I will need to re-measure my real furniture.
Hans
----------------------------------------
Hans
new website - under constuction hansdirkse.info
----------------------------------------
[Edit 1 times,
last edit by hansmex at Nov 29, 2010, 10:24:16 PM]
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Furniture Library Editor Beta released
Any idea as to why my Mac won't allow me to remove Furniture.jar?
Probably, because the program is still running or Sweet Home 3D.app folder is protected. There can't be other reasons.
has there been (or will there be) a release of an SH3F file containing default furniture?
Hans, I think that by "default" JaimeLF means the furniture that is available in Sweet Home 3D default catalog, not the additional known SH3F files. JaimeLF, I can write an Ant script that would build a SH3F file for the default furniture. Why do you need it?
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
USA
Joined: Aug 13, 2010
Post Count: 4
Status:
Offline
Re: Furniture Library Editor Beta released
Oh! I've now deleted the Furniture.jar file (I had to remove the app from the dmg).
I tried to 'reuse' the Furniture.jar file as outlined in Puybaret's 8/14/10 post. I still can't get that to work right. When I open my resulting file with FurnitureLibraryEditor, it's empty.
Anyway, I just wanted to be able to change the categories and properties of the default furniture (like I can with the imported furniture).
Joined: Sep 15, 2011
Post Count: 1
Status:
Offline
Re: Furniture Library Editor Beta released
I love it Emmanuel. It works great and it really helps build large furniture libraries. Thanks for the sweet tool!
----------------------------------------
Craig Stein
Joined: Oct 2, 2007
Post Count: 188
Status:
Offline
Re: Furniture Library Editor Beta released
I have a question about the editor:
The library editor has a checkbox for the doors & windows, will it have one for stairs too, now that you've so nicely made it possible for the stairs to punch a hole in the floor of the room? Or is that not needed?
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Furniture Library Editor Beta released
There is a check box for staircases in Furniture Library Editor 1.6 released yesterday. For the most audacious users, there's even an accompanying text field to enter the cut out shape of the staircase using the SVG path syntax.
This shape should be closed and fit in a square spreading from (0, 0) to (1, 1) which will be scaled afterwards to the real size of the staircase. The default value:
M0,0 v1 h1 v-1 z
matches a square of that size, and will compute a hole in upper levels matching the staircase width and depth. But you can enter a much more complicated shape like the pie matching the spiral staircase available in the default catalog:
M0,0.35 h0.47 l0.375,-0.35 l0.088,0.118 A0.5,0.5 0 1,1 0,0.35 z
In case you enter a wrong shape, it will appear in red in the text field (but don't worry it won't make crash Sweet Home 3D if you don't fix it).
Good luck!
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: Oct 2, 2007
Post Count: 188
Status:
Offline
Re: Furniture Library Editor Beta released
I think I just found a bug and filed a bug report.
Basically, what I've found (in 1.6) is that "Modify furniture" is not coming up, either when I double click on the piece of furniture, or when I right click on it and select "Modify furniture" from the menu that comes up with that.