Jump to content

Bill Of Material consumption dependent of Entity


Pedro

Recommended Posts

Hi,


in my workstation what is the easiest way of making the Bill Of Materials (BOMs) consumption vary according to the entity that is being processed? For example if I get entity A I'll consume the BOM "BOM_of_A":


t7XmtmH.png


If it is B I'll would consume "BOM_of_B".


Thanks!

Link to comment
Share on other sites

First, create your Materials and BOM in Model as desired.


Add an Element Reference Property of type Material to your ModelEntity. Let's call it MyMaterial. You can change it, but by default that new property will display under the General category.


As you instantiate copies of ModelEntity, change the MyMaterial property to the material needed by that entity type.


In the Consumed MaterialName property of Workstation, enter ModelEntity.MyMaterial.EachEntityRequiresUniqueMaterial.spfx

 

Another equally good approach would be to have a data table with rows specific to each entity type and one of the columns would be an Element Reference Property of type Material. Then you would reference that column in Workstation.

Link to comment
Share on other sites

×
×
  • Create New...