Room Tag Width x Depth Parameters generating question mark

Room Tag Width x Depth Parameters generating question mark

rstewart
Participant Participant
37,974 Views
39 Replies
Message 1 of 40

Room Tag Width x Depth Parameters generating question mark

rstewart
Participant
Participant

At the following Revit support link there are instructions on how to use calculated values to set up the room tag to publish the calculated width and depth of a room based on the room's perimeter and area: Revit 2017: How to create Room tag including Width x Depth parameters.  However, if the room is square and has width and depth values in the range of 11'-11 7/8" x 11'-11 7/8" up to 12'-11 3/4" x 12'-11 3/4" it will generate a question mark.  Any suggestions on how to resolve this dilemma.  Thanks!

0 Likes
Accepted solutions (1)
37,975 Views
39 Replies
Replies (39)
Message 21 of 40

jeromemaceachern3284
Explorer
Explorer

Under your Manage tab, click on the project units button in the settings section. For the length, you can change the rounding there to whatever you'd like. 

Message 22 of 40

MarissafBB
Explorer
Explorer

1) Under "Edit Label" click on the parameter 1 Length then at the bottom click the # with the finger pointing to it. If you hover over the button it says "edit the parameter's unit format." Click.

 

2) The next window says format. Uncheck the box "use project settings". Revise the rounding to be "To the nearest 1". Update the units to "Feet and fractional inches." Press Okay. 

 

3) Do the same thing for width parameter. 

 

Hope that helps. parameter units.JPG

Message 23 of 40

jljonesGBHUC
Community Visitor
Community Visitor

You can change the precision of the units by opening the "Edit Label" dialog in the tag family and changing the parameter's units ( attached image provided). Select the length parameter crated using the "Fx" button and then click the "Edit Parameter Units" button  at the bottom of the dialog. Repeat this step for the Width parameter. 

0 Likes
Message 24 of 40

solvdesigns
Enthusiast
Enthusiast

I recognize that this is an old thread.  While searching for a better answer to the whole "room tag with length and width" quandary, I thought I would at least share the best solution I have come up with so far.  If anyone has a better solution I would love to hear it!

 

I am specifically responding to post #7 where a.crawford asks about tags using the formula from ToanDN always returning the smallest room dimension first thus resulting in tags that sometimes list the "length" first and sometimes list the "width" first.  (By the way, thank you ToanDN for adding the if statement to that formula to address square rooms!)

 

So far, my solution to a.crawford's question has been to create a tag with some overlapping labels that are turned on or off with visibility parameters.  All of these are in ONE tag family with multiple "types" inside of it.  I call the family "Room Tag - ALL"

First, I have a tag type called "RT Size H" with a label for horizontal rooms that uses the formula "Area / RmShort" as the first calculated formula to return a value I call "RmLong".  Then it uses the "if(Area = (Perimeter / 4) ^ 2, Perimeter / 4, ((Perimeter / 2) - sqrt((Perimeter / 2) ^ 2 - 4 * Area)) / 2)" formula for the second calculated parameter to return a value I call "RmShort".  The label for this "size" is turned on and off with a parameter I call "Show Size H".

Next I have a second tag type called "RT Size V" for vertical rooms with a second overlapping label where the same formulas are used but their order is reversed so that the short value is first and the long value is second.  That  label is turned on and off with a "Show Size V" visibility parameter.

 

That hopefully answers a.craford's question.  So far so good.

 

Here is where it gets a bit more messy.  There are obviously rooms that are not rectangular.  For those, I have additional overlapping labels (turned on and off by more visibility parameters) that allow me to show the room square footage or a manually entered width and length.  I have the manual labels in a different color until printing to remind me to make sure that it is up to date.  I may start using a schedulable bounding box something like ml offered in post #12 and a scheduled "Manual Size" parameter so that I can use a schedule to quickly check and update manual room sizes.

 

Ok, still not too messy (other than wishing there was a better way to avoid the manual sizes), but there is more...  You find that sometimes you only want the room name and no size, so I have a type for that scenario.  Then you find that sometimes the name is too wide and you need to have a name label that forces wrapping so I have a type for that.  Then you realize that you need the wrapping version for when the room size is shown for the horizontal rooms and the vertical rooms and for when square feet or a manual size are shown.  You guessed it... I have types for those too.  Then what if you need a name label in a smaller font for small rooms like closets?  Now you need a type for each variant with that smaller font.  Heaven forbid you also need smaller font that wraps...  Ridiculous!  I really wish Revit allowed a better way to control wrapping or allowed instance parameters (instead of just type parameters) for tags.  That would make for a LOT less tag types!

 

All of that is to say nothing of room tag types to show room numbers, or floor finishes, or ceiling heights!  Yep, I have visibility parameters and types for those too.  Anyone feeling over-TYPED yet?

 

Hopefully I at least offered a possible solution to getting tags to consistently show the room "width" first.

 

Anyone have a better solution to avoid all the tag types??  Please!!!

0 Likes
Message 25 of 40

ToanDN
Consultant
Consultant

I would define L x W as the longer dimension x the shorter dimension of a rectangle. Why is it necessary to bring the orientation of the room on plan to the equation? What if the room rotated 45 degree? What if you look at the building from a view rotated 90 degree?

 

Annotation 2019-12-16 115710.png


I have no solution for non-rectangular rooms, nor I think it is worth trying to make one. The dimensions of such rooms should be on the plan.

0 Likes
Message 26 of 40

kpBAI
Participant
Participant

I followed all the steps for this procedure, including copying and pasting the formula.  However, I noticed only about half my rooms are displaying the correct dimensions.  If I click on one wall, and begin to nudge it in either direction, both dimensions are changing with each nudge, even though the room size is only changing in one direction.  

0 Likes
Message 27 of 40

RDAOU
Mentor
Mentor

@kpBAI 

 

That formula ONLY works for Rectangular/Square shaped spaces. It does not work for trapezoidal/rhombus shaped or L Shaped rooms. When a Quadratic Equation is used on trapezoidal/rhombus shaped quadrilaterals it will return the dimensions of the Rectangle with the area equal to that of the Rhombus or Trapizoid.

 

For a reliable formula for quadrilaterals in general it should be based on BRETSCHNEIDER's equation and not the Quadratic Equation.

Quadratic.png

 

 

YOUTUBE | BIM | COMPUTATIONAL DESIGN | PARAMETRIC DESIGN | GENERATIVE DESIGN | VISUAL PROGRAMMING
If you find this reply helpful kindly hit the LIKE BUTTON and if applicable please ACCEPT AS SOLUTION


Message 28 of 40

adarshguptah199
Community Visitor
Community Visitor

https://youtu.be/6Ay757asNCM                         VIDIOO ENOUGHH

 

0 Likes
Message 29 of 40

Seychellian
Advocate
Advocate

This is great thanks. i complain a lot about Revit but this is where it really comes into its own. Does anyone know how you can schedule the Length and Width values in the main project?

0 Likes
Message 30 of 40

christine
Explorer
Explorer

I know this is an old post, but has anyone else noticed that the formula doesn't seem to work when your room is bound by two different wall types? If so, any solutions for the issue? 

Message 31 of 40

BigPicture045
Collaborator
Collaborator

Edit: Nevermind, I found that it indeed is only for rectangles. 

 

 

Does this Room Tag only work with perfect rectangles? 

 

You can see from the image below that Room #1 works with this tag whereas Room #2's dimensions are way off.

 

Ryan_Hettinger_0-1614882780179.png

 

0 Likes
Message 32 of 40

Anonymous
Not applicable

hello Sir ,Have you got Answer,i am Also facing same problem

0 Likes
Message 33 of 40

Anonymous
Not applicable

Is there a way to limit dimensions to whole inches?

77' - 6" vs. 77' - 6 153/256"

0 Likes
Message 34 of 40

Anonymous
Not applicable

any idea for a non rectangular room ?? 

0 Likes
Message 35 of 40

marksam97
Explorer
Explorer

I have problem with this formula

if(Area = (Perimeter / 4) ^ 2, Perimeter / 4, ((Perimeter / 2) - sqrt((Perimeter / 2) ^ 2 - 4 * Area)) / 2)

It is not accurate as it shown in photos below 

so anyone have solution ? or why it is not accurate?

rep 02.PNGrep 01.PNG

0 Likes
Message 36 of 40

Noe.Organista
Observer
Observer
Edit Label
Select the Parameter
Edit parameter's units format (icon in between "Move parameter down" and "Edit calculated parameter")
0 Likes
Message 37 of 40

fireflyglowup
Community Visitor
Community Visitor

Need to know this too!! Hoping someone answers, because you can't edit it afterwards. 😕

0 Likes
Message 38 of 40

sudarshan_biranje
Contributor
Contributor

this only works for rectangular rooms it's not working for different shapes like L shape room or c shape room, where we need the longer length to display. is there way for that?

for example, see living room dimensions 

sudarshan_biranje_0-1719641459494.png

 

0 Likes
Message 39 of 40

ToanDN
Consultant
Consultant

How do you determine width and length of non rectangular rooms and does it even make sense?

0 Likes
Message 40 of 40

nhingorany
Explorer
Explorer

--

0 Likes