Hey guys,
Hope someone can help with this, not sure what I am missing??? REF. image attached.
I am making prefab panels with each type having a different window (nested Family). I want to create an "if" formula for the window width/ height parameter that will be equal to a fixed amount based on which family is selected.
ie.... if(Window Type = W7(PT912) : W7, 900,600). I get the error - W7 not a valid family parameter. ???? Think it may be in the way I am expressing W7(PT912) : W7 within the formula.
Not sure how to get around this, its my first time trying this.
Also how would i be able to force only one of the yes/no boxes to be selected at a time.
Any help and suggestions appreciated.
Thanks
The formula is invalid because the condition to evaluate is a family type parameter. That is not allowed. Alternatives: make the necessary combination of values in one type, (including family type and length values), then, create a new type in the family and set these values again for that type, etc...
It is possible to use family types in formulas, but not in this way. But with a combination of more family type parameters, but that does not apply for this case.
Thanks a ton for the reply.
I am not sure I follow your Alternative??? Care to elaborate a tad, example:......
Sorry but it is Sunday, brain not quite awake yet...
Thanks
Ok hold the phone.....
I have already done what i think you are suggesting.... there are seven types in this family each with their own setting and family type.
I want to be able to lock the window width and height parameters so they cannot be changed in project independantly of the nested family. If i select the lock tick boxes it over onstraints the model????
Any ideas on the yes no boxes?
Ta
Set the "window type", "window width", and "window height" parameters to their correspondent values for the current type that you are configuring. Then, go to the next type, and configure different values, and so on...
For the yes/no parameters, see my post at the end of this other thread:
Thanks,
Think the yes/ no solution will work for me.
Any idea on how to make window width and window height locked of uneditable for each type.?
Maybe by using another parameter, such as integer that indicates window type. Then, the width and height will be driven by the value of that integer. Such as: if (window type id = 1, 900, if (window type id = 2, 700, ....
I will give it a bash and see what I can come up with.
Thanks for the time.
I will revert back upon finding a solution.
I am just guessing... try using " " quotaion marks on the name of the window type i.e. if(Window Type =
"W7(PT912)" : W7, 900,600
Same answer as post # 2 above. 🙂