General InformationThis opening ID is invoked when:
Input ObjectsInput objects must be of the following types:
Context Object Parameters
SampleIn this example, the ports exposed as Piping Logical Port should not be connected to multiple objects. The following rule checks if the input port (PortToMultiConnect) is of type Piping Logical Port and return FALSE.
let strObjDiscipline(String)
let PipingPortExposed(RFLVPMLogicalPort)
set PipingPortExposed = Parameters.GetAttributeObject("PortToMultiConnect")
set strObjDiscipline = PipingPortExposed.V_discipline
if (-1 <> strObjDiscipline.Search("Piping_Logical_Port"))
Parameters.SetAttributeBoolean("IsOkToMultiConnect", FALSE)
else
Parameters.SetAttributeBoolean("IsOkToMultiConnect", TRUE)
| |||||||||||||||||||||||||||||||