Door swing in plan
This topic has been viewed 52865 times and has 29 replies
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 [font=courier new]PluginFurnitureCatalog.properties[/font] saved in plain text format?
In step 6: change name of MyFile.zip to MyFile.sh3d - that should be [font=courier new]MyFile.sh3f[/font].
I would also suggest a slightly different approach to avoid some problems from zipping. If you send me the file
1. Rename [font=courier new]MyFile.sh3f[/font] to [font=courier new]MyFile.zip[/font].
2. Just open [font=courier new]MyFile.zip[/font]
3. Copy [font=courier new]PluginFurnitureCatalog.properties[/font] to another directory.
4.-6. Make changes to the outside file and save.
7. Copy that file back into [font=courier new]MyFile.zip[/font] (confirm replace).
8. Rename [font=courier new]MyFile.zip[/font] to [font=courier new]MyFile.sh3f[/font].
From here on, it should be enough to double-click [font=courier new]MyFile.sh3f[/font] for the library to be imported - but [font=courier new]Furniture, import furniture library[/font] 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 [font=courier new]PluginFurnitureCatalog.properties[/font], 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.
ok
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 [font=courier new]PluginFurnitureCatalog.properties[/font] saved in plain text format?
In step 6: change name of MyFile.zip to MyFile.sh3d - that should be [font=courier new]MyFile.sh3f[/font].
I would also suggest a slightly different approach to avoid some problems from zipping. If you send me the file
1. Rename [font=courier new]MyFile.sh3f[/font] to [font=courier new]MyFile.zip[/font].
2. Just open [font=courier new]MyFile.zip[/font]
3. Copy [font=courier new]PluginFurnitureCatalog.properties[/font] to another directory.
4.-6. Make changes to the outside file and save.
7. Copy that file back into [font=courier new]MyFile.zip[/font] (confirm replace).
8. Rename [font=courier new]MyFile.zip[/font] to [font=courier new]MyFile.sh3f[/font].
From here on, it should be enough to double-click [font=courier new]MyFile.sh3f[/font] for the library to be imported - but [font=courier new]Furniture, import furniture library[/font] 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 [font=courier new]PluginFurnitureCatalog.properties[/font], 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.
ok
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 [font=courier new]doorOrWindowWallThickness#[/font] 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:
ok
Code: Select all
...
width#1=88
depth#1=20
height#1=210
movable#1=true
doorOrWindow#1=true
doorOrWindowCutOutShape#1=M0,0 v1 h1 v-1 z
doorOrWindowWallThickness#1=15.0
doorOrWindowWallDistance#1=3.0
doorOrWindowSashXAxis#1=78
doorOrWindowSashYAxis#1=15.0
doorOrWindowSashWidth#1=68.0
doorOrWindowSashStartAngle#1=180
doorOrWindowSashEndAngle#1=270Re: Door swing in plan
Hi
Thanks for the fast reply
it was supposed to be MyFile.sh3f.
It now works for me. I´m not sure what the problem is, but it has something to do with saving the PluginFurnitureCatolog.properties again OR manipulating the .sh3f file. Probably the latter. .... - Maybe the problem is that I´m using mac OS X and the zip program that comes with it by default changes the file somehow...
So doing what you suggested, but with out copying the file out of the zip file.
My solution was to download a zip program, ( https://macitbetter.com/BetterZip-Quick-Look-Generator/ ) . This program enabled me to open the zip file with out extracting it. From there I could open the PluginFurnitureCatalog.properties file, make changes to it and save it. Then just saving the zip file again and changing the extension to .sh3f.
Then Furniture... import furniture library.
All the best,
Haffi
Thanks for the fast reply
I don´t know. I don´t think so. I think it is saved in the same format that it comes, = .properties. I can change it to .txt and then it changes appearance.Is PluginFurnitureCatalog.properties saved in plain text format?
This was a typoIn step 6: change name of MyFile.zip to MyFile.sh3d - that should be MyFile.sh3f.
It now works for me. I´m not sure what the problem is, but it has something to do with saving the PluginFurnitureCatolog.properties again OR manipulating the .sh3f file. Probably the latter. .... - Maybe the problem is that I´m using mac OS X and the zip program that comes with it by default changes the file somehow...
So doing what you suggested, but with out copying the file out of the zip file.
My solution was to download a zip program, ( https://macitbetter.com/BetterZip-Quick-Look-Generator/ ) . This program enabled me to open the zip file with out extracting it. From there I could open the PluginFurnitureCatalog.properties file, make changes to it and save it. Then just saving the zip file again and changing the extension to .sh3f.
Then Furniture... import furniture library.
Thanks for cleaning up my file. I was going to do it when I had this working, but much better having it done for meThe 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:
All the best,
Haffi
Re: Door swing in plan
Good, glad it works and thanks for reporting back. Others may struggle with similar issues.
Well, it is not difficult, but can involve some trial and error rounds with editing, zipping and importing. ok..cleaning up my file. I was going to do it when I had this working,...
- tarmiricmi
- Posts: 16
- Joined: Thu Jun 15, 2017 6:30 pm
- Country: Germany
Re: Door swing in plan
Hello,
sorry for waking the old thread.
I'm trying to add door swing to the imported door, actually door sash that should be visible in 2D plan. According to this thread posts, I should edit PluginFurnitureCatalog.properties file which is zipped into .sh3d file.
However, when I save my imported door as a .sh3d and unzip it, there is no such file. I get one folder named 1 (and inside it files model.mtl. model.obj, and one png and jpeg file), and four files, 0, contentdigests, home and home.xml.
Furniture editor doesn't help in finding PluginFurnitureCatalog.properties file.
So what exactly should be edited in order to set properties listed here http://www.sweethome3d.com/support/foru ... et,0#17625 ?
Thanks in advance.
sorry for waking the old thread.
I'm trying to add door swing to the imported door, actually door sash that should be visible in 2D plan. According to this thread posts, I should edit PluginFurnitureCatalog.properties file which is zipped into .sh3d file.
However, when I save my imported door as a .sh3d and unzip it, there is no such file. I get one folder named 1 (and inside it files model.mtl. model.obj, and one png and jpeg file), and four files, 0, contentdigests, home and home.xml.
Furniture editor doesn't help in finding PluginFurnitureCatalog.properties file.
So what exactly should be edited in order to set properties listed here http://www.sweethome3d.com/support/foru ... et,0#17625 ?
Thanks in advance.
Re: Door swing in plan
Hi, you need to edit the door properties zipped in a SH3F file - a furniture library created with the Furniture Library editor. Within the SH3F file, you will see a file called PluginFurnitureCatalog.properties with additional model properties to be used by SH3D. Each item has a list of various properties, including optional properties to define the door swing in the 2D plan. The door properties could look something like this (for a double door, note that #1 must be changed according to model):
The SVG mini manual has a brief description of the process on pages 9 and 10.
ok
Code: Select all
doorOrWindow#1=true
doorOrWindowCutOutShape#1=M0,0 v1 h1 v-1 z
doorOrWindowSashXAxis#1=10 85
doorOrWindowSashYAxis#1=20 20
doorOrWindowSashWidth#1=35 35
doorOrWindowSashStartAngle#1=270 270
doorOrWindowSashEndAngle#1=275 265ok
Re: Door swing in plan
PS Actually, just for the record, it is probably possible to edit these properties in the (new) Home.xml file which is now part of the .sh3d file. Some values, however, are indicated differently: relative / radians. ok
- tarmiricmi
- Posts: 16
- Joined: Thu Jun 15, 2017 6:30 pm
- Country: Germany
Re: Door swing in plan
Thanks!
Re: Door swing in plan
thanks for the info 
Re: Door swing in plan
Be aware that you responded to a post from 2017. Many things have changed since then. You don't have to manually edit the sh3f file, you can now edit them in the Furniture Library Editor. The SVG mini manual is still as relevant as before.thanks for the info
Dodecagon.nl
1300+ 3D models, manuals, and projects
1300+ 3D models, manuals, and projects
Who is online
Users browsing this forum: No registered users and 2 guests