- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a AutoCAD-AddIn which run in the past with ACADM 2013 and is now compiled for ACADM 2015. Unfortunately I have now problems with the number group separator. The following VB source code shows “1,234 Suchergebnisse” (but we use “.” instead “,” in Germany):
Dim iCount As Integer = 1234
Debug.Print("{0:N0} Suchergebnisse", iCount)
The same source code works under ACADM 2013 without problems! And I have NO problems in other programs (for example Excel).
I know meanwhile that “Globalization.CultureInfo.CurrentCulture” is set correct to German, but the number group separator (“Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberGroupSeparator”) use the wrong char.
If I set the NumberGroupSeparator manually to “.” at the initialization from the AddIn the code works like expected:
Globalization.CultureInfo.CurrentCulture.NumberFormat.NumberGroupSeparator = "."
Is this a problem for AutoCAD? Or is there a option, where I can set the separator in AutoCAD?
Thanks for your help!
Greetings,
Tim Gerundt
Solved! Go to Solution.