Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get the language of Revit user interface?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
Anonymous
2537 Views, 2 Replies

How to get the language of Revit user interface?

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.

2 REPLIES 2
Message 2 of 3
matthew_taylor
in reply to: Anonymous

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?
Message 3 of 3
Anonymous
in reply to: Anonymous

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

 

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report