Before Manufactured Part Generation (DELMA_ElementaryEndItemValidation_ID)

An opening ID is an entry point used to customize business logic. Before Manufactured Part Generation specifies the opening ID run before Manufactured Part generation to check if it is allowed for this part.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

The table below provides you with information related to the definition of the opening ID.

PLM Opening ID: DELMA_ElementaryEndItemValidation_ID
Customization intent: Validation
Execution context:Client

Input Objects

Input objects must be of the following types:

  • Parameters corresponds to the context object.
  • Validation

Context Object Parameters

Parameter NameTypeRead/WriteComments
iPartOccurrenceObjectTypeReadOccurrence of the design part.
iPartContextObjectTypeReadContext of the occurrence of the design part.
ValidationBoolean Write TRUE if the Manufactured Part generation is authorized for this part and FALSE otherwise.

Sample

The following sample checks if Manufactured Part generation is allowed for this part.

/* INPUTS */

Let PartOccurence(ProductOccurrence)  /* the occurrence of design part */
Let PartInstance(VPMInstance)         /* the related instance of the part occurrence */
Let PartName(String)

/* OUPUTS */

set PartOccurence= Parameters->GetAttributeObject("iPartOccurence")

PartInstance = PartOccurence.Instance
if (PartInstance <> NULL)
{
   PartName = PartInstance->GetAttributeString("PLM_ExternalID")
   
   if (PartName == "Product23072-CI(*).1")
   {
      Validation = true
   }
   else
   {
      Validation = false
   }
}