Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 13
Posts: 13   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 7173 times and has 12 replies Next Thread
bandara
Newbie




Joined: Dec 26, 2009
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Jul 13, 2011, 6:41:33 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
bandara
Newbie




Joined: Dec 26, 2009
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Jul 14, 2011, 9:44:23 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
bandara
Newbie




Joined: Dec 26, 2009
Post Count: 13
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Jul 14, 2011, 10:38:42 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 13   Pages: 2   [ Previous Page | 1 2 ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

  Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads  
© Copyright 2024 Space Mushrooms - All rights reserved