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.
|
RouteLength | Length | Read | Corresponds to the length of the route component.
|
Sample
The following sample returns a default Routed Length for the selected Route component.
/* CATRule SIGNATURE BEGIN (do not edit) ------------------------------------ */
Let RouteLength_attr = "RouteLength"
Let RouteLength_val (Length) /* In Meters */
/* CATRule SIGNATURE END ---------------------------------------------------- */
/* LOCAL VARIABLES BEGIN ---------------------------------------------------- */
Let Attr_Length = "Length"
/* LOCAL VARIABLES END ------------------------------------------------------ */
/* USER ATTRIBUTE VALUES BEGIN ---------------------------------------------- */
/* New Route Component Length */
RouteLength_val = 0.111m
/* USER ATTRIBUTE VALUES END ------------------------------------------------ */
/* SET VALUES BEGIN --------------------------------------------------------- */
Parameters -> SetAttributeDimension( RouteLength_attr, RouteLength_val, Attr_Length )
/* SET VALUES END ----------------------------------------------------------- */