Opening to Customize Instance Name of Accessory Part After Connection (ELB_CustomizeConnectedAccessoryInstanceNaming)

An opening ID is an entry point used to customize business logic. The Opening to Customize Connector Group Created by Application opening ID is available in the Electrical physical system design resources set and this opening ID is invoked when accessory part or loose part is connected to electrical connector.

Accessory part or loose part types supported are the following:

  • Contact / Contact Adaptor
  • Seal
  • Filler Plug

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

This page discusses:

General Information

The table below provides the information related to the definition of the Opening ID:

PLM Opening ID: ELB_CustomizeConnectedAccessoryInstanceNaming
Customization intent: Execution
Execution context: Client

Input Objects

Input objects must be of the following type:

  • ThisObject: corresponds to accessory part instance to manage (VPMReference).
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read/Write Comments
ConnectedInstance VPMInstance Read The instance of connector connected to the accessory part
ConnectedPublication ElecPort Read The electrical publication (Cavity) connected to the accessory part

Sample 1

The following sample modifies the Electrical Accessory part instance when connected to another device:

let LoosePartInstance(VPMInstance)
let ConnectedDeviceInstance(VPMInstance)
let ConnectedPub(ElecPort)
set LoosePartInstance=ThisObject
set ConnectedDeviceInstance = Parameters->GetAttributeObject("ConnectedInstance")
set ConnectedPub=Parameters->GetAttributeObject("ConnectedPublication")
let LoosePartRef(VPMReference)
set LoosePartRef=LoosePartInstance.Reference
let CavityText(String)

if ( LoosePartRef->IsASortOf("Elec3DSeal") )  CavityText=" sealed"
else if ( LoosePartRef->IsASortOf("Elec3DContact") )
{
	 let CavityContact(Elec3DContact) 
	set   CavityContact=LoosePartRef
	if ( CavityContact <> NULL )
	{
	  CavityText=" "+CavityContact.V_Elec_ContactType+" contact "              }
}
else CavityText=""
let NewLoosePartInstanceName(String)
NewLoosePartInstanceName=ConnectedDeviceInstance.Name/*+"[ cavity : "+ConnectedPub.V_FunctionalName+CavityText+"]"*/
NewLoosePartInstanceName=NewLoosePartInstanceName+"[ cavity : "+ConnectedPub.V_FunctionalName+CavityText+"]"
                LoosePartInstance.Name=NewLoosePartInstanceName