danielfranklinr
Newbie
Venezuela
Joined: Apr 5, 2012
Post Count: 7
Status:
Offline
|
|
Re: Area calculation and auto dimensions for 2D
|
Thanks Sajmmon!.
I've been working on the bugs Hans mentioned, so i would like you guys to try it again. Click Here to download the plugin.
Here are the details i've corrected from Hans:
When using variable wall thickness the dimensions behave in a strange way. If I change all walls to the same thickness, the problem disappears. Now it doesn't matter the thickness of the walls it will correctly display the dimension lines.
A partial solution could be if: a - you draw a large rectangle around your design, then select a number of walls. The dimensions of these walls are projected on the rectangle. b - repeat if necessary.
Thanks for this hint, it is simpler when the user just select the walls that wants to have the dimension.
Also, I noticed that all dimensions are taken from the centre line of walls. Normally, in the Netherlands, dimensions are taken along the inside and/or outside of walls, and wall thickness is dimensioned separately.
Thanks to the tip Puybaret told me i managed to find the roompaths and display the dimensions correctly. At this moment the plugin adds both dimensions, interior and exterior.
Hans, i tried to test your files, but for some reason it says i dont have a recent version of sweethome. I tried them with the desktop version and applet version, and it was the same error. Maybe you are working in a new release that we dont have.
Both levels get dimensions;
I tried many times to replicate this error creating multilevel plans and i couldn't do it. If you are in the first level and activate the plugin it will put the dimensions to the selected walls, if you change to level 2 and activate the plugin it will erase the dimensions in level 1 and add the dimensions in level 2.
Round walls get strange dimension(s), see bottom left;
Im using the same code that Puybaret does, the button to add dimensions lines doesn't work correctly in the original version either. I assume it's because the curve is just a lot of straight lines with angles to make the effect.
If you save a project with dimensions, after re-opening clicking the button doesn't erase the dimensions. They have to be erased manually.
Yes, i don't want the users deleting other dimensions lines by mistake, but maybe I'm wrong and that will feel natural. In fact I was thinking to add a second button in the plugin, one to add the lines, and another to delete them, that way the user can add as many dimensions as possible without deleting them.
I'm still working in two important this right now: 1.- Ask the user if the dimension lines should be the exterior or interior or both. This will make the plugin to exclude the longest dimension (interior dimensions) or exclude all the dimensions except the longest (exterior dimensions). This will not always work but i dont have other ideas. I'm open to suggestions here. 2.-To get the dimensions I am cycling the walls, getting the middle point, and trying to get the dimensions from the roompath. While doing this no every dimension is found. I was thinking that instead i should cycle the roompaths, and from there find the point of the wall that intersect to get the dimension. I hope that Puybaret gives me some light in this point.
Hope to hear some feedback from you soon. Thanks
|
[Mar 26, 2013, 9:34:49 PM]
|
|
[Link]
|
|