Fundamentals > Relations and Parameters > Restricted Value Parameters > Syntax for Creating an External Definition File for Table-restricted Parameters
Syntax for Creating an External Definition File for Table-restricted Parameters
The external definition file uses the following format to define parameters:
{Name=<name>
Type=<type>[quantity_type]
[Default=<value>]
Access=<access>
TABLE=<table-name_1>,<table-name_2>,....,<table-name_n>
}
* 
All data in brackets ([]) are optional. The vertical bar ( | ) indicates a choice between two or more variants.
When you apply definitions to parameters, Creo Parametric uses the external definition file to update the parameters of the model. To apply definitions, specify the path to the restriction definition file by setting the restricted_val_definition configuration option.
* 
The external definition file is loaded only at Creo Parametric startup.
Sample External Definition File
The following parameter file, list1.lst, defines parameters with the names string_par_1, int_par1, real_par1, real_par2, bool_par1, respectively.

ND_ParamDefArr_K01 = {
{ Name = string_par1
Type = string
// \this is double slash comment
Table = Table1
},
{ Name = int_par1
Type = integer
! \\this is an exclamation mark comment
Table = Table1
},
{ Name = real_par1
Type = real
Table = Table1
},
{ Name = real_par2
Type = real
Table = Table1
},
{ Name = bool_par1
Type = Bool
Table = Table1
}
}
!!! ADD MORE RESTRICTED VALUE PARAMS HERE

ND_ParamTable_K01 = {
NAME =
TABLE-1
HEAD =
string_par_1,
int_par1,
real_par1,
real_par2,
bool_par1
ROWS =
't1_row1-m4-120',
'M4',
120,
1.1,
2.3,
true
't1_row2-m5-130',
'M5',
"(, 200) 130",
"[12.25, ] 22.65",
"[12.25, ] 24.65",
false
't1_row3-m6-135',
'M6',
"(-100, 300] 135",
"[123.55, 225.5) 200.50",
"[123.55, 225.5) 202.50",
TRUE
't1_row4-m8-140',
'M8',
"[-200,] 140",
"(, 2234.579) 1555.75",
"(, 2234.579) 1557.75",
FALSE
't1_row5-m9-150',
'M9',
"[-300, 500) 150",
"(-12345.50, 22345.56] -175.0",
"(-12345.50, 22345.56] -173.0",
true
'T1_Row6-M10-155',
'M10',
155,
FREE 5.675,
FREE 7.675,
false
'T1_ROW7-M12-6',
'M12'
FREE 6,
NULL,
NULL,
NULL
RELATIONS = int_par1 > 1
real_par2 > real_par1 + 1.1
Was this helpful?