Always round down an area in a tag

Always round down an area in a tag

jagostinho74
Collaborator Collaborator
19,519 Views
14 Replies
Message 1 of 15

Always round down an area in a tag

jagostinho74
Collaborator
Collaborator

Hello,

 

Anyone knows a way how to always round down the area in a tag?

 

For instance

 

if the area is 23.4 it rounds down to 23.0

If the area is 23.7 it rounds down to 23.0

 

I know it can be done in schedules with formulas, but do not know how to do it in a Tag.

 

Many thanks.

J

Assistant BIM/CAD Manager

Manchester, UK


0 Likes
Accepted solutions (2)
19,520 Views
14 Replies
Replies (14)
Message 2 of 15

Anonymous
Not applicable

 

Hi there,

 

You need to go into the tag family and change the units there (Manage -> Project Units).

 

King regards,

Greta

Message 3 of 15

ToanDN
Consultant
Consultant
Accepted solution
It can be done in 2017.
Message 4 of 15

jagostinho74
Collaborator
Collaborator

Hi @Anonymous,

 

I was unable to do it. I mean to round down a, for instance, 23.7m2 area to show just 23.0 m2.

 

Can you please send a step-by-step, screenshots or video on how to do it?

 

Thanks

J

Assistant BIM/CAD Manager

Manchester, UK


0 Likes
Message 5 of 15

Anonymous
Not applicable

I am sorry. That was misleading. 

 

Here are the steps: Open the tag family, select the label showing the area, click Edit label, select the area parameter and click "Edit parameter's units format" (like in the picture). There you can uncheck "Use project settings" and set the Rounding to 0 decimal places.

Message 6 of 15

jagostinho74
Collaborator
Collaborator

Thanks @Anonymous.

 

I tried that but it rounds up any value higher than .5.

 

for instance, 23.5 rounds up to 24.

I want all values to round down.

 

Tried it in 2017 like @ToanDN suggested and it works, since Revit 2017 allows formulas in Tags.

 

Many thanks

J

Assistant BIM/CAD Manager

Manchester, UK


Message 7 of 15

Anonymous
Not applicable

Hi @jagostinho74,

 

Do you know if is it possible to do with dimensions as well? I am using Revit 2017 but I don't find a solution.

 

Thanks, 

Alberto

0 Likes
Message 8 of 15

MSA.philipp.lammers
Explorer
Explorer

@jagostinho74 wrote:

Thanks @Anonymous.

 

I tried that but it rounds up any value higher than .5.

 

for instance, 23.5 rounds up to 24.

I want all values to round down.

 

Tried it in 2017 like @ToanDN suggested and it works, since Revit 2017 allows formulas in Tags.

 

Many thanks

J


@jagostinho74 and @ToanDN I have come across the same problem but I am unable to use a formula in the "Calculated Value" (e.g. rounddown(Area)). Maybe I am overlooking something basic, but would you be able to explain in more detail how you managed to round an Area Tag down?

 

Thanks,

P.

0 Likes
Message 9 of 15

Sahay_R
Mentor
Mentor
Accepted solution

@MSA.philipp.lammers - one way out - 

Capture.PNG


Rina Sahay
Autodesk Expert Elite
Revit Architecture Certified Professional

If you find my post interesting, feel free to give a Kudo.
If it solves your problem, please click Accept to enhance the Forum.
Message 10 of 15

ToanDN
Consultant
Consultant

@MSA.philipp.lammers wrote:

I have come across the same problem but I am unable to use a formula in the "Calculated Value" (e.g. rounddown(Area)). Maybe I am overlooking something basic, but would you be able to explain in more detail how you managed to round an Area Tag down?

 


Is the Calculated Value parameter of Area type?  What is the error you are getting?

0 Likes
Message 11 of 15

MSA.philipp.lammers
Explorer
Explorer

Yes, it was an area that I was trying to round. @Sahay_R's screengrab had the answer.

I hadn't thought about dividing the Area - quite obvious once I realized.

 

Using the metric system the formula I use looks now like this: (rounddown(Area/1 m²)* 1 m²

This way I am able to keep the "Type" for the Calculated Value as an "Area".

 

Thanks both of you.

Message 12 of 15

ysautodesklover
Collaborator
Collaborator

I was looking for this! Thank you for your post, it helped me 😉

0 Likes
Message 13 of 15

Ross_Robertson
Advocate
Advocate

Hi, this is a great solution for just rounding down, is there a way to round to the nearest 0.5? e.g 4.7 would round down to 4.5 but 4.8 would round up to 5.0. 

0 Likes
Message 14 of 15

dbroad
Mentor
Mentor

Try something like this:

dbroad_0-1657631827324.png

 

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 15 of 15

ToanDN
Consultant
Consultant

@Ross_Robertson wrote:

Hi, this is a great solution for just rounding down, is there a way to round to the nearest 0.5? e.g 4.7 would round down to 4.5 but 4.8 would round up to 5.0. 


ToanDN_0-1657643706545.png

 

ToanDN_0-1657643793929.png