Formula Challenge

Formula Challenge

kyleGDL86
Explorer Explorer
870 Views
4 Replies
Message 1 of 5

Formula Challenge

kyleGDL86
Explorer
Explorer

I'd like to create a formula for the following statement for a Height Control parameter:

If glass thickness is 1/4" then the  maximum height is 30" and if glass thickness is 1/2" then the maximum height is 20".

 

I can only get it to equal 20 or 30 in the family with the formula I am putting in, but in reality the glass height can be anything less than 20 or 30 depending on the glass thickness.

 

If my "Input" params are "Glass Thickness" AND "Height", am I overloading the formula?

0 Likes
Accepted solutions (1)
871 Views
4 Replies
Replies (4)
Message 2 of 5

_Vijay
Collaborator
Collaborator

@kyleGDL86  Hope below link will help..if not let me know I am happy to help you.

 

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2014/EN... 

Vijayakumar
Head of BIM
Did you find this post helpful? Feel free to like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.


0 Likes
Message 3 of 5

L.Maas
Mentor
Mentor
Accepted solution

How does your formula look so far and which parameters do you have in the family?

Maybe share the family (or a screenshot).

 

What if glass thickness i sneither 1/4"or 1/2"?

 

But something like this might do. You need three parameters

max_height: max height allowed

user_set_height: The desired height set by the user
height: the actual height of the window if allowed the desired height otherwise the max height

 

max_height parameter : If (glass thickness =  1/4, 30, If (glass thickness =  1/2, 20, 30))

 

user_set_height parameter: =40"

 

height parameter: if(user_set_height > max_height, max_height, user_set_height)

 

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 4 of 5

martijn_pater
Advisor
Advisor

Think I would use one more and with some yes/no parameters, assuming the glass will be either 1/2 or 1/4" depending on the height... But you can also use another IF statement I guess with three parameters. Or did you want to be able to adjust/input a glass thickness seperately aswell?

formula exampleformula example

0 Likes
Message 5 of 5

kyleGDL86
Explorer
Explorer

Thank you so much you nailed it. In this case the glass could only be those 2 thicknesses so your formulas worked perfectly. I had only gotten as far as the Max Height parameter but adding the Height parameter (by your definition) is what I couldn't figure out. Thanks again!

0 Likes