Product or Part is Continuous (DELMA_IsContinuous_Product_ID)

An opening ID is an entry point used to customize business logic. Product or Part is Continuous specifies the opening ID run to determine if a product or a part is continuous and, if so, get its magnitude and quantity.

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_IsContinuous_Product_ID
Customization intent: Validation
Execution context:Client

Input Objects

Input objects must be of the following types:

  • ThisObject: Product or part on which the test is done.
  • Parameters corresponds to the context object.
  • Validation

Context Object Parameters

Parameter NameTypeRead/WriteComments
ValidationBoolean Write TRUE if the product or part is continuous and FALSE otherwise.
MagnitudeStringWrite Gives the magnitude of the product or part, if it is continuous.
QuantityRealWrite Gives the quantity (in MKS) of the product or part, if it is continuous.

Sample

The following sample determines if a product is continuous and, if so, gets its magnitude and quantity.

Let ProductToTest(ProductOccurrence)        /* the occurrence of product */
Let ProductReference(VPMReference)          /* the related reference of the product occurrence */
Let ProductDesc(String)
Let Magnitude(String)
Let Value(Real)
Let ValueString(String)

Validation = false

set ProductToTest = ThisObject
if ( NULL <> ProductToTest)
{
   ProductReference = ProductToTest.Reference
   ProductDesc = ProductReference->GetAttributeString("V_description")
   if (ProductDesc.Extract(0,10) <> "Continuous")
   {
      Validation = false
   }
   else 
   {
      Validation = true
      Magnitude = ProductDesc.Extract(10,6)
      Parameters.SetAttributeString("Magnitude" , Magnitude)
      ValueString = ProductDesc.Extract(16,2)
      Value = ValueString.ToReal()
      Parameters.SetAttributeReal("Quantity" , Value)