If statement for family type parameter

If statement for family type parameter

Sujan.Maharjan
Collaborator Collaborator
4,181 Views
8 Replies
Message 1 of 9

If statement for family type parameter

Sujan.Maharjan
Collaborator
Collaborator

Hi,

I'm trying to use an if statement for a Generic Annotation Type parameter value to a Text type parameter. But I'm getting errors. Can anyone explain what am I doing wrong?

image_2019_09_19T03_00_12_069Z.png

 

Thanks, 

 


"Revit Lies in the tension between what we want to do and what can be done!"
4,182 Views
8 Replies
Replies (8)
Message 2 of 9

ToanDN
Consultant
Consultant
You cannot use a family type parameter to drive a formula.
Message 3 of 9

Sujan.Maharjan
Collaborator
Collaborator

Thanks for confirming.


"Revit Lies in the tension between what we want to do and what can be done!"
0 Likes
Message 4 of 9

J.Wehmer
Collaborator
Collaborator

You can use a formula to drive a <Family Type> parameter. I taught a class about it at MU19, attached is a family for you to dissect and see how to reference the interties in a formula.

 

To drive a <FT> parameter with a formula you have to reference other <FT> parameters. You cannot reference any other format of data (length, dia, flow...), it HAS to be a <FT> parameter.

 

DM me if you would like the handout from the class and any other material that might help


-Please click accept as solution if this answers your question!
Message 5 of 9

patil.vaishali
Enthusiast
Enthusiast

You can use Type parameter in formula. Your "Type of parameter" i.e. Length, Integer, Number... should be same as main parameter for which you are using the formula to drive that parameter.

Vaishali Patil
Electrical BIM Specialist
Message 6 of 9

nuno.magalhaes.estudo.revit
Community Visitor
Community Visitor

Hi,

I have the same problem

I want to associate a parameter call Caixa, that I has to have a value related to the type of familie.

I create a text parameter: Tipo = "2x08M". I have various family type parameter with: Caixa208, Caixa216, ...

And I have familytype parameter names Caixa that has to be the value of Caixa208 for Tipo"2x08M, Caixa 216 for Tipo"2x16M", etc.

A put this formula on Caixa:

if(Tipo="2x08M",Caixa218,if(Tipo=2x16M",Caixa216,""),"")

 I have the same error. There is a way to solve this?

Message 7 of 9

fabiosato
Mentor
Mentor

Hello,

 

AFAIK familytype can´t be used in formulas.

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.

EESignature

0 Likes
Message 8 of 9

petrlanik
Enthusiast
Enthusiast

Why does Revit has so many limitations? -It can probably be done in Dynamo, but it is quite annoying. Also the possibility to drive parent parameters by nested family parameters would be great. Again probably Dynamo script will solve that, but still it is quite annoying.

Message 9 of 9

kclarkQEJDP
Explorer
Explorer
I need help with a door family that might change sizes and the width of the door panel is a manual entry, I want the window in the door to know what size to be based on which type of door type I am placing. Can you help? this is my thought, If door panel is set to Family Type, Single Vision Lite, then set window width to be 7", else if the Family Type is set to Single Half Lite, then set the Window width to be the Door Panel minus 11".
My main issue is I need the door panel to be changeable and the stiles to automatically go to the proper width from the outside edge. Can you help?
0 Likes