Validate Whether a Conductor Route Can Be Modified or Not (EWR_CanConductorRouteBeModified)

An opening ID is an entry point used to customize business logic. The Validate whether a conductor route can be modified or not opening ID allows the modification of a conductor route and validates new conductor routes. It is also available to validate the route of cables.

It is available in the Electrical physical system design resources resource set.

Note: For more information about customization by business rules, see Installation and Setup: Customize: Behavior: Data Setup: Customization by Business Rules.

This page discusses:

General Information

This opening ID is invoked when using the following commands:

  • Automatic routing
  • Manual routing
  • Copy Route
  • Delete Route

Important:
  • This opening ID is invoked before any routing operation or modification.
  • In a conductor group, the business rule is called only for aggregated conductors and not for the conductor group.

The table below provides you with information related to the definition of the Opening ID.

PLM Opening ID: EWR_CanConductorRouteBeModified
Customization intent: Validation
Execution context: Client

Input Objects

Input objects must be of the following types:

  • ThisObject: the conductor or cable that is routed or whose route is modified.
  • Parameters corresponds to the context object. The standard context and message attribute are displayed in a warning if the validation fails.
  • Validation: a variable to know if the validation is successful or not.
    Note: If true is returned, new conductor routes or route modifications are allowed.
  • Severity messages:
    • Severity= 0: no message display. The conductor can be routed or its route modified.
    • Severity= 1: a warning is displayed. The conductor can be routed or its route modified.
    • Severity= 2: a message is displayed in the conductor routing report. The conductor cannot be routed or the conductor route cannot be modified.

Context Object Parameters

Parameter NameTypeRead/WriteComments
ThisObjectConductor or ElecRoute Read-

Sample

The following sample illustrates how to validate the route of a conductor.

Let ValidationSts(RouteValidationStatus)
Set ValidationSts = ThisObject.Elec_ValidationStatus

if (ValidationSts == NULL) Notify("Is Null")

if(ValidationSts == "Fully_Validated")
{
	Notify("Route Modification NOT allowed")
	Validation = false
	Parameters.Severity = 2
	Parameters.Message = "Route edition of this conductor is NOT allowed"
}
else
{
	Notify("Route Modification allowed")
	Validation = true
	Parameters.Severity = 0
}