Context Object Parameters
Parameter Name | Type | Read/Write | Comments |
---|
Severity | |
Read | Set to 1 to raise a warning (routing will continue). Set to 2 to
identify an error (routing is interrupted).
|
Message | | Write | Enter the string to be displayed in the warning or error message
dialog box.
|
ListOfBranchSegments
| |
Read | Corresponds to the list of branch segments selected.
|
ListOfRoutableObjects | |
Read | Corresponds 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