Uniform Protection Thickness Rule (EHF_UniformProtectionThicknessRule)

An opening ID is an entry point used to customize business logic.

Note: For more information about customization by business rules, see Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked during the documentation process in Electrical Manufacturing Preparation application to retrieve the uniform protection thickness and layer thickness factor for protection. This business rule is triggered only once before starting the flattening of the harness data (which happens before generating the drawing).

You are expected to provide output in the form of a real (double value). The values retrieved from the business rule for the uniform protection thickness and protection layer thickness factor are applied across flattened data and the manufacturing drawing.

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

PLM Opening ID: EHF_UniformProtectionThicknessRule
Customization intent: Computation
Execution context: Client

Input Objects

Input objects must be of the following types:

  • ThisObject: ProductOccurrence (Flatten Root).
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read/Write Comments
ListOfProtections List Read List of all the protections in the flattened harness data.
UniformProtectionThickness Real Write It is a double value getting applied to all the protections of the flattened harness data.
ProtectionLayerThicknessFactor Real Write It is a double value getting applied to all the second layer and above protections of the flattened harness data.

Sample

The following sample describes how to project the uniform protection thickness rule:

let iListOfInputProtections(List)
let ListOfProtectionsInnerDiameter(List)
let ListItemProtection(InternalProtection)
let UniformProtectionThickness(REAL)
let ProtectionLayerThicknessFactor(REAL)

set iListOfInputProtections = Parameters.GetAttributeObject("ListOfProtections")
set lsize = iListOfInputProtections.Size()

set index = 1
for index while index <= lsize
{
	ListItemProtection = iListOfInputProtections.GetItem(index)
	if(NULL<> ListItemProtection)
	{
       	      ListOfProtectionsInnerDiameter.Append(ListItemProtection.Elec_Inner_Diameter)
 	}
}

Parameters.SetAttributeReal("UniformProtectionThickness", "20")
Parameters.SetAttributeReal("ProtectionLayerThicknessFactor", "2")