Skip to main content
14-Alexandrite
October 27, 2022
Solved

Limit a specific WTPart soft type from getting added in the BOM structure

  • October 27, 2022
  • 3 replies
  • 1313 views

Hello,

 

I have a requirement where a specific part sub type should not be added as a child component of any parts. Can you please let me know how we can achieve the same?

 

Thanks in advance.

 

Regards,

Hari

Best answer by Sha11

Hello,

 

There was one way to achieve this through configuration, in the Type and Attribute Management, under Part Usage there is an option called Relationship Constraint and we can populate the Parent Type and allowable Child Types. Only the types given in the Child Part Type will be searchable and the remaining types could not be added as a child component for a given parent part type.

 

Sha11_0-1670222067525.png

 

3 replies

avillanueva
23-Emerald I
23-Emerald I
October 27, 2022

A listener might work here. Key off the pre-store action on a WTPartUsageLink. Logic would be if you detect that its trying to store a WTPartUsageLink with this banned soft-type as a component, then just throw a WTException or some other block which will trickle back up to the UI.

joe_morton
18-Opal
18-Opal
December 2, 2022

I agree with @avillanueva - that would probably be the ideal solution. 

 

It's a bit difficult for us to develop listeners ourselves, so we do these kind of validations in other ways. For something like this, we might add a validation into a release workflow, to prevent the assembly from getting released if it has the invalid part type in it. Of course, it would be better to prevent it in the first place, but just to give you another idea.

Sha1114-AlexandriteAuthorAnswer
14-Alexandrite
December 5, 2022

Hello,

 

There was one way to achieve this through configuration, in the Type and Attribute Management, under Part Usage there is an option called Relationship Constraint and we can populate the Parent Type and allowable Child Types. Only the types given in the Child Part Type will be searchable and the remaining types could not be added as a child component for a given parent part type.

 

Sha11_0-1670222067525.png