Hi Everyone
I was wondering if anyone would be able to help me. I have some simple line work families which I would like to place dimensional restrictions onto using formulas. I have a Hot Water Tank drawn as a rectangle with a half circle radius on the long length as shown in the image attached. When the tank (the radius) is made larger than the rectangle it will separate the geometry and I would like to implement a simple formulas stating the the radius cannot be greater than the width of the rectangle / 2.
Any guidance with this would be very helpful
Thanks
Gelöst! Gehe zur Lösung
Gelöst von barthbradley. Gehe zur Lösung
Gelöst von ToanDN. Gehe zur Lösung
Add [TankRadiusConstrain] Length parameter and use it for the dimension. User still enters value for [TankRadius].
Add a second length parameter for Tank Radius (e.g. "Tank Radius Desired"). Manually input it a value for the "desired" radius. Then write this formula for the Tank Radius parameter:
if(Depth/2>Tank Radius Desired, Depth/2, Tank Radius Desired)
However, tanks typically come in standard sizes. Are you sure you don't want to automatically size the tank platform to accommodate the tank size?
Thanks everyone,
This is more of an exercise in formulas for me at the moment but thank you for your advice anyways.
Are there any resources available for learning the syntax other than trial and error? It seems that I get a massive amount of inconsistent units errors when I am playing with formulas. Id love to get better at it but this is a new realm of language for me.
Thanks in advance,
K
Check out this Link. I think you might find it helpful.
https://www.revitforum.org/tutorials-tips-tricks/1046-revit-formulas-everyday-usage.html
![]()
I used this as well thank you for posting its a great resource. I was finding that even with the formulas I was getting a lot of Inconsistent Units errors. Does anyone have any more information regarding that error and how formulas should be written to minimize that warning?
Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.