Revit Architecture Forum
Welcome to Autodesk’s Revit Architecture Forums. Share your knowledge, ask questions, and explore popular Revit Architecture topics.
abbrechen
Suchergebnisse werden angezeigt für 
Anzeigen  nur  | Stattdessen suchen nach 
Meintest du: 

How to keep formula value different in a family type

22 ANTWORTEN 22
GELÖST
Antworten
Nachricht 1 von 23
roscopeco2000
2504 Aufrufe, 22 Antworten

How to keep formula value different in a family type

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

22 ANTWORTEN 22
Nachricht 2 von 23
Alfredo_Medina
als Antwort auf: roscopeco2000

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
Nachricht 3 von 23
L.Maas
als Antwort auf: roscopeco2000

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.

Nachricht 4 von 23
roscopeco2000
als Antwort auf: Alfredo_Medina

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

Nachricht 5 von 23
Alfredo_Medina
als Antwort auf: roscopeco2000

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
Nachricht 6 von 23
Alfredo_Medina
als Antwort auf: Alfredo_Medina

...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
Nachricht 7 von 23
Alfredo_Medina
als Antwort auf: Alfredo_Medina

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
Nachricht 8 von 23
roscopeco2000
als Antwort auf: Alfredo_Medina

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

Nachricht 9 von 23
ToanDN
als Antwort auf: roscopeco2000

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.
Nachricht 10 von 23
roscopeco2000
als Antwort auf: ToanDN

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.
Nachricht 11 von 23
ToanDN
als Antwort auf: roscopeco2000

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.
Nachricht 12 von 23
roscopeco2000
als Antwort auf: ToanDN

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
Nachricht 13 von 23
ToanDN
als Antwort auf: roscopeco2000

Nope. Instance parameter only needed if you have two exact doors in the same exact block wall but with different lintel sizes.
Nachricht 14 von 23
roscopeco2000
als Antwort auf: ToanDN

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

Nachricht 15 von 23
ToanDN
als Antwort auf: roscopeco2000


@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).

Nachricht 16 von 23
roscopeco2000
als Antwort auf: ToanDN

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

Nachricht 17 von 23
roscopeco2000
als Antwort auf: ToanDN

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

Nachricht 18 von 23
ToanDN
als Antwort auf: roscopeco2000

if (Blockwork Wall, Structural Opening_Blockwork, Structural Opening_Studs)
Nachricht 19 von 23
Alfredo_Medina
als Antwort auf: roscopeco2000

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
Nachricht 20 von 23
roscopeco2000
als Antwort auf: Alfredo_Medina

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..

Sie finden nicht, was Sie suchen? Fragen Sie die Community oder teilen Sie Ihr Wissen mit anderen.

In Foren veröffentlichen  

Autodesk Design & Make Report