.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Get AutoCAD current culture (language, localizati on)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
188 Views, 3 Replies
11-21-2008 03:58 AM
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.CurrentUICul ture.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...
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.CurrentUICul
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...
Solved! Go to Solution.
*Alexander Rivilis
Re: Get AutoCAD current culture (language, localizati on)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-21-2008 05:55 AM in reply to:
PowerKiKi2
Autodesk.AutoCAD.Runtime.DynamicLinker.ProductLcid
Best Regards,
Alexander Rivilis.
Best Regards,
Alexander Rivilis.
Re: Get AutoCAD current culture (language, localizati on)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-24-2008 02:44 AM in reply to:
PowerKiKi2
Exactly what I needed thanks. With whit method I can set the CurrentCulture:
System.Threading.Thread.CurrentThread.CurrentCultu re = new System.Globalization.CultureInfo(Autodesk.AutoCAD. Runtime.SystemObjects.DynamicLinker.ProductLcid);
System.Threading.Thread.CurrentThread.CurrentCultu
Re: Get AutoCAD current culture (language, localizati on)
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-24-2008 02:44 AM in reply to:
PowerKiKi2
(double post)
