To store custom preferences values for system add-ins, use the following method:
SystemUserOptions.variable_name
To store preferences values for custom add-ins, use the following method:
CustomUserOptions.variable_name
All the variables you intend to use, must have be defined in the appropriate add-in (for Tera staff that maintains the standard configuration, the add-in is TedSystemAddIn; for Tera staff that maintains custom configuration, and for all other staff, the add-in is TedCustomAddIn.
The variables defined in Ted4 add-in are available in Fred4 as well.
Example
The variable is SPL_TBox. To read it, use:
sValue = SystemUserOptions.SPL_TBox
To assign a value to it, use:
SystemUserOptions.SPL_TBox = sValue
For Tera staff
The variables are to be defined in the TEDOptions.vb.
For Tera dealers and customers staff
The variables are to be defined in the CUSTOMTEDOptions.vb.
How to define a variable?
For system scripts, variables are to be placed in the EditorialSystemUserOptions class of the TedOptions.vb, with the below syntax:
<XmlAttribute()> Public SPL_TBox As String = "0,0,0,0" ' Boxing margins
For custom scripts, variables are to be placed in the EditorialCustomUserOptions class of the CUSTOMTedOptions.vb, with the below syntax:
<XmlAttribute()> Public SPL_TBox As String = "0,0,0,0" ' Boxing margins
For GN3 users
In GN4, SystemUserOptions replaces GN3 Options.Item.