Configuration Options
This section describes the Creo TOOLKIT utility functions.
Functions Introduced:
The functions
ProConfigoptionGet() and
ProConfigoptSet() enable you to retrieve and set the current value for the specified configuration file option. Use the function
ProConfigoptionGet() instead. The function
ProConfigoptionGet() returns the value of configuration option as a
ProPath object.
To use
ProConfigoptSet() on a configuration option that affects the display of
Creo Parametric, you must call the function
ProDisplistInvalidate() before you repaint the screen. This function makes sure
Creo Parametric invalidates the two- or three-dimensional display list. The calling sequence of functions is as follows:
ProConfigoptSet (woption, value);
ProMdlCurrentGet (&model);
ProDisplistInvalidate (model)
ProWindowRepaint (-1);
The function
ProConfigoptSet(), when applied to a multi string configuration option like "search_path", adds a new path entry into the session. It does not affect existing values. When applied to a single-valued configuration option,
ProConfigoptSet() modifies the value of the configuration option.
The function
ProConfigoptArrayGet() retrieves the value of a specified configuration file option. The function returns an array of values assigned to the configuration file. It returns a single value if the configuration file option is not a multi-valued option.