The getPref
function is used to retrieve the value of a preference in the preference configuration file.
Arguments
Args:
key: list of preference keys.
Valid keys:
units
Returns:
value: list of values at keys.
Syntax
values = mipar.getPref(keys)
Examples
# initialize engine and licence manager
import miparAPI
mipar = miparAPI.initialize()
mipar.startLicenseMan(nargout = 0)
key_list = ['units']
# get preference values
values = mipar.getPref(key_list)
# terminate engine
mipar.terminate()
Need more help with this?
Chat with an expert now ››