cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
KevinJ
Booster

How to rename an attribute (for schedule) in an other language than english ?

Hello dear colleague from around the world.
I'working in Latvija and all the documentation must be in Latvian. 
Working on large scale project I'm using schedule and all possible attribute or property and now about door.
One of door property is "orientation" than give answer R for right and L for Left. I would to see in my door schedule L for Right and K for Left.

One possible solution is to create another attribute in "Property management" so I created "Orientation2" with an expression that say
If orientation is right then display "L" ifnot display "K"

witch give :
IF (Orientation=R; "L"; "K")
but expression is wrong but why?

 

KevinJ_0-1746955229001.png


I guess there might be another way, something like "property mapping"  but didn't found much about that.

Any idea, correction or way around ?
Paldies/Thanks

 

Operating system used: Windows

Setup info provided by author
2 Solutions

Accepted Solutions
KevinJ
Booster

Thanks BerndSchwarzenbacher but it didn't work.

 

Also found the mistake, IF ( Orientation = "R", "L", "K" ) does work. And it look like comma work (preset of IF function come up with comma)

 

7Bjv7-jM.png


But it's not returning K or L but ---
Both in evaluate and also in schedule
Other idea ? 

Go to post

KevinJ
Booster

It works ! It wasn't the good property. There are indeed 3 differents orientations properties ! The one for door work ! 

Go to post

5 Replies 5
runxel
Moderator

Have you tried IF (Orientation="R"; "L"; "K") ?

Difference are the quotes around the R. If "Orientation" is a string than you can only compare it with other strings.

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
KevinJ
Booster

Thanks for answering.
It still show error, I m also thinking there is something about string, value wrong synthax ... 
Now it show error is before comma. 

KevinJ_0-1747034308118.png

I did copy and rewrite the expression, move the space but it's not working.

Now you have a comma "," instead of a semicolon ";" after "R".

Automating Archicad with Add-Ons, GDL-Objects & Python Archi-XT.com
KevinJ
Booster

Thanks BerndSchwarzenbacher but it didn't work.

 

Also found the mistake, IF ( Orientation = "R", "L", "K" ) does work. And it look like comma work (preset of IF function come up with comma)

 

7Bjv7-jM.png


But it's not returning K or L but ---
Both in evaluate and also in schedule
Other idea ? 

KevinJ
Booster

It works ! It wasn't the good property. There are indeed 3 differents orientations properties ! The one for door work ! 

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!