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: 

formula text

8 ANTWORTEN 8
Antworten
Nachricht 1 von 9
kboschJGDNZ
1749 Aufrufe, 8 Antworten

formula text

Hey

 

Is it possible to use a text parameter in a formula. I want a yes/no parameter to check whether a condition is met in another text parameter.

 

If(text=banana, yes,no)

 

Is this possible??. I'm only getting errors.

Tags (2)
8 ANTWORTEN 8
Nachricht 2 von 9
kboschJGDNZ
als Antwort auf: kboschJGDNZ

I'm always struggling with text parameters. Is there also a way to combine the content of two text parameters? something like : text1 & text 2 

Nachricht 3 von 9
ToanDN
als Antwort auf: kboschJGDNZ

You cannot use text to drive a formula. Use a yes/no, number, or integer instead. Go to the Revit Formula link in my signature below to entertain yourself.
Nachricht 4 von 9
ToanDN
als Antwort auf: kboschJGDNZ

You don't need a formula to combine 2 text fields. If in family, use a label and add two fields in it, if in project schedule, use a combined parameter.
Nachricht 5 von 9
kboschJGDNZ
als Antwort auf: ToanDN

I want to make a label that will check the strengthclasses of columns. A strengthclass is a combination of text and numbers like S275. If a column has the standard strenghclass it should hide that strengthclass. I can't figure out a way to get this working. 

Nachricht 6 von 9
ToanDN
als Antwort auf: kboschJGDNZ

- Presume you already have the Strengthclass parameter (text)
- Create a Strengthclass_standard yes/No parameter.  (yes = standard met)
- Create a Strengthclass_report parameter (text). Use formula: if (Strengthclass_standard, " ", Strengthclass)

Nachricht 7 von 9
kboschJGDNZ
als Antwort auf: ToanDN

Thanks for your reply... I've created a label with your setup, but still don't understand how it would work.

The following screenshot is from the label family:

 

Knipsel.JPG

When these are the occuring strengthclasses (S235 / S275 / S355)...how can you  hide the S235

I've tried to fill in a formula in the Strenghtclass standard row: not(StrengthClass="S235")

That however doesn't work

 

The "StrengthClass" parameter is a shared text parameter btw.

Nachricht 8 von 9
kboschJGDNZ
als Antwort auf: kboschJGDNZ

if(StrengthClass="235",1=0,1=1) gives me a warning about the improper use of booleans

Nachricht 9 von 9
ToanDN
als Antwort auf: kboschJGDNZ

I will get back to you on this tomorrow.

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