The setPref function is used to set the value of a preference in the preference configuration file.

Arguments

Args:
key: list of preference keys.
value: list of values corresponding to the keys.

Valid keys:
units

Returns:
None

Syntax

mipar.setPref(keys,values, nargout = 0)

Examples

# initialize engine and licence manager
import miparAPI
mipar = miparAPI.initialize()
mipar.startLicenseMan(nargout = 0)
key_list = ['units']
value_list = ['um']

# get preference values
values = mipar.setPref(key_list. value_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.