AnsweredAssumed Answered

BOM Floating Point Quantity not Inserting correctly via API

Question asked by Susan Irby on Mar 5, 2014
Latest reply on Mar 6, 2014 by Matt Martens

I'm using the sample assembly included with SolidWorks, driveworksxpress (C:\Program Files\SolidWorks Corp\SolidWorks\samples\tutorial\driveworksxpress) and the Assembly "mobile gantry"


When I insert a BOM into the Assembly via SolidWorks (see attached screeshot) items 1.1, 1.4, and 1.8 are floating point values for the quantity.




When I insert this same BOM via code and retrieve the values for the BOM, the quantities for those items are no longer floating point. In fact, the integer part of value is not correct either.


e.g.  The value 3314.38 is coming through via the API as just a value of 1


Anybody know what I am doing wrong and what I have to do to retrieve the floating point quantities correcty?