Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get Base Quantity - Apprentice Server

Get Base Quantity - Apprentice Server

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. 

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report