Junction Ambiguity Zone (EHFTorsion_AmbiguityZone)

An opening ID is an entry point used to customize business logic. The Junction Ambiguity Zone opening ID enables the customization the ambiguity zone width on arranged junctions considering all segments.

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

This opening ID is invoked when you use the Junction Validation command or the Formboard command to generate the flattened data.

This opening ID is used to customize the width of the ambiguity zone.

Definition Description
PLM Opening ID EHFTorsion_AmbiguityZone
Customization intent Computation
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject corresponds to the primary segment of the junction with support.
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
ListOfSecondarySegment LIST -

Input list of secondary segments within the arrangement

SupportInstance PRODUCT -

Support instance holding the arrangement

ListZoneWidth LIST - Output list of ambiguity width per segment (same size of input list)

Sample

The following sample describes how to customize the ambiguity zone width on arranged junctions considering all segments.

/* Rule created by rpess 12/14/2020 */ 

let PrimarySegmentName(String)
let ListUnkSegments(List)
let NbSegments(Integer)
let ListOutputAmbigWidths(LIST)
let WidthValue(LENGTH)
let index(Integer)
let Segment(Segment)
let DiamValue(LENGTH)

set PrimarySegmentName = ThisObject.Name
Parameters.Message = "Primary Segment Name : " + PrimarySegmentName 

ListUnkSegments = Parameters.GetAttributeObject("ListOfSecondarySegment")
set NbSegments= ListUnkSegments.Size()

index = 1
for index while index <= NbSegments 
{
	Segment = ListUnkSegments->GetItem(index)
	set DiamValue = Segment.Elec_Diameter
	set WidthValue= DiamValue*2
	
	ListOutputAmbigWidths.SetItem(WidthValue, index)
}

Parameters.SetAttributeObject("ListZoneWidth", ListOutputAmbigWidths)