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

Writing down a family type in formula form

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
Anonymous
1557 Views, 8 Replies

Writing down a family type in formula form

I'm trying to change a component in a family by using a formula.

Simply put I'm trying to create an IF statement where it would result in changing (or not changing) a component into an other.

I however do not know how to "describe" a specific family type in a formula.

8 REPLIES 8
Message 2 of 9
ovidiu_paunescu
in reply to: Anonymous

Maybe this is what you are looking for

https://www.linkedin.com/pulse/add-choices-your-revit-families-family-type-parameters-paul-aubin/

 



Ovidiu Paunescu, M.Sc. Str. Eng.

Sr. Product Owner | Autodesk Revit

Message 3 of 9
Anonymous
in reply to: ovidiu_paunescu

That is the thing I want to adjust, but I want to adjust it with a formula rather than just clicking and selecting another one.

Message 4 of 9
ovidiu_paunescu
in reply to: Anonymous

This should do the trick

https://youtu.be/hGmAtQjqhFc

 

Also here's a useful link to overcoming inconsistencies when using formulas

https://www.revitforum.org/tutorials-tips-tricks/1138-revit-inconsistent-units-how-neutralize-them.h...

 

Here's a quick example of this:

0 - no lamp, 1 - Lamp1, 2 - Lamp2, 3 - Lamp3, 4 - All lamps0 - no lamp, 1 - Lamp1, 2 - Lamp2, 3 - Lamp3, 4 - All lamps

EditFamily.PNG

 



Ovidiu Paunescu, M.Sc. Str. Eng.

Sr. Product Owner | Autodesk Revit

Message 5 of 9
Anonymous
in reply to: ovidiu_paunescu

Is the idea that you put all instances in the same position and set some on invisible based on an IF statement?

Message 6 of 9
ovidiu_paunescu
in reply to: Anonymous

Yes, that's the idea.

The IF statement can be about any family parameter (e.g. the width of a framing element).

 

If you don't need an IF you can just save the family types with the Yes/No parameters checked/unchecked.

Tags is one example where multiple labels are overlapped and the visibility is controlled by Yes/No parameters.



Ovidiu Paunescu, M.Sc. Str. Eng.

Sr. Product Owner | Autodesk Revit

Message 7 of 9
Anonymous
in reply to: ovidiu_paunescu

I can now turn on and off the visibility of certain elements but it still shows them, I have checked it in projects as well, but that doesn't matter (as I think I remember to have read that everything is always visible in the family editor). Next to that I'm getting the issue that it says there are two similar elements are overlapping, which does happen, but one shouldn't be active.

 

Any idea what I'm missing here? Thanks in advance!

Message 8 of 9
ovidiu_paunescu
in reply to: Anonymous

You can use preview visibility to view the elements like they would look when loaded into the project.

More on that here:

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/video/youtube/lesson/143666...

 

If you're using conditions to control the Yes/No params, check that you have defined them correctly.

You can ignore errors of overlapped elements in the family editor (if they are shown) if one of the element will be hidden

 

Check out the following information on controlling the visibility inside families:

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/contr...

 



Ovidiu Paunescu, M.Sc. Str. Eng.

Sr. Product Owner | Autodesk Revit

Message 9 of 9
Anonymous
in reply to: ovidiu_paunescu

I managed to solve it, the trick was to set the visibility within the nested families instead of the "main" family file.

 

Thank you!

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

Post to forums  

Autodesk Design & Make Report