Message 1 of 21
Not applicable
12-26-2018
12:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Please tell us in a little more detail what are you actually trying to do How to Get Help
There is no typical way for this. But for example you can create a parameter called Length by which you will be able to control length and another one parameter called LengthCalc which will be constrained to the geometry and controlled by formula if(Length>6m, 6m, Length). So if you specify Length more than 6m, LengthCalc (and length of the object) is 6m. If you specify Length 6m or less, LengthCalc is the same value as Length.
Thanks, solution accepted.
but how to use, still don't get it.
found one sample should be the same method as your told(as below capture)
but ,how "Angle 1" will affect in geometry, looks like no parameters refefenced "Angle 1"
can you kindly help to write a simply example?
thanks your kindly reply,
i am learning about the parameter setting formula,
want to know more about it's function.
Hey Try this Revit Formula for Everyday USE
Hi @Anonymous
I might have been more helpful if you would have told what exactly you are trying to do.
See this image .
Here you go an example.
i am building the C-Channel family.
in the view of construction-oriented, so the the simply thought comes in my mind, how can i limit the C-channel in real length.
many thanks for the formula sharing, that is great.
thanks, what a surprise.
you guys are so kind.
this sample can't change the length.
and why there is no dimension of length
End of extrusion of the solid is associated with LengthCalc parameter.
Sharm to ask,
but how ![]()
Here you go instruction:
thank you so much~
Hi, Thank you for the solution. I have different types and I want various constraints for each type. But whenever I change the formula it changes in all types. what can I do about this Issue:
Hello,
Don´t use the value in the formula colunm, just place a value to each type.
Fábio Sato
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.
Hi.
Thank you for your response. I didn't put Value in formula. So maybe I explain what is my intention.
I have 3 types of panels:
Standard - which the size is fixed: 1587*664
Short - 664 is fixed but the length can be between 664 and 1587 | if(Length < 664 mm, 664 mm, if(Length > 1587 mm, 1587 mm, Length))
Passive - both length and width should be between min 250mm and max 1587 | if(Length < 250 mm, 250 mm, if(Length > 1587 mm, 1587 mm, Length))
------------
I'm a beginner in Revit so maybe my question is basic. but the problem is I want different rules for each type, although by changing the type the formula remains. or by changing the formula for passive the formula for short changed again. Also, I test in the project and the constrain didn't limit the user to exceed the limits.
Thank you
Hey,
You can add three 'yes/no' type parameters and set them according to types and use them in formulas as below:
Formula for LengthCalc is:
if(IsStandard, 1587 mm, if(and(IsShort, Length < 664 mm), 664 mm, if(and(IsShort, Length > 1587 mm), 1587 mm, if(and(IsPassive, Length < 250 mm), 250 mm, if(and(IsPassive, Length > 1587 mm), 1587 mm, Length)))))
For WidthCalc will be similar formula with values of Width.
Thank you for your solution.
That works well for types. But when I loaded it into the project and change the size(for example for short), the value in the table changed, but nothing happen to the model. do you know the reason?
the left Panel is standard, so by changing Valus in dimension, the selected panel should be shortened.
Thank you so much for your help.