how to get area of room

This topic has been viewed 7408 times and has 12 replies
Thread status: Active
Questions about extending features and developing plug-ins [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
bandara
Posts: 13
Joined: Sat Dec 26, 2009 6:40 am

Re: how to get area of room

Post by bandara »

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.
bandara
Posts: 13
Joined: Sat Dec 26, 2009 6:40 am

Re: how to get area of room

Post by bandara »

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.
bandara
Posts: 13
Joined: Sat Dec 26, 2009 6:40 am

Re: how to get area of room

Post by bandara »

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.
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest