Rule to Authorize Multiple Connections For a Port (Schematic_IsOkToMultiConnectLogicalPorts)

An opening ID is an entry point used to customize business logic. The Schematic_IsOkToMultiConnectLogicalPorts opening ID is used to define if a view can be instantiated.

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:

  • You want to connect exposed port to multiple objects using the Remap Symbol using Exposed Ports command.
  • You want to connect exposed port to multiple objects during the routing process.

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

Input Objects

Input objects must be of the following types:

  • ThisObject: Logical Port
  • Parameters corresponds to the context object.

Context Object Parameters

Parameter Name Type Read or Write Comments
Fact Object RFLVPMLogicalPort Read The logical port of the routable which is to be connected to exposed port
PortToMultiConnect (input) RFLVPMLogicalPort Read The logical port which is exposed
IsOkToMultiConnect (output) Boolean Write Boolean which define if the port which is exposed can be connected to multiple objects.

Sample

In 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)