Unit Quantity is currently the only property that is on the bill of materials and cannot be accessed through the Apprentice Server. It should be added as a read-only property to the API, so that all properties can be accessed. It would make the collection of properties complete for the Apprentice Server, allowing for better third party program customization.
C# code (same as accessing the property through Inventor API):
public void Loop(ComponentOccurrence oOcc)
{
BOMQuantityTypeEnum qType;
object qQTY;
oOcc.Definition.BOMQuantity.GetBaseQuantity(out qType, out qQTY);
}
Thanks.