Sorry about the initial confusion. The BOMQuantity object is located just under the ComponentDefinition, and it has several methods & properties. I initially misread the post and though you said 'Base Units'. There is also a property for Unit Quantity. But there are two methods for getting, and one method for setting the current setting/value for the 'Base Quantity'. The GetBaseQuantity method requires you to first create the two types of variables, then input them into the method, then the method will set their values. The second variable will only get a value if the quantity type is based on a parameter, instead of Each. Then the SetBaseQuantity method requires you to specify which type of quantity you are setting, then if it is parameter based, it wants you to input the parameter object. If supplying a parameter object, it must be a numerical one, with something like length, volume, or mass type value.
Wesley Crihfield

(Not an Autodesk Employee)