Limits and possible errors for Cutting list rules
Values for a rule
The value e.g. '700' in the condition e.g. X>700 can also refer to a field. Use the field codes for this preceded by a #.
e.g. X<#Y
This means [Length] less than [Width] for the current item.
Any values that do not start with # are fixed values
Fixed values can be included in single quotes.
M='CHIP18'
M='#DELETED#'
#31=#32
Values are entered as integers (e.g. 27) or decimals (e.g. 27.25) so fractional values (e.g. 27-1/4) are entered as the decimal equivalent
File limits
10 rules per line
Maximum value name length - 200 characters
Maximum number of rule lines in total - 500
Value - 2 decimal place metric, 4 decimal places inches
Spaces are not allowed between a field, rule and value
All rules on the same line must be true for the value to be set in the information box
Blank lines can be used to separate text lines
Example
Info,6
Value,Large part
Rule,X>700,Y>700
Value,Small part
Rule,X<200
Rule,Y<200
Info,10
Value,Large Qty
Rule,Q>200
Value,Small Qty
Rule,Q<10
This applies the following rules:-
If the length and width are greater than 700 set information box 6 to be ‘Large part’.
If the length or width are smaller than 200 set information box 6 to be ‘Small part’.
If the quantity is greater than 200 set information box 10 to be ‘Large Qty’.
If the quantity is less than 10 set information box 10 to be ‘Small Qty’.
Example
The cutting list rules are located within CLR files in the directory set by the System parameter: Path for data.
The file content is ASCII in the following layout.
INFO,15
VALUE,Large part
RULE,X>1000
VALUE,Filler
RULE,Y<150
INFO,16
VALUE,Take off stack
RULE,P=Rail/6
INFO,5
VALUE,MX/PLAIN
RULE,P=END/327
INFO,17
VALUE,Too small
RULE,X<#Y
In the library only short codes are used and information box numbers.
Errors
The errors used for Cutting list rules are:-
Cutting rules - file too large or item of data too long [33106]
- Rules file exceeds 500 lines
- More than 10 items per rule
- Expression exceeds 200 characters
Cutting rules - line does not start with correct text [33108]
Unrecognised token
Cutting rules - data not correct [33107]
- Information box number invalid
- Rule field not recognised
- Rule not recognised
- Rule value exceeds 200 chrs
- Value contains an invalid field (#)
- Field is numeric but value is not
- Value has a missing quote delimiter
Cutting rules - no information box set [33109]
- No preceding Info line
Cutting rules - no Value set [33110]
- No preceding Value line
Cutting rule value invalid
The text or number in the Value field is not correct. This is usually caused by a the formula or cell value in the Value field not being correct for that field type.
Cutting list rules and MPR(X) variable answers
Where an information box is used to contain a Variable and the variable is also used in the MPR(X) drawing the cutting list rule is applied to the drawing dialog.
When the cutting list rules are applied any answers that are changed for information boxes used for Variables are also be reflected in the variables answers in the drawing dialog for each part. For example:-
An information box used for a variable is set up. DIAMETER
An MPR(X) file uses the variable DIAMETER in the drawing
A cutting list rule is used to alter the value in the information box DIAMETER
At the part list the DIAMETER value can be set when the MPR(X) is imported. The value in any calculated cutting list reflects the cutting list rule.