Hi,
I’m running the CUPS (CUMA) command in CATIA, and I’m trying to avoid creating manufacturing assemblies for fake items in the BOM tree.
I’m working within the DELMA_AssignableProductValidation
Business Logic (BL), which runs before DEMLIA_GetMfgItemReferenceToUse
. I can successfully detect fake items by checking the instance attribute V_InEBOMUser
.
if (ThisInstance <> NULL and ThisInstance->HasAttribute("V_InEBOMUser")) if(ThisInstance->GetAttributeBoolean("V_InEBOMUser") == false) isFake = true // return validation false
However, the problem is that child items under these fake items have regular instance relations and do not carry the V_InEBOMUser
attribute. As a result, they are not detected as fake, and their MBOM entries are still created—which I want to avoid.
EBOM prd1 |-prdsub2 |-prdsubsub1 |-prdFAKE1 ---> Should not be created |prdFAKESUB1---> Should not be created MBOM mass1 |-masssub2 |-masssubsub1 |-massFAKESUB1 --> this should not be created yet created.
Is there a recommended way to identify and block MBOM creation for these children of fake items? Should I handle this logic in a different BL or is there a better approach to propagate the fake status down the tree?
Thanks in advance!