#Outputs - link as MESObjectLink to the Material DefinitionįtMESObjectTypeName('MaterialDef') #Inputs - name for material def as String #It will then check to see if it is a member of the given Material class and if not will add it. #This function will check if the passed Material definition exists and if not creates it. RetVal = retVal + ' It is already a child of ' + rootFolderĭef checkCreateMaterialDef(name, objClassLink): Obj.addParent((rootFolder, 'MaterialRoot')) RetVal = retVal + " Added to " + rootFolder If parentList.findByName(rootFolder) is None: ParentList = obj.getParentCollection().getList()
RetVal = "Material Class " + name + " already exists." RetVal = "Creating Material Class " + name + "." #Outputs - link as MESObjectLink to the Material Classįilter = .createFilter()įtMESObjectTypeName('MaterialClass') #Inputs - name for material class as string #If addToRoot is True, then this class will be added to the Material Root, allowing any material definitions in this class to #This function is passed a name for a Material Class and will create it if it doesn't already exist. Use the File open dialog box to select the xml file to be imported and Click Openĭef checkCreateMaterialClass(name, addToRoot):.Select the Material Root or Material Class to import to and click Import
Edit - Click on the Material Class you wish to edit and select Edit.Add - Click on Material Root or the Material Class you wish to create a Material Class under and select New Material Class.Material Classes can be created at the Material Root level or underneath an existing Material Class Material Classes Adding, Editing and Deleting Material Classes The MES Object Editor component can also be used to create material definitions and classes that may be used by both OEE and T&T. The OEE Material Manager component is primarily used to create material definitions and classes for OEE. In OEE 2.0, Material Classes do not come into play so much, however if your implementation includes Track & Trace or you plan on implementing Track & Trace at a later stage, setting up your Material Classes and Definitions correctly is an important step in the implementation. As an example, an operation that packages beer into cans could be constructed to accept any Material that belongs to the Material Class - 'Fruits' or it could be limited to a specific Material Definition - 'Mango'. Material Classes provide a method for grouping similar products together into a category. Material classes are used extensively in the Track & Trace module to provide production control on which materials can be used or produced by an operation, which lines can process them and where they can be stored. Both OEE 2.0 and Track & Trace use the concept of Material Classes and Material Definitions to manage Product Codes.