Validate Whole Physical Route (LSRRouting_ValidatePhysicalRoute)

An opening ID is an entry point used to customize business logic. LSRRouting_ValidatePhysicalRoute validates the whole Physical route according to a set of routed objects and pathway segment.

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 at the end of the Manual Route command to validate all the branch segments selected for the route.

This opening ID is used to customize:

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

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

Input Objects

Input objects must be of the following types:

  • ThisObject: Corresponds to the first branch segment selected.
  • Parameters: Corresponds to the context object.
  • Validation: Enter True or False to identify whether or not the validation is successful.

Context Object Parameters

Parameter NameTypeRead/WriteComments
Severity Read

Set to 1 to raise a warning (routing will continue).

Set to 2 to identify an error (routing is interrupted).

MessageWriteEnter the string to be displayed in the warning or error message dialog box.
ListOfBranchSegments ReadCorresponds to the list of branch segments selected.
ListOfRoutableObjects ReadCorresponds to the list of logical connections selected.

Sample

The following example calculates the total route length and issues a warning message if the length exceeds 6000mm.

let Length(LENGTH) 
let PS(Segment) 
let ListPS(List) 

Length = ThisObject.Elec_Length 

set ListPS =Parameters.GetAttributeObject("ListOfPathwaySegments") 

For PS inside List PS
								Length = Length + PS.Elec_Length 

if (Length < 6000mm) 
Validation=true 
else 
							Validation=false 

if (Validation <> true) 
		Parameters.Message = "The total route length should be less than 6000mm. 
		Here it is " + Length