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: 3
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 5165 times and has 2 replies Next Thread
Olaf_Noehring
Newbie




Joined: May 15, 2009
Post Count: 6
Status: Offline
Reply to this Post  Reply with Quote 
Feat. Req: Automatically measure all walls

Hi

I have used Roomarranger in the past. A great feature there is to automatically measure all walls - saves a lot of work.

Olaf




[Note: this thread was started on sourceforge.net forums]
[May 15, 2009, 8:57:00 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
c_sanz
Newbie




Joined: Apr 13, 2009
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: Feat. Req: Automatically measure all wall

Hi,

The tool "Create dimensions" has no dependence on an object, dimensions are totally free, so therefore the magnetism of these does not work on the walls.

This function is not provided in the near future.

Greeting,


Christian.
[May 16, 2009, 12:23:00 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
mark
Newbie




Joined: May 17, 2009
Post Count: 1
Status: Offline
Reply to this Post  Reply with Quote 
Re: Feat. Req: Automatically measure all walls

Hi,

If "measure" means something like total length of all walls or area wouldn't it be pretty easy to make a plugin and then just run from the menu ? i.e. like volumeplugin.

Something like ....

VolumnePlugin.java

public void execute() {
float volumeInCm3 = 0;
double wallLength = 0;
double totalWallLength = 0;
StringBuffer wallDimensionsMsg = new StringBuffer();

for (Wall wall : getHome().getWalls()){
if (wall.getXStart() == wall.getXEnd()) {
wallLength = wall.getYStart() - wall.getYEnd();
} else if (wall.getYStart() == wall.getYEnd()){
wallLength = wall.getXStart() - wall.getXEnd();
} else {
wallLength = Math.sqrt(Math.pow((wall.getXEnd()-wall.getXStart()),2)
+ (Math.pow((wall.getYEnd() - wall.getYStart()),2)));
}

// get rid of negative values
wallLength = ((wallLength < 0 ? -wallLength : wallLength));
totalWallLength+=wallLength;
wallDimensionsMsg.append("Wall: length " + wallLength + "\n");

wallDimensionsMsg.append(String.format(" Total wall length = %.2f cm", totalWallLength));
JOptionPane.showMessageDialog(null, wallDimensionsMsg);
}

......

Output would be " Total wall length = 1455.00 cm"

Excuse me if I got the wrong end of the stick :)

ta
mark



[May 17, 2009, 9:54:00 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
[ 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