Compute Multiple Contact Pins (ELE_GetMutipleContactPinsForPin)

An opening ID is an entry point used to customize business logic. The Compute Multiple Contact Pins opening ID computes connected pins through multiple contacts for a connector occurrence and a pin.

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

This page discusses:

General Information

This opening ID is invoked when using the following command:

  • Check Circuit Loop
  • Check Wires Consistency

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

Input Objects

Input objects must be of the following types:

  • ThisObject: harness connector occurrence (LogicalOccurrence)
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
iHCPin EleLogicalPin Read Indicates the pin of the harness connector
oListPins List Write Lists the pins

Sample

In the following sample, pins on a logical harness connector with the same subtype are considered to be connected through a multiple contact.

let Pin(EleLogicalPin)
let PinTemp(EleLogicalPin)
let ConnectorRef(EleLogicalConnectorComp)
let ConnectorPort(EleLogicalConnectorPort)
let PinList (List)
let SubType (String)


set Pin = Parameters.GetAttributeObject("iHCPin")
set SubType = Pin.GetAttributeString("V_Elec_SubType")
set ConnectorRef = ThisObject.Reference

set ConnectorPort = ConnectorRef.V_Elec_Ports.GetItem(1)


for PinTemp inside  ConnectorPort.V_Elec_GroupedPorts {
	if PinTemp.GetAttributeString("V_Elec_SubType") == SubType{
		PinList.Append(PinTemp)
	}
	
}

Parameters.SetAttributeObject("oListPins",PinList)