Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Door swing in plan
Thanks, Hans. Very good. That means it wasn't just my technical shortcomings :-) Hardly a serious bug. The waterboard, sill, frame, shutters and indication of opening are more important anyway. Also it only becomes a problem when there's a mismatch between the model dimensions and wall thickness anyway. Changing the model properties is a bit cumbersome, so I guess it would be easier if the FurnitureLibraryEditor allowed for editing all properties. But again, not really a priority issue (for me anyway - more vanity...).
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Door swing in plan
There's no way to specify a door swing in OBJ format. The OBJ format isn't that clever!
Does this mean it is better to submit models of windows/doors/light-sources in sh3f (furniture library) format? And if so, is there a preferred standard for the various properties that would make life easier?
ok
PS - just realising that for instance my categories is unlikely to be to everyone's taste... - see sourceforge submission of window
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Door swing in plan
You can submit both files (OBJ+MTL in a ZIP file and a SH3F file) if you want! Submitting the .sh3f version like you did for the window with sill and waterboard model is great because it makes it useful for Sweet Home 3D users until I add the model to the contributions library, and it will reduce the time it requires for me to add it to that library. The properties you chose are good. No need to specify the value of the properties that are not mandatory or not necessary for the model you submit. Just adding an ID could be nice to avoid your model to appear twice in the catalog once I'll add it to the contributions library. If you specify an id, please use the same naming convention like I did in contributions PluginFurnitureCatalog.properties file, i.e. yourName#ObjFileName (for example, OKH#window_2x3_frame_sill)
just realising that for instance my categories is unlikely to be to everyone's taste
As the category of a piece is not editable when it comes from a sh3f file, it's not a bad idea to use a name that will help users to find your model. But avoid creating a different category name for each file you submit!
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Door swing in plan
Very good, thanks. In Sourceforge you insist on LAL licence, but also list GPL, CC-BY and CC-0 in the directory. LAL is ok I guess, but CC-BY is more common (and emphasises acknowledgement which could make it more tempting to produce models). Preference?
France
Joined: Nov 7, 2005
Post Count: 9430
Status:
Offline
Re: Door swing in plan
I don't want to mix license system for a given library. It would be too complicate for the end users. I guess that for those who are not aware about free license, it must be already not that simple. But as CC-BY seems to be more popular than LAL nowadays, I would like to write to all contributors to get their agreement to distribute their models under CC-BY too. But if I don't get the answer or agreement of only one contributor, it will become a mess. Not a very motivating task, but in case of success all the models available in the 3D models page would be available under CC-BY!
By the way, the 65 GPL models available in Sweet Home 3D were designed by me, so if ever all contributed models can be available under CC-BY, I won't mind to offer these GPL models under CC-BY license too.
PS: Before all that, I have to study in details the difference between LAL and CC-BY.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator
----------------------------------------
[Edit 1 times,
last edit by Puybaret at Sep 18, 2013, 12:54:22 PM]
Iceland
Joined: Nov 1, 2016
Post Count: 2
Status:
Offline
Re: Door swing in plan
Hi I´m having problem adding a door swing to a door. This is what I do:
1. open a .skp file in SketchUp. Export as 3D model... obj. 2. open furnitureLibrary Editor 1.19. Drag and drop the obj file in there. 3. make changes in the editor and "save library in a different file" 4. In SH3D, Furniture, import furniture library. = THIS WORKS Now changing the PluginFurnitureCatalog.properties... 1. Changing MyFile.sh3f to MyFile.zip 2. open/unzip MyFile.zip (makes a folder) 3. open MyFile folder 4. open PluginFurnitureCatalog.properties in TextEdit 5. making changes:
#here is the OLD file... name#1=Doorjulia16a category#1=Doors and windows icon#1=/Doorjulia16a.png model#1=/Doorjulia16a/Doorjulia.obj multiPartModel#1=true width#1=88 depth#1=20 height#1=210 movable#1=false doorOrWindow#1=true creator#1=HHG
#here is the EDITED file...
name#1=Doorjulia16a category#1=Doors and windows icon#1=/Doorjulia16a.png model#1=/Doorjulia16a/Doorjulia.obj multiPartModel#1=true width#1=88 depth#1=20 height#1=210 movable#1=false doorOrWindow#1=true doorOrWindowWallThickness#1=20.0 doorOrWindowWallDistance#1=3.0 doorOrWindowSashXAxis#1=111.4 doorOrWindowSashYAxis#1=30.0 doorOrWindowSashWidth#1=110.0 doorOrWindowSashStartAngle#1=180 doorOrWindowSashEndAngle#1=270 creator#1=HHG
6. save file 7. zip MyFile folder 8. change name of MyFile.zip to MyFile.sh3d 9. Furniture, import furniture library 10. Program tells me its imported. And the sh3f file is created in "furniture" folder.
Nothing shows up in categories.
------- So my guess is that I can not make these name changes, change a zip file to sh3f file. It has to go through FurnitureLibrary Editor. But I don´t know how to do this after editing the PluginFurnitureCatalog.properties
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Door swing in plan
Hi Hafsteinn,
Good news is that your property editing looks perfectly valid. Tried them, no problem there, except some odd values, such as the door swing/opening being outside the model, but that should not prevent the file from working. A couple of suggestions based on similar troubles:
Is PluginFurnitureCatalog.properties saved in plain text format?
In step 6: change name of MyFile.zip to MyFile.sh3d - that should be MyFile.sh3f.
I would also suggest a slightly different approach to avoid some problems from zipping. If you send me the file 1. Rename MyFile.sh3f to MyFile.zip. 2. Just open MyFile.zip 3. Copy PluginFurnitureCatalog.properties to another directory. 4.-6. Make changes to the outside file and save. 7. Copy that file back into MyFile.zip (confirm replace). 8. Rename MyFile.zip to MyFile.sh3f.
From here on, it should be enough to double-click MyFile.sh3f for the library to be imported - but Furniture, import furniture library should also work - and result in a correct file being placed in the user directory.
You could also check if the .sh3f file opens in FurnitureLibraryEditor after it has been edited. Sometimes opening and saving a file with FurnitureLibraryEditor will fix the PluginFurnitureCatalog.properties, I have not quite figured out why, but it could be an invalid linefeed (cr/lf, lf or cr).
If you wish, you can send me the edited .zip/sh3f file. A look should reveal what is wrong.
Joined: May 12, 2013
Post Count: 1545
Status:
Offline
Re: Door swing in plan
By the way - in addition to the above - just for your info - here are the values I used (after testing yours) for a normal door with a doorframe of 10 cm The original values do work, and may be the way you want them, but they could be a bit confusing if someone else tried them on a similar door. So I changed doorOrWindowWallThickness# so the frame protrudes on both sides of the wall, and I moved the door swing to inside the doorframe. I also added a full cut-out to avoid an empty frame being filled: