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 ››

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.