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

parametrics in the families

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
233 Views, 3 Replies

parametrics in the families

i have been trying to create a family with mutiple parts that turn on and of depending on user choosing. the problem is if it is on some already existing dimensions have to change there number. my question is that can you linke the yes/no function to the variable to make it change numbers depending on the yes/no function. if anyone can help me that would be great
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: Anonymous

This one can get a little "tricky", but it can be done.

I am not sure how to explain, so see if this example helps

Parameter Value Formula

TwentybyTwenty Yes/No =
FortybyTwenty Yes/No =
Custom Yes/No =

Length = if(TwentybyTwenty,20,if(FortybyTwenty,40,if(Custom,CustomLength,"")))
Width = if(TwentybyTwenty,20,if(FortybyTwenty,20,if(Custom,CustomWidth,"")))
CustomLength "SomeValue" =
CustomWidth "SomeValue" =


This should work

Set Length and width to the distance parameter.

Where the "" is in the formula you can substitute in some default value, if it gives you an error. I have typically changed it some text that says "None Selected", but if you have set the parameter type to Distance, then it will give you an error.

Where "SomeValue is written" You can put in some default value you in, incase no one checks a value.

In an if statement, there is no value, like there is in Excel or C programing. It is either true or not true. So all you have to do is enter the parameter name.

Give that a whirl, and see if you can make this work for your application.

Let me know if this makes since. If not I will try to make it more clear.
Message 3 of 4
Anonymous
in reply to: Anonymous

This one can get a little "tricky", but it can be done.

I am not sure how to explain, so see if this example helps

Parameter Value Formula

TwentybyTwenty Yes/No =
FortybyTwenty Yes/No =
Custom Yes/No =

Length = if(TwentybyTwenty,20,if(FortybyTwenty,40,if(Custom,CustomLength,"")))
Width = if(TwentybyTwenty,20,if(FortybyTwenty,20,if(Custom,CustomWidth,"")))
CustomLength "SomeValue" =
CustomWidth "SomeValue" =


This should work

Set Length and width to the distance parameter.

Where the "" is in the formula you can substitute in some default value, if it gives you an error. I have typically changed it some text that says "None Selected", but if you have set the parameter type to Distance, then it will give you an error.

Where "SomeValue is written" You can put in some default value you in, incase no one checks a value.

In an if statement, there is no value, like there is in Excel or C programing. It is either true or not true. So all you have to do is enter the parameter name.

Give that a whirl, and see if you can make this work for your application.

Let me know if this makes since. If not I will try to make it more clear.
Message 4 of 4
Anonymous
in reply to: Anonymous

Sorry I didn't realize that they cut out all of the spaces and Enters. Let me know if it makes since. If not I will send you email with it all spaced out.

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

Post to forums  

Autodesk Design & Make Report


Autodesk Design & Make Report