How to keep formula value different in a family type

How to keep formula value different in a family type

roscopeco2000
Collaborator Collaborator
2,777 Views
22 Replies
Message 1 of 23

How to keep formula value different in a family type

roscopeco2000
Collaborator
Collaborator

I have added a value to my door schedule which will report 2 different dimensions depending if its a blockwork wall or stud(yes/no parameter). Problem is i need a different set of values if its a 2', 2,.3", 2,'6", 2,'9" door type. When i input a set of numbers for one type it changes it for all. I have set the parameter to an instance type so i don't get why this has happened. any ideas?

Capture sch.PNG

0 Likes
Accepted solutions (2)
2,778 Views
22 Replies
Replies (22)
Message 2 of 23

Alfredo_Medina
Mentor
Mentor
Accepted solution

Once you write a formula, the formula has the same effect in all the types of the family. 

 

You need: 

1) a new type length parameter, such as "Structural Opening_Blockwork",

2) a new type length parameter, such as "Structural Opening_Studs"

3) a change in the "Structural Opening" parameter: make it Type.

4) a change in the formula for "Structural Opening", like this:

if (Blockwork, Structural Opening_Blockwork", Structural Opening_Studs")

 


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
Message 3 of 23

L.Maas
Mentor
Mentor

If your value depends on the family type you choose why make it an instance parameter?

 

Make it a family type parameter and set it to the desired value of each family type.

 

Louis

EESignature

Please mention Revit version, especially when uploading Revit files.

0 Likes
Message 4 of 23

roscopeco2000
Collaborator
Collaborator

Ok i did what you suggested but now i just get a text report?, i need the parameters to be instant as the family types might be in 2 conditions at the same type.   

 

Capture sch.PNG

0 Likes
Message 5 of 23

Alfredo_Medina
Mentor
Mentor

The "Structural Opening" parameter must be length, and type. Not text, not instance. 

The other two parameters must be type, not instance.


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 6 of 23

Alfredo_Medina
Mentor
Mentor

...and remove the quotes (") from the names of the parameters in the formula.

It should be length, not text.


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 7 of 23

Alfredo_Medina
Mentor
Mentor

In post # 2 above, I realize now that I put some quotes at the end of the names of the parameters. That was a mistake, please ignore those quotes.


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 8 of 23

roscopeco2000
Collaborator
Collaborator

Ok thank you but are you saying i cannot do an instant version? if so i need to rethink

0 Likes
Message 9 of 23

ToanDN
Consultant
Consultant
Why do you need an Instance parameter? If your doors are sized by types then the lintel length parameter should be Type, same as the Door Width parameter. The Type parameter has two options: one is for block wall and the other is for framed wall. But that doesn't change the fact that it must be a Type parameter. You can post your family here if it is still not clear.
0 Likes
Message 10 of 23

roscopeco2000
Collaborator
Collaborator
Ok toan maybe I am mistanding instances. I need to have one type in 2 possible states, this is what I thought instances were for? Ie I want the ability to have a 2.3" door to report a value for a block work opening and also another version of 2.3" to report as stud work opening.
0 Likes
Message 11 of 23

ToanDN
Consultant
Consultant
No that is not it. The ability to have different values for block wall opening and stud wall opening is controlled by the formula.

Instance parameters are for for you to be able to have different values for the two exact same doors. For example, two doors of the same type, same dimensions, both in block walls, but they can have different lintel sizes - that's what an instance parameter is for.
0 Likes
Message 12 of 23

roscopeco2000
Collaborator
Collaborator
Yes I think we are taking about the same thing. Let me try explain again. So the same type/size of door in a model that could be in a blockwork wall. I also want the same type/size of door in a stud work wall. Both require different structural openings depending on the type of wall they are in even though they are the same size door.I need these 2 options for 3 types of door in a family part so 6 results. Hence why I thought I needed an instance. I am now thinking the easiest way is to strip out the types and just have a 2"3 door family only(would need only 2 results). This would make the whole think easier. Sorry for the confusion I really want this to work. Thanks again
0 Likes
Message 13 of 23

ToanDN
Consultant
Consultant
Accepted solution
Nope. Instance parameter only needed if you have two exact doors in the same exact block wall but with different lintel sizes.
Message 14 of 23

roscopeco2000
Collaborator
Collaborator

Toan can you confirm with the above formula, will i need to delete out the door types? If i set the numbers for a 2'3" door the values stay the same for all family types?, if so i need to have individual doors? Thanks Ross

0 Likes
Message 15 of 23

ToanDN
Consultant
Consultant

@roscopeco2000 wrote:

Toan can you confirm with the above formula, will i need to delete out the door types? If i set the numbers for a 2'3" door the values stay the same for all family types?, if so i need to have individual doors? Thanks Ross


No.  You don't have to delete the door types. 

 

Let's say you have the door type 1 (3'x7') and you insert two in a framed wall and another in a block wall, the formula will give the two in the framed wall the same value and the one in the block wall a different value.  Similarly, if you insert the doors type 2 (4'x8'), the formula with match the lintel size with the door size + the wall type (block vs framed).

0 Likes
Message 16 of 23

roscopeco2000
Collaborator
Collaborator

Can someone help me finish this formula please, I have all the parameters sorted, i cant get the formula right. So if the Blockwork wall is ticked(yes/no para) i want to look at the structural blockwork opening and if its not ticked i want it to look at the structural studwork value. Then i want this to report in strutural opening, my crux is I dont know how to get it to report the value from a parameter.

 

formula.PNG

0 Likes
Message 17 of 23

roscopeco2000
Collaborator
Collaborator

Annoyingly it will report the value if there is no formula (see below)but as soon as i add an IF formula its says inconsistent units because its trying to report a text formula in a value one  

formula.PNG

0 Likes
Message 18 of 23

ToanDN
Consultant
Consultant
if (Blockwork Wall, Structural Opening_Blockwork, Structural Opening_Studs)
0 Likes
Message 19 of 23

Alfredo_Medina
Mentor
Mentor

Please read carefully previous posts in this thread. Seems that the thread is going back to topics that were already explained above.


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
0 Likes
Message 20 of 23

roscopeco2000
Collaborator
Collaborator
Apolgises if it is but I can't get it to work, I want it to report the value of structural opening, if I put your formula it's a text value in a length parameter so it doesn't work..
0 Likes