Validate Segment Selection during Conductor Routing (EWRRouting_ValidateSegmentSelectionForWireRoute)

An opening ID is an entry point used to customize business logic. The Validate segment selection during conductor routing opening ID is available in the Electrical physical system design resources set and it is used to validate if a segment can be added to the conductor route.

Warning: This business logic is deprecated. It will work for now but you should not use them for any new implementations. It is recommended to use EWR_ValidateSegmentInConductorRoute and EWR_ValidateConductorRoute.
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 the Manual Routing command. See Electrical 3D Design User's Guide: Routing Conductors: Routing Conductors Manually.

This opening ID is used to validate the selection of the segment(s) to define conductor route. The result of the business rule execution can be either:

  • the treatment is to be continued (severity=0)
  • the treatment is to be continued and only a warning is displayed (severity=1).
  • the treatment is not done and an error message appears (severity=2). Routing will not be performed.
All messages are gathered in a single dialog box. The business rule is triggered when a segment is selected.

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

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

Input Objects

Input objects must be of the following types:

  • ThisObject: Instance of segment to add to the conductor route.
  • 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 succeeded of failed. If TRUE, the segment is added to the conductor route.
  • Message: Standard information to allow specifying a special message corresponding to severity (useful only if severity is not null).
  • Sevrity information:
    • Severity= 0 the treatment is to be continued (no message)
    • Severity= 1 the treatment is to be continued and only a warning raised)
    • Severity= 2 the treatment is supposed to be undone

Context Object Parameters

Parameter NameTypeRead/WriteComments
ModifiedWire (input)PLM Entity ReadInstance of segment to add to the conductor route.
ListOfLinkedWires (input)PLM EntityReadList of all the other conductors passing through this segment.