PDA

View Full Version : 2017 Room Tag length width included



gordolake
2017-01-25, 03:43 AM
Found this, very useful.

How to create Room tag including Width x Depth parameters (https://knowledge.autodesk.com/support/revit-products/troubleshooting/caas/sfdcarticles/sfdcarticles/Revit-2017-How-to-create-Room-tag-including-Width-x-Depth-parameters.html)

and a nice use of maths

Room Length: ((Perimeter / 2) - sqrt((Perimeter / 2) ^ 2 - 4 * Area)) / 2
Room Width: Area / Room Length

example included.

Bill Gilliss
2017-01-30, 03:30 AM
Sweet. One can easily see the quadratic formula peeking through, and since there are by definition two positive real roots, this implementation ignores the smaller one ("width") and simply produces the longer one ("length") instead of fussing with the whole +/- thing. Beware non-rectangular rooms, however.

john.massey793187
2020-11-13, 10:05 AM
Just used this attachments - it's brilliant thankyou!