How to get the language of Revit user interface?

How to get the language of Revit user interface?

Anonymous
Not applicable
2,928 Views
2 Replies
Message 1 of 3

How to get the language of Revit user interface?

Anonymous
Not applicable

Revit 2017.1.1

 

How to get the language of Revit user interface? The checking of the `Thread.CurrentThread.CurrentUICulture` value is not reliable, because it returns "en" for Russian UI in Revit 2017.1.1.

0 Likes
Accepted solutions (1)
2,929 Views
2 Replies
Replies (2)
Message 2 of 3

matthew_taylor
Advisor
Advisor
Accepted solution

Hi @Anonymous,

Just search the Revit API doc for 'language'... It is there. http://www.revitapidocs.com/2017/1acafee6-95e0-50dd-2e46-8951e9405311.htm

 

Cheers,

-Matt


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes
Message 3 of 3

Anonymous
Not applicable

Oh. I found the response right after created this subject... Delete this topic, please.

 

// application is UIControlledApplication
LanguageType lang = application.ControlledApplication.Language;