Bounds - PDS - 2011 R1 - Reference

FrameWorks Plus Programmer's Reference

PPMProductFamily
3D Design and Visualization
PPMProduct
PDS
PPMCategory
Reference

Syntax

bounds variable_name [ , max_val = R ] [ , min_val = R ] [ , enforce = S ] ;

Usage

This command sets the upper and lower bounds of the variable. If these bounds are exceeded an asterisk ( * ) appears in the tutorial next to the field in which the variable is defined. In addition, the ASSIGN variable must have a field_num. If the enforce argument is used, the user is forced to key in a value within the given range.

Limitations

This command can only be issued after an Assign command using that same variable. The variable name limitations are the same as those that apply to the Assign command. Also, the variable must be the first parameter after the command.

For more information on the Assign command, see Assign.

Arguments

max_val -- The upper bound of the variable, which must be greater than the min_val, if one has been assigned.

min_val -- The lower bound of the variable, which must be less than the max_val, if one has been assigned.

variable_name -- Refers to the variable name you want to assign and is limited to 24 characters.

enforce -- Restricts the user from continuing on if the value entered is out of bounds; enforce is turned on or off with the strings Yes or No.

Example Syntax

  • assign radius = 25.0,
    field_num = 1,
    prompt = "keyin radius (ft):";
    bounds radius, min_val = 1, max_val = 50;

  • assign theta = 90.0,
    field_num = 2,
    prompt = "keyin theta (deg):";
    bounds theta, min_val = 0, max_val = 360, enforce = "yes";

  • assign x_length = 6.1667,
    field_num = 96,
    prompt = "keyin x bay dimension (ft):";

  • assign y_length = 30.3333,
    var_type = "float",
    field_num = 127,
    prompt = "keyin y bay dimension (ft):"; assign z_length = 10,
    var_type = "int",
    field_num = 170,
    prompt = "keyin thickness (in):"; bounds x_length, max_val = 20; bounds y_length, min_val = 5; bounds z_length, min_val = 1, max_val = 36;