How to set the BOM Reference property in a part occurrence |
Top Previous Next |
The reference property prevents the part occurring in a BOM or parts list.
CComPtr<ComponentOccurrence> pCctNodesOcc; CComQIPtr<PartComponentDefinition> pCctNodesDef ; hRes = AddPartToAssemblyAtPosition (pAssemblyCompDef, kcsNodesPartFullName, 0.0,0.0,0.0, // x y z position pCctNodesOcc, // return value pCctNodesDef) ; // return value if (FAILED(hRes)) { gLogger.Printf (ekErrMsg,"Bulb7 failed") ; return ; }
// This makes the occurrence a Reference which means it does not appear in the Parts Only parts list pCctNodesOcc->put_Reference(VARIANT_TRUE);
|
Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)