Get AutoCAD current culture (language, localization)

Get AutoCAD current culture (language, localization)

Anonymous
Not applicable
1,707 Views
3 Replies
Message 1 of 4

Get AutoCAD current culture (language, localization)

Anonymous
Not applicable
Hi,



Out of curiosity I was wondering if there is an easy way to get the current culture for AutoCAD ? I basically would like to automatically translate my own application according to AutoCAD's language.



Of course I tried:



System.Threading.Thread.CurrentThread.CurrentUICulture.Name;



But it always returns "en-us" whatever version of AutoCAD is running. Is there an API method which would return the right value ?







PS: by "easy" I mean no registry key such as "ACAD-5001:409" to compare with homemade list...
0 Likes
Accepted solutions (1)
1,708 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
Accepted solution
Autodesk.AutoCAD.Runtime.DynamicLinker.ProductLcid

Best Regards,
Alexander Rivilis.
0 Likes
Message 3 of 4

Anonymous
Not applicable
Exactly what I needed thanks. With whit method I can set the CurrentCulture:



System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo(Autodesk.AutoCAD.Runtime.SystemObjects.DynamicLinker.ProductLcid);
0 Likes
Message 4 of 4

Anonymous
Not applicable
(double post)
0 Likes