Parametric Family - Formula

Parametric Family - Formula

cklLJAHD
Explorer Explorer
751 Views
6 Replies
Message 1 of 7

Parametric Family - Formula

cklLJAHD
Explorer
Explorer

Hello,

 

I am making a parametric industrial bookshelf, which is produced in 2030 mm, 3030 mm and so on in length.

I want to make it round down or up like for example:

Length is above 2500 and it rounds to 3030 and if under, it rounds to 2030.

 

I have tried following formula, but can't get it to work:

IF (Length<2500, IF true, Length = 2030, IF false, Length = 3030)

IF (Length<2500, Length = 2030)

IF (Length <2500, Length = 2030) IF (Length <2500, Length = 3030)

 

Any help is appreciated!

Best Regards,

 CL

0 Likes
Accepted solutions (2)
752 Views
6 Replies
Replies (6)
Message 2 of 7

MetalFingerz
Advocate
Advocate
Accepted solution

Hi @cklLJAHD ,

 

The IF condition follows this structure :

 

IF(<condition>, <result if condition is true>, <result if condition is false>)

 

 

So for your issue, it would look like this :

 

IF(Length < 2500, 2030, 3030)

 

 

Because your condition is "Length < 2500", if the Length is actually inferior 2500 then the Length parameter  should be 2030 otherwise, it would be 3030.

 

EDIT :

Forgot to note that you should use a second parameter for your test as you cannot self reference one. So you need to have :

- Length for your input

- LengthCondition (or name it whatever you want) for the formula

It's the LengthCondition that should be the label of the dimension in your object.

Message 3 of 7

FuldenYilmaz
Advocate
Advocate

For the process, You should use some sub-parameters, yes no parameters. You can control the links. Or you can send the family I try to write the formula.

 

https://forums.autodesk.com/t5/revit-mep-forum/if-then-formula-and-quot-yes-no-quot-parameter/td-p/2...

 

https://help.autodesk.com/view/RVT/2020/ENU/?guid=GUID-A0FA7A2C-9C1D-40F3-A808-73CD0A4A3F20

 

If the explanation and links above help, please close the case as answered, if the problem still persists, I expect you to share more details with me.

I wish you good work.

 

Best regards,

Fulden Yılmaz MSc. Architect - BIM Consultant

LinkedIn

Message 4 of 7

cklLJAHD
Explorer
Explorer

It simply states that: 'There is circular chain of references among formulas'.

I have edited the post to include the files.

0 Likes
Message 5 of 7

cklLJAHD
Explorer
Explorer

I have attached the files, since I am not entirely sure what to do since this is the first time using several formulas.

Message 6 of 7

FuldenYilmaz
Advocate
Advocate
Accepted solution

I wrote and uploaded, I hope it is okey. 

 

Let me know if you have more questions on this topic, otherwise please accept as a solution so that others can benefit from this information.

Best regards,

Fulden Yılmaz MSc. Architect - BIM Consultant

LinkedIn

Message 7 of 7

mhiserZFHXS
Advisor
Advisor

@cklLJAHD wrote:

It simply states that: 'There is circular chain of references among formulas'.

I have edited the post to include the files.


You need to follow @MetalFingerz post more closely, as that is the solution.

0 Likes