Hi @marko.jessenjuhler. The primary Inventor API route for accessing those settings that you see on the Bill of Materials tab of the Document Settings dialog, is by the following. The ComponentDefinition object is the base type that all other more specific ComponentDefinition types are derived from (PartComponentDefinition, AssemblyComponentDefinition, WeldmentComponentDefinition, SheetMetalComponentDefinition, etc, etc). The ComponentDefinition object has a property called BOMQuantity, that returns a BOMQuantity type object. That object contains all available methods & properties for accessing or editing those settings for the specific ComponentDefinition you accessed it through. And keep in mind that a ComponentOccurrence objcect's Definition property returns one of these ComponentDefinition's too. How you may need to structure or layout your code depends on all the other details of the task, so if you need someone to help you write some code for a specific task, please provide as much information and details about the task as possible, because code needs to be very precise or it may result in a lot of errors and/or unintentional changes.
Wesley Crihfield

(Not an Autodesk Employee)