Inventor API BUG in Double.parse for Microsoft dynamics Ax 2009 Bom generator

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Help please fix this bug the inventor API 2012
I createt a Bom generator for Microsoft dynamics Ax 2009 that runs from a form inside Inventor.
It Exports all BOM info from inventor into Microsoft dynamics, and recreates the bom inside Microsoft dynamics.
The only problem is that when the Bomlinenumber and BomQty is bigger than 10 this data is passed wrong from the inventor API, and the result inside Dynamics is 1? I found Out that when i set the local computer language settings
NumberDecimalSeparator = "." and the NumberGroupSeparator = "," then inventor Passes the data right?
We use standard DK settings and changing these settings is not an option for us.
I test that this a BUG in the Inventor API, I createt the same program to run outside inventor as an Windows form application with the exact same code and here all runs fine. without having to mess around with the local language settings.
Below is the code that does not work running inside inventor / but works from outside i an external application?
AxRecordBom.Field("LineNum") = Double.Parse(DgviewLineNumCellData)
AxRecordBom.Field("BOMQty") = Double.Parse(DgviewBOMQtyCellData)
Help to solve this Please!
Regards Kent Boettger.