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.
|
ListOfRoutableObjects | |
Read | Corresponds to the list of logical connections selected.
|
Sample
The following sample checks whether or not the branch segment has a valid segregation.
If not, routing is interrupted and a message issued.
if (ThisObject.Elec_Segreg == "Power")
Validation=true
else
{
Validation=false
Parameters.Severity=2
}
if (Validation <> true)
Parameters.Message="The branch segment must have a valid segregation."