Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Parametric Family - Formula

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
cklLJAHD
492 Views, 6 Replies

Parametric Family - Formula

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

6 REPLIES 6
Message 2 of 7
MetalFingerz
in reply to: cklLJAHD

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
in reply to: cklLJAHD

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
in reply to: MetalFingerz

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

I have edited the post to include the files.

Message 5 of 7
cklLJAHD
in reply to: FuldenYilmaz

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
in reply to: cklLJAHD

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
in reply to: cklLJAHD


@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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report