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: 

Using an If yes/ no Statment to control a dimension parameter

5 ANTWORTEN 5
Antworten
Nachricht 1 von 6
Anonymous
1826 Aufrufe, 5 Antworten

Using an If yes/ no Statment to control a dimension parameter

I would like to control a Dimension parameter by using a if Statement. 

The goal is; when you check the Full Beam Pocket to yes it will automatically set the Beam Pocket Depth to equal the Panel Thickness, if no then it should remain 3 1/2"

The current formula is   ** if(Full Beam Pocket, 1, 0) = Panel Thickness ** 

 

If Statement.png

 

5 ANTWORTEN 5
Nachricht 2 von 6
barthbradley
als Antwort auf: Anonymous

aren't you there?

 

if(Full Beam Pocket, Panel Thickness, 3 1/2").

 

No?  

Nachricht 3 von 6
Anonymous
als Antwort auf: barthbradley

That is the formula I entered and it is not working.   I'm not sure what needs to change.  I'm hoping someone can see what I'm missing.

 

 

Nachricht 4 von 6
barthbradley
als Antwort auf: Anonymous

Make Panel Thickness an Instance Parameter

 

...or all the associated parameters Type Parameters

Nachricht 5 von 6
aoffak
als Antwort auf: Anonymous

I tried to something similar but Revit 2022 was nice enough to give me a hint (<boolean>, <result if true, result if false). Therefore try the following to see if it works:

 

if(Full Beam Pocket, Stud Spacing, 3.5")

Nachricht 6 von 6
mhiserZFHXS
als Antwort auf: Anonymous

If using a Yes/No parameter in a formula, you just need to type the parameter name and then the result if true and the result if false. Don't need an equal sign anywhere in the equation.

 

if(Yes/No Parameter, Result if True, Result if False).

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