Validate the entire path of the conductor (EWR_ValidateConductorRoute)

An opening ID is an entry point used to customize business logic. The Validate the entire path of the conductor opening ID is available in the Electrical physical system design resources set. It is used to validate the whole route of a given conductor or of a cable.

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 during:

  • Automatic Routing: this business logic is called as the last step of routing. If the business logic fails, the route of the conductor is unset.
  • Manual Routing: this business logic is called for every segment selection. If the business logic fails, the selected segment is not be added in the route.

This opening ID is used to check the whole length of a conductor.

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

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

Input Objects

Input objects must be of the following types:

  • ThisObject: The conductor being routed (Conductor), or the route of a cable (ElecRoute).
  • Validation: Variable to set to know if the conductor route must be validated.
  • Severity information:
    • Severity= 0 the treatment is to be continued (no message)
    • Severity= 1 the treatment is to be continued and a warning raised only for Automatic Routing command (displayed in the Report).
    • Severity= 2 the treatment is supposed to be undone.

Sample

The following sample explains how to use an opening ID to validate the whole route of a given conductor and check the length of a conductor.

Let Name(String)
Let Len(LENGTH)

Validation = True
Parameters.Severity = 0

Set Name = ThisObject.Name
Set Len = ThisObject.Elec_Length

if(2005mm < Len)
{
	if("Conductor01.8" == Name)
	{
		Validation = true
		Parameters.Severity = 1
		Parameters.Message = Name + " : Length warning"
	}
	else
	{
		Validation = false
		Parameters.Severity = 2
		Parameters.Message = Name +  " : Length error"
	}
}
else if(1820mm < Len)
{
	Validation = true
	Parameters.Severity = 1
	Parameters.Message = Name + " : Length warning"
}