Create parameters for nested families

Create parameters for nested families

radu.sebastian.pn
Participant Participant
881 Views
10 Replies
Message 1 of 11

Create parameters for nested families

radu.sebastian.pn
Participant
Participant

Hello,

 

I want to bring in my host family different tipes of small pipe sizes (from separate families) and in that way I will create a list of them. But, for each of it I want to create a pipe connection. If I create that connection in those families, when I import them in the host family I cannot use them. 

My question is how can I create a formula for that parameter, using that list,  so I can use it to define my new diameter according to the family that I whant to use ?

 

Thank you !

 

Forumula.jpg

0 Likes
Accepted solutions (3)
882 Views
10 Replies
Replies (10)
Message 2 of 11

barthbradley
Consultant
Consultant
Accepted solution

Are you talking about Nested Families that are brought into Host Family via <Type/Types> parameters?

https://knowledge.autodesk.com/support/revit-products/learn-explore/caas/CloudHelp/cloudhelp/2014/EN...

This may help. May not. You decide. Check out 's @Ilic.Andrej 's contribution here:

https://forums.autodesk.com/t5/revit-architecture-forum/formula-to-control-visibility-parameters-bas....

Message 3 of 11

aleksandr.b
Advocate
Advocate

Hi, watch it, this question we've solved here:
https://forums.autodesk.com/t5/revit-structure-forum/is-it-possible-to-do-family-parameter-concatena...

Best regards, Aleksandr Barsukov.

    

Message 4 of 11

radu.sebastian.pn
Participant
Participant

Hi and thank you for your answer.

 

Am I missing something?

 

Forumula 2.jpg

0 Likes
Message 5 of 11

barthbradley
Consultant
Consultant

Yep. Read this: https://revitforum.org/showthread.php/1046-Revit-Formulas-for-quot-everyday-quot-usage

 

 

You can't do that. First, is that a <Family/Types> Parameter (e.g. "connection<Generic Model>") or did you title it that way -- with the <Generic Model> a part of the name?   If you did name it that way, use the whole name and put brackets ( [..] ) around it in the formula -- and get rid of the equal sign for "<" or ">".  

 

for instance: if(and ([connection<Generic Model>]>64.99,[connection<Generic Model>]<65.01, 1<2,2<1)

 

If you are trying to control which <Family/Type> is used, then read the second Link I posted you to above. Works like a charm for many years.  

0 Likes
Message 6 of 11

aleksandr.b
Advocate
Advocate
Accepted solution

Do like this:

1.jpg2.jpg

Best regards, Aleksandr Barsukov.

    

0 Likes
Message 7 of 11

radu.sebastian.pn
Participant
Participant

Thank you @aleksandr.b. Is exactly what I want but I am receiving this message:

 

Forumula 3.jpg

 

0 Likes
Message 8 of 11

Ilic.Andrej
Advisor
Advisor
Accepted solution

You re missing more family/type parameters... In the example bellow, "Type 1" is a name of a family type parameter that has a value "Type 1". Then, Family/Type parameter "Dropdown List" is compared with family type parameter "Type 1".  I wish we could use a simple condition like the one you showed, but all we have is this dirty workaround.

 

 

Bez naslova.png



Andrej Ilić

phonetical: ændreɪ ilich
MSc Arch

Autodesk Expert Elite Alumni

Message 9 of 11

radu.sebastian.pn
Participant
Participant

Thanky you very much @Ilic.Andrej !! A lot of nice people here !!

It took a while until I got it but finally... 😀

 

We can send ships on Mars but "we" cannot create a simple formula in Revit, not even now 😁 

Message 10 of 11

barthbradley
Consultant
Consultant
Message 11 of 11

radu.sebastian.pn
Participant
Participant

Thanks @barthbradley  🙂

0 Likes