|
Sweet Home 3D Forum » List all forums » » Forum: Developers » » » Thread: how to get area of room |
||
| Print at Dec 21, 2025, 6:07:06 PM |
|
|
| Posted by bandara at Jul 13, 2011, 6:41:33 PM |
|
Re: how to get area of room dear Puybaret Sir, Please sir, i even don't know about "factory reference class". But you know how to request the area of displayed Room. Please sir, tell me how i should do it. Please sir, i cant continue my project without this Room area value. |
| Posted by bandara at Jul 14, 2011, 9:44:23 AM |
|
Re: how to get area of room Sir, i got the area by this code float area=0.0f; for (Room piece : getHome().getRooms()) { area=piece.getArea(); } Tx for your support,i need more :) Sir, this returns the area of last drawn room. Can u tell me, how could i get area of any selected Room in drawing. |
| Posted by bandara at Jul 14, 2011, 10:38:42 AM |
|
Re: how to get area of room Sir, I got selected Room area too, use getSelectedItems. How can i get width of furniture which selected (as in same way we can get selected furniture width) but which is inside that selected room. When i get those values separately, it gives answer. But as together, there's no answer. can u tell me, how can i do it. |
|
|
|
Current timezone is GMT Dec 21, 2025, 6:07:06 PM |