You need to be logged in to view this content. Please login or become a member.
Description
In this lesson we will examine the powerful and efficient ways to use the API to add, delete, and modify custom properties for the document and each configuration.
Notes
There are no additional notes for this lesson. If you think I missed something, didn’t explain something clearly, or made a mistake, please leave a comment at the bottom.
Lesson Files
Lesson 3.3 code – with error handling
Lesson 3.3 code
How to access the data of the BOM?
Alex,
You’ll have to be more specific. Are you referring to the “BOM Quantity:” dropdown in the custom properties dialog? If so, then that value is considered has being a custom property with the name “UNIT_OF_MEASURE”, which you can get like any other custom property using ICustomPropertyManager::GetX.
Would you need to do anything different if you were working with an assembly instead of a part?
No, all of this should work fine in an assembly. If you want to modify the custom properties of components, however, then you’ll first have to obtain the IModelDoc2 pointer for that component using IComponent2::GetModelDoc2.