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 show " mark in IF formula text string output

3 ANTWORTEN 3
GELÖST
Antworten
Nachricht 1 von 4
johnw
2107 Aufrufe, 3 Antworten

How to show " mark in IF formula text string output

I am trying to have an "if" statement put out a text string that needs to have an Inch Mark (") shown. How would I do this in the following statement:

 

if([14" Wide Side Lt], "14" TEMP. SIDE LT.", "12" TEMP. SIDE LT.")

 

The "inch marks are shown at the 14 and 12 in the example above, but this will not work in Revit Parameters Formula section.

 

Any help would be appreciated.

 

Thanks,


John

3 ANTWORTEN 3
Nachricht 2 von 4
Alfredo_Medina
als Antwort auf: johnw

Assuming that 14" TEMP. SIDE LT is a yes/no parameter, the formula for the text parameter should be set to:

 

if([14" Wide Side Lt], "14\" TEMP. SIDE LT.", "12\" TEMP. SIDE LT.")

 

Basically, add a back slash before the quote mark in the formula to make the output display the quote mark.


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin
Nachricht 3 von 4
ToanDN
als Antwort auf: Alfredo_Medina


@Alfredo_Medina wrote:

 

 

Basically, add a back slash before the quote mark in the formula to make the output display the quote mark.


I had no idea about this rule.  Thanks!

Do you by any chance know how to enter m2 (square meter) in a formula?  

Nachricht 4 von 4
Alfredo_Medina
als Antwort auf: ToanDN

m Alt 0178 

 

m²  


Alfredo Medina _________________________________________________________________ ______
Licensed Architect (Florida) | Freelance Instructor | Profile on Linkedin

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