Get Equipment Derivation (ELE_GetEquipmentDerivation)

An opening ID is an entry point used to customize business logic.The Get Equipment Derivation opening ID is available in the Electrical Logical Resources resource set and is used to define how the signal gets out of the equipment: from the input port, which ports are the output ports.

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 Electrical Calculation command for the equipment for which ELE_GetEquipmentSubTypeAndNominalCurrent returns oEqtSubType = "Derivation".

Definition Description
PLM Opening ID ELE_GetEquipmentDerivation
Customization intent Execution
Execution context Client

Input Objects

Input objects must be of the following types:

  • ThisObject: equipment occurrence: LogicalOccurrence
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
iEqtPort EleLogicalConnectorPort Read The port of the equipment
oListstrPortNames List of String Write The list of names of the output ports

Sample

/* Rule : ELE_GetEquipmentDerivation */	
// input args 
let eqtPort(EleLogicalConnectorPort)
// output args
let ListoutputPortNames (List)

Notify("Start BR ELE_GetEquipmentDerivation")
let instance(EnsLogicalEquipmentInst)
let strEqtName(String)
let stPorttName(String)

set instance = ThisObject.Instance
set eqtPort = Parameters.GetAttributeObject("iEqtPort")
if (NULL <> eqtPort) {	//ok to get input port  
	stPorttName = eqtPort.Name
}
if (instance <> NULL) {
    strEqtName = instance.Name
    Notify("ELE_GetEquipmentDerivation : strEqtName = " + strEqtName + "  -  stPorttName = " + stPorttName )
    if (strEqtName == "Eqt3_TB.1") {
	if (stPorttName <> "J03")
	    ListoutputPortNames.Append("J03")
	if (stPorttName <> "J04")
	    ListoutputPortNames.Append("J04")