Fundamentals > Relations and Parameters > Annotation Element Parameters > Example: Automatic Creation of Annotation Element Parameters
Example: Automatic Creation of Annotation Element Parameters
Create a text file with the following content:

!Default parameters for Annotation Elements /this is a comment/
ND_ParamDefArr_K01 = {
..{ Name = Version
....Type = integer
....Default = 2
..},
..{ Name = Color
....Type = string
....Default = 'green'
..},
..{ Name = Ratio
....Type = real
....Default = 0.5
..}
}
Save the file with the name auto_params.lst in the folder /shared_data/annotations.
Set the configuration option as follows:
auto_ae_param_file /shared_data/annotations/auto_params.lst
Now, every time you create an Annotation Element, the system automatically adds to it the following parameters:
Parameter Name
Type
Value
Version
Integer
2
Color
String
green
Ratio
Real
0.5
You can later manipulate these parameters like any regular parameters: search for them, modify their values individually or simultaneously for multiple Annotation Elements, and so on.
You can automatically create Annotation Element table-restricted parameters using an external parameter definition file. To do so, the set label parameter must be defined as a string in the parameter definition file with a value equal to the corresponding row name. Create a text file with the following content:
EXAMPLE

ND_ParamDefArr_K01 = {

{ Name = Table_1

Type = string

Default = 'T1_ROW2-M5-130'

},

{ Name = Table_3

Type = string

Default = 't2_row4'

}

!!! ADD MORE RESTRICTED VALUE PARAMS HERE

}
Was this helpful?