General InformationThis opening ID is invoked when content under a relay is added. This opening ID is used to customize the name of the pins. The table below provides you with information related to the definition of the Opening ID.
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleThe following sample shows how to define the pins names of a relay. let ContentPort (RFLVPMLogicalPort) let ContentInst (RFLVPMLogicalInstance) let RelayPin (RFLVPMLogicalPort) let PinName (String) set ContentPort = Parameters->GetAttributeObject("ContentPort") set ContentInst = Parameters->GetAttributeObject("ContentInstance") set RelayPin = ThisObject//Parameters->GetAttributeObject("RelayPin") if (ContentInst <> NULL) { if (ContentInst.IsASortOf("EleLogicalOperatingDeviceInst")) { if (RelayPin <> NULL) { PinName = RelayPin.GetAttributeString("PLM_ExternalID") RelayPin.SetAttributeString("PLM_ExternalID", "A" + PinName) } } } |